ctalk.patch 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Index: ctalk-0.0.27/ctpp/Makefile.in
  2. --- ctalk-0.0.27/ctpp/Makefile.in.orig 2007-09-17 23:57:31 +0200
  3. +++ ctalk-0.0.27/ctpp/Makefile.in 2007-09-18 07:49:32 +0200
  4. @@ -121,7 +121,7 @@
  5. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  6. LDFLAGS = @LDFLAGS@
  7. LIBOBJS = @LIBOBJS@
  8. -LIBS = $(top_builddir)/libctpp/.libs/libctpp$(LIBEXT)
  9. +LIBS = $(top_builddir)/libctpp/libctpp.la
  10. LIBTOOL = @LIBTOOL@
  11. LIB_MAJOR_VERSION = @LIB_MAJOR_VERSION@
  12. LIB_MINOR_VERSION = @LIB_MINOR_VERSION@
  13. Index: ctalk-0.0.27/ctpp/builtins.c
  14. --- ctalk-0.0.27/ctpp/builtins.c.orig 2007-09-13 04:04:24 +0200
  15. +++ ctalk-0.0.27/ctpp/builtins.c 2007-09-18 07:49:32 +0200
  16. @@ -80,11 +80,12 @@
  17. * config file included above. See the comments in
  18. * config/linux-gnu-x86.c
  19. */
  20. +#if defined(__linux__) && defined(__i386__)
  21. for (i = 0; builtins[i]; i+=2) {
  22. sprintf (s, "#define %s %s\n", builtins[i], builtins[i+1]);
  23. tokenize_define (s);
  24. }
  25. -
  26. +#endif
  27. if (gcc_macros_opt) gcc_builtins ();
  28. @@ -93,9 +94,11 @@
  29. int is_builtin_symbol (char *name) {
  30. int i;
  31. +#if defined(__linux__) && defined(__i386__)
  32. for (i = 0; builtins[i]; i+=2) {
  33. if (!strcmp (name, builtins[i]))
  34. return TRUE;
  35. }
  36. +#endif
  37. return FALSE;
  38. }
  39. Index: ctalk-0.0.27/ctpp/ccompat.c
  40. --- ctalk-0.0.27/ctpp/ccompat.c.orig 2007-09-14 21:00:05 +0200
  41. +++ ctalk-0.0.27/ctpp/ccompat.c 2007-09-18 07:49:32 +0200
  42. @@ -53,8 +53,10 @@
  43. char cpp_subdir[FILENAME_MAX];
  44. +#if defined(__linux__) && defined(__i386__)
  45. extern char *host_os; /* Defined in builtins.c. */
  46. extern char *host_cpu;
  47. +#endif
  48. #if defined(__DJGPP__) || defined(__CYGWIN__)
  49. #define GCC_BIN "gcc.exe"
  50. @@ -338,7 +340,7 @@
  51. strcpy (gcc_target, "djgpp");
  52. -#else
  53. +#elif defined(__linux__) && defined(__i386__)
  54. /* Try to find out what the compiler target is. It may not
  55. be the same as the autoconf $host.
  56. Index: ctalk-0.0.27/ctpp/i_opt.c
  57. --- ctalk-0.0.27/ctpp/i_opt.c.orig 2007-09-13 04:04:24 +0200
  58. +++ ctalk-0.0.27/ctpp/i_opt.c 2007-09-18 07:49:32 +0200
  59. @@ -30,6 +30,8 @@
  60. #include <stdlib.h>
  61. #include <string.h>
  62. #include <errno.h>
  63. +#include <sys/types.h>
  64. +#include <sys/stat.h>
  65. #include "ctpp.h"
  66. extern char source_file[FILENAME_MAX]; /* Declared in rtinfo.c. */
  67. Index: ctalk-0.0.27/lib/rtinfo.c
  68. --- ctalk-0.0.27/lib/rtinfo.c.orig 2007-09-12 11:06:44 +0200
  69. +++ ctalk-0.0.27/lib/rtinfo.c 2007-09-18 07:49:32 +0200
  70. @@ -32,7 +32,7 @@
  71. #include "parser.h"
  72. extern char *tzname[2];
  73. -long int timezone;
  74. +long int ctalk_timezone;
  75. extern int daylight;
  76. RT_INFO rtinfo;
  77. Index: ctalk-0.0.27/libctpp/lex.c
  78. --- ctalk-0.0.27/libctpp/lex.c.orig 2007-09-13 04:04:26 +0200
  79. +++ ctalk-0.0.27/libctpp/lex.c 2007-09-18 07:49:32 +0200
  80. @@ -26,6 +26,8 @@
  81. #include <string.h>
  82. #include <ctype.h>
  83. #include <errno.h>
  84. +#include <sys/types.h>
  85. +#include <sys/stat.h>
  86. #include "ctpp.h"
  87. #include "typeof.h"
  88. #include "prtinfo.h"
  89. Index: ctalk-0.0.27/src/Makefile.in
  90. --- ctalk-0.0.27/src/Makefile.in.orig 2007-09-17 23:57:31 +0200
  91. +++ ctalk-0.0.27/src/Makefile.in 2007-09-18 07:54:46 +0200
  92. @@ -122,7 +122,7 @@
  93. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  94. LDFLAGS = @LDFLAGS@
  95. LIBOBJS = @LIBOBJS@
  96. -LIBS = $(top_builddir)/lib/.libs/libctalk.so
  97. +LIBS = $(top_builddir)/lib/libctalk.la
  98. LIBTOOL = @LIBTOOL@
  99. LIB_MAJOR_VERSION = @LIB_MAJOR_VERSION@
  100. LIB_MINOR_VERSION = @LIB_MINOR_VERSION@
  101. <<<<<<< ctalk.patch
  102. Index: ctpp-1.0.26/ctpp/Makefile.in
  103. --- ctpp-1.0.26/ctpp/Makefile.in.orig 2007-09-12 14:36:28 +0200
  104. +++ ctpp-1.0.26/ctpp/Makefile.in 2007-09-18 07:49:32 +0200
  105. =======
  106. Index: ctpp-1.0.27/ctpp/Makefile.in
  107. --- ctpp-1.0.27/ctpp/Makefile.in.orig 2007-09-12 14:36:28 +0200
  108. +++ ctpp-1.0.27/ctpp/Makefile.in 2007-09-18 07:49:32 +0200
  109. >>>>>>> 1.25
  110. @@ -121,7 +121,7 @@
  111. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  112. LDFLAGS = @LDFLAGS@
  113. LIBOBJS = @LIBOBJS@
  114. -LIBS = $(top_builddir)/libctpp/.libs/libctpp$(LIBEXT)
  115. +LIBS = $(top_builddir)/libctpp/libctpp.la
  116. LIBTOOL = @LIBTOOL@
  117. LIB_MAJOR_VERSION = @LIB_MAJOR_VERSION@
  118. LIB_MINOR_VERSION = @LIB_MINOR_VERSION@
  119. <<<<<<< ctalk.patch
  120. Index: ctpp-1.0.26/ctpp/builtins.c
  121. --- ctpp-1.0.26/ctpp/builtins.c.orig 2007-09-04 06:14:05 +0200
  122. +++ ctpp-1.0.26/ctpp/builtins.c 2007-09-18 07:49:32 +0200
  123. =======
  124. Index: ctpp-1.0.27/ctpp/builtins.c
  125. --- ctpp-1.0.27/ctpp/builtins.c.orig 2007-09-04 06:14:05 +0200
  126. +++ ctpp-1.0.27/ctpp/builtins.c 2007-09-18 07:49:32 +0200
  127. >>>>>>> 1.25
  128. @@ -80,11 +80,12 @@
  129. * config file included above. See the comments in
  130. * config/linux-gnu-x86.c
  131. */
  132. +#if defined(__linux__) && defined(__i386__)
  133. for (i = 0; builtins[i]; i+=2) {
  134. sprintf (s, "#define %s %s\n", builtins[i], builtins[i+1]);
  135. tokenize_define (s);
  136. }
  137. -
  138. +#endif
  139. if (gcc_macros_opt) gcc_builtins ();
  140. @@ -93,9 +94,11 @@
  141. int is_builtin_symbol (char *name) {
  142. int i;
  143. +#if defined(__linux__) && defined(__i386__)
  144. for (i = 0; builtins[i]; i+=2) {
  145. if (!strcmp (name, builtins[i]))
  146. return TRUE;
  147. }
  148. +#endif
  149. return FALSE;
  150. }
  151. <<<<<<< ctalk.patch
  152. Index: ctpp-1.0.26/ctpp/ccompat.c
  153. --- ctpp-1.0.26/ctpp/ccompat.c.orig 2007-09-04 06:14:05 +0200
  154. +++ ctpp-1.0.26/ctpp/ccompat.c 2007-09-18 07:49:32 +0200
  155. =======
  156. Index: ctpp-1.0.27/ctpp/ccompat.c
  157. --- ctpp-1.0.27/ctpp/ccompat.c.orig 2007-09-04 06:14:05 +0200
  158. +++ ctpp-1.0.27/ctpp/ccompat.c 2007-09-18 07:49:32 +0200
  159. >>>>>>> 1.25
  160. @@ -53,8 +53,10 @@
  161. char cpp_subdir[FILENAME_MAX];
  162. +#if defined(__linux__) && defined(__i386__)
  163. extern char *host_os; /* Defined in builtins.c. */
  164. extern char *host_cpu;
  165. +#endif
  166. #if defined(__DJGPP__) || defined(__CYGWIN__)
  167. #define GCC_BIN "gcc.exe"
  168. @@ -332,7 +334,7 @@
  169. strcpy (gcc_target, "djgpp");
  170. -#else
  171. +#elif defined(__linux__) && defined(__i386__)
  172. /* Try to find out what the compiler target is. It may not
  173. be the same as the autoconf $host.
  174. <<<<<<< ctalk.patch
  175. Index: ctpp-1.0.26/ctpp/i_opt.c
  176. --- ctpp-1.0.26/ctpp/i_opt.c.orig 2007-08-27 03:18:27 +0200
  177. +++ ctpp-1.0.26/ctpp/i_opt.c 2007-09-18 07:49:32 +0200
  178. =======
  179. Index: ctpp-1.0.27/ctpp/i_opt.c
  180. --- ctpp-1.0.27/ctpp/i_opt.c.orig 2007-08-27 03:18:27 +0200
  181. +++ ctpp-1.0.27/ctpp/i_opt.c 2007-09-18 07:49:32 +0200
  182. >>>>>>> 1.25
  183. @@ -30,6 +30,8 @@
  184. #include <stdlib.h>
  185. #include <string.h>
  186. #include <errno.h>
  187. +#include <sys/types.h>
  188. +#include <sys/stat.h>
  189. #include "ctpp.h"
  190. extern char source_file[FILENAME_MAX]; /* Declared in rtinfo.c. */
  191. <<<<<<< ctalk.patch
  192. Index: ctpp-1.0.26/libctpp/lex.c
  193. --- ctpp-1.0.26/libctpp/lex.c.orig 2007-08-27 03:04:06 +0200
  194. +++ ctpp-1.0.26/libctpp/lex.c 2007-09-18 07:49:32 +0200
  195. =======
  196. Index: ctpp-1.0.27/libctpp/lex.c
  197. --- ctpp-1.0.27/libctpp/lex.c.orig 2007-08-27 03:04:06 +0200
  198. +++ ctpp-1.0.27/libctpp/lex.c 2007-09-18 07:49:32 +0200
  199. >>>>>>> 1.25
  200. @@ -26,6 +26,8 @@
  201. #include <string.h>
  202. #include <ctype.h>
  203. #include <errno.h>
  204. +#include <sys/types.h>
  205. +#include <sys/stat.h>
  206. #include "ctpp.h"
  207. #include "typeof.h"
  208. #include "prtinfo.h"