mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
8.5 KiB

  1. diff -dur mysql-4.1.7/client/mysqltest.c src.mysql.1104350495.30814.396807788/mysql-4.1.7/client/mysqltest.c
  2. --- mysql-4.1.7/client/mysqltest.c 2004-10-23 07:28:47.000000000 +0000
  3. +++ src.mysql.1104350495.30814.396807788/mysql-4.1.7/client/mysqltest.c 2004-12-30 02:35:57.000000000 +0000
  4. @@ -3272,8 +3272,8 @@
  5. static void make_sets_invisible(REP_SETS *sets);
  6. static void free_last_set(REP_SETS *sets);
  7. static void free_sets(REP_SETS *sets);
  8. -static void set_bit(REP_SET *set, uint bit);
  9. -static void clear_bit(REP_SET *set, uint bit);
  10. +static void set_bit_(REP_SET *set, uint bit);
  11. +static void clear_bit_(REP_SET *set, uint bit);
  12. static void or_bits(REP_SET *to,REP_SET *from);
  13. static void copy_bits(REP_SET *to,REP_SET *from);
  14. static int cmp_bits(REP_SET *set1,REP_SET *set2);
  15. @@ -3350,7 +3350,7 @@
  16. {
  17. if (from[i][0] == '\\' && from[i][1] == '^')
  18. {
  19. - set_bit(start_states,states+1);
  20. + set_bit_(start_states,states+1);
  21. if (!from[i][2])
  22. {
  23. start_states->table_offset=i;
  24. @@ -3359,8 +3359,8 @@
  25. }
  26. else if (from[i][0] == '\\' && from[i][1] == '$')
  27. {
  28. - set_bit(start_states,states);
  29. - set_bit(word_states,states);
  30. + set_bit_(start_states,states);
  31. + set_bit_(word_states,states);
  32. if (!from[i][2] && start_states->table_offset == (uint) ~0)
  33. {
  34. start_states->table_offset=i;
  35. @@ -3369,11 +3369,11 @@
  36. }
  37. else
  38. {
  39. - set_bit(word_states,states);
  40. + set_bit_(word_states,states);
  41. if (from[i][0] == '\\' && (from[i][1] == 'b' && from[i][2]))
  42. - set_bit(start_states,states+1);
  43. + set_bit_(start_states,states+1);
  44. else
  45. - set_bit(start_states,states);
  46. + set_bit_(start_states,states);
  47. }
  48. for (pos=from[i], len=0; *pos ; pos++)
  49. {
  50. @@ -3479,9 +3479,9 @@
  51. follow[i].len > found_end)
  52. found_end=follow[i].len;
  53. if (chr && follow[i].chr)
  54. - set_bit(new_set,i+1); /* To next set */
  55. + set_bit_(new_set,i+1); /* To next set */
  56. else
  57. - set_bit(new_set,i);
  58. + set_bit_(new_set,i);
  59. }
  60. }
  61. if (found_end)
  62. @@ -3498,7 +3498,7 @@
  63. if (follow[bit_nr-1].len < found_end ||
  64. (new_set->found_len &&
  65. (chr == 0 || !follow[bit_nr].chr)))
  66. - clear_bit(new_set,i);
  67. + clear_bit_(new_set,i);
  68. else
  69. {
  70. if (chr == 0 || !follow[bit_nr].chr)
  71. @@ -3647,13 +3647,13 @@
  72. return;
  73. }
  74. -static void set_bit(REP_SET *set, uint bit)
  75. +static void set_bit_(REP_SET *set, uint bit)
  76. {
  77. set->bits[bit / WORD_BIT] |= 1 << (bit % WORD_BIT);
  78. return;
  79. }
  80. -static void clear_bit(REP_SET *set, uint bit)
  81. +static void clear_bit_(REP_SET *set, uint bit)
  82. {
  83. set->bits[bit / WORD_BIT] &= ~ (1 << (bit % WORD_BIT));
  84. return;
  85. diff -dur mysql-4.1.7/extra/replace.c src.mysql.1104350495.30814.396807788/mysql-4.1.7/extra/replace.c
  86. --- mysql-4.1.7/extra/replace.c 2004-10-23 07:28:45.000000000 +0000
  87. +++ src.mysql.1104350495.30814.396807788/mysql-4.1.7/extra/replace.c 2004-12-29 21:06:28.000000000 +0000
  88. @@ -376,8 +376,8 @@
  89. static void make_sets_invisible(REP_SETS *sets);
  90. static void free_last_set(REP_SETS *sets);
  91. static void free_sets(REP_SETS *sets);
  92. -static void set_bit(REP_SET *set, uint bit);
  93. -static void clear_bit(REP_SET *set, uint bit);
  94. +static void set_bit_(REP_SET *set, uint bit);
  95. +static void clear_bit_(REP_SET *set, uint bit);
  96. static void or_bits(REP_SET *to,REP_SET *from);
  97. static void copy_bits(REP_SET *to,REP_SET *from);
  98. static int cmp_bits(REP_SET *set1,REP_SET *set2);
  99. @@ -454,7 +454,7 @@
  100. {
  101. if (from[i][0] == '\\' && from[i][1] == '^')
  102. {
  103. - set_bit(start_states,states+1);
  104. + set_bit_(start_states,states+1);
  105. if (!from[i][2])
  106. {
  107. start_states->table_offset=i;
  108. @@ -463,8 +463,8 @@
  109. }
  110. else if (from[i][0] == '\\' && from[i][1] == '$')
  111. {
  112. - set_bit(start_states,states);
  113. - set_bit(word_states,states);
  114. + set_bit_(start_states,states);
  115. + set_bit_(word_states,states);
  116. if (!from[i][2] && start_states->table_offset == (uint) ~0)
  117. {
  118. start_states->table_offset=i;
  119. @@ -473,11 +473,11 @@
  120. }
  121. else
  122. {
  123. - set_bit(word_states,states);
  124. + set_bit_(word_states,states);
  125. if (from[i][0] == '\\' && (from[i][1] == 'b' && from[i][2]))
  126. - set_bit(start_states,states+1);
  127. + set_bit_(start_states,states+1);
  128. else
  129. - set_bit(start_states,states);
  130. + set_bit_(start_states,states);
  131. }
  132. for (pos=from[i], len=0; *pos ; pos++)
  133. {
  134. @@ -583,9 +583,9 @@
  135. follow[i].len > found_end)
  136. found_end=follow[i].len;
  137. if (chr && follow[i].chr)
  138. - set_bit(new_set,i+1); /* To next set */
  139. + set_bit_(new_set,i+1); /* To next set */
  140. else
  141. - set_bit(new_set,i);
  142. + set_bit_(new_set,i);
  143. }
  144. }
  145. if (found_end)
  146. @@ -602,7 +602,7 @@
  147. if (follow[bit_nr-1].len < found_end ||
  148. (new_set->found_len &&
  149. (chr == 0 || !follow[bit_nr].chr)))
  150. - clear_bit(new_set,i);
  151. + clear_bit_(new_set,i);
  152. else
  153. {
  154. if (chr == 0 || !follow[bit_nr].chr)
  155. @@ -751,13 +751,13 @@
  156. return;
  157. }
  158. -static void set_bit(REP_SET *set, uint bit)
  159. +static void set_bit_(REP_SET *set, uint bit)
  160. {
  161. set->bits[bit / WORD_BIT] |= 1 << (bit % WORD_BIT);
  162. return;
  163. }
  164. -static void clear_bit(REP_SET *set, uint bit)
  165. +static void clear_bit_(REP_SET *set, uint bit)
  166. {
  167. set->bits[bit / WORD_BIT] &= ~ (1 << (bit % WORD_BIT));
  168. return;
  169. diff -dur mysql-4.1.7/include/my_global.h src.mysql.1104350495.30814.396807788/mysql-4.1.7/include/my_global.h
  170. --- mysql-4.1.7/include/my_global.h 2004-10-23 07:28:43.000000000 +0000
  171. +++ src.mysql.1104350495.30814.396807788/mysql-4.1.7/include/my_global.h 2004-12-29 20:48:37.000000000 +0000
  172. @@ -287,9 +287,8 @@
  173. #ifndef CONFIG_SMP
  174. #define CONFIG_SMP
  175. #endif
  176. -C_MODE_START
  177. +#define CONFIG_NR_CPUS 1
  178. #include <asm/atomic.h>
  179. -C_MODE_END
  180. #endif
  181. #include <errno.h> /* Recommended by debian */
  182. /* We need the following to go around a problem with openssl on solaris */
  183. diff -dur mysql-4.1.7/libmysqld/examples/mysqltest.c src.mysql.1104350495.30814.396807788/mysql-4.1.7/libmysqld/examples/mysqltest.c
  184. --- mysql-4.1.7/libmysqld/examples/mysqltest.c 2004-10-23 07:28:47.000000000 +0000
  185. +++ src.mysql.1104350495.30814.396807788/mysql-4.1.7/libmysqld/examples/mysqltest.c 2004-12-30 02:35:57.000000000 +0000
  186. @@ -3272,8 +3272,8 @@
  187. static void make_sets_invisible(REP_SETS *sets);
  188. static void free_last_set(REP_SETS *sets);
  189. static void free_sets(REP_SETS *sets);
  190. -static void set_bit(REP_SET *set, uint bit);
  191. -static void clear_bit(REP_SET *set, uint bit);
  192. +static void set_bit_(REP_SET *set, uint bit);
  193. +static void clear_bit_(REP_SET *set, uint bit);
  194. static void or_bits(REP_SET *to,REP_SET *from);
  195. static void copy_bits(REP_SET *to,REP_SET *from);
  196. static int cmp_bits(REP_SET *set1,REP_SET *set2);
  197. @@ -3350,7 +3350,7 @@
  198. {
  199. if (from[i][0] == '\\' && from[i][1] == '^')
  200. {
  201. - set_bit(start_states,states+1);
  202. + set_bit_(start_states,states+1);
  203. if (!from[i][2])
  204. {
  205. start_states->table_offset=i;
  206. @@ -3359,8 +3359,8 @@
  207. }
  208. else if (from[i][0] == '\\' && from[i][1] == '$')
  209. {
  210. - set_bit(start_states,states);
  211. - set_bit(word_states,states);
  212. + set_bit_(start_states,states);
  213. + set_bit_(word_states,states);
  214. if (!from[i][2] && start_states->table_offset == (uint) ~0)
  215. {
  216. start_states->table_offset=i;
  217. @@ -3369,11 +3369,11 @@
  218. }
  219. else
  220. {
  221. - set_bit(word_states,states);
  222. + set_bit_(word_states,states);
  223. if (from[i][0] == '\\' && (from[i][1] == 'b' && from[i][2]))
  224. - set_bit(start_states,states+1);
  225. + set_bit_(start_states,states+1);
  226. else
  227. - set_bit(start_states,states);
  228. + set_bit_(start_states,states);
  229. }
  230. for (pos=from[i], len=0; *pos ; pos++)
  231. {
  232. @@ -3479,9 +3479,9 @@
  233. follow[i].len > found_end)
  234. found_end=follow[i].len;
  235. if (chr && follow[i].chr)
  236. - set_bit(new_set,i+1); /* To next set */
  237. + set_bit_(new_set,i+1); /* To next set */
  238. else
  239. - set_bit(new_set,i);
  240. + set_bit_(new_set,i);
  241. }
  242. }
  243. if (found_end)
  244. @@ -3498,7 +3498,7 @@
  245. if (follow[bit_nr-1].len < found_end ||
  246. (new_set->found_len &&
  247. (chr == 0 || !follow[bit_nr].chr)))
  248. - clear_bit(new_set,i);
  249. + clear_bit_(new_set,i);
  250. else
  251. {
  252. if (chr == 0 || !follow[bit_nr].chr)
  253. @@ -3647,13 +3647,13 @@
  254. return;
  255. }
  256. -static void set_bit(REP_SET *set, uint bit)
  257. +static void set_bit_(REP_SET *set, uint bit)
  258. {
  259. set->bits[bit / WORD_BIT] |= 1 << (bit % WORD_BIT);
  260. return;
  261. }
  262. -static void clear_bit(REP_SET *set, uint bit)
  263. +static void clear_bit_(REP_SET *set, uint bit)
  264. {
  265. set->bits[bit / WORD_BIT] &= ~ (1 << (bit % WORD_BIT));
  266. return;