ChangeLog 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. 2006-11-03 Miguel de Icaza <[email protected]>
  2. * src/gpath.c (g_path_get_dirname): If the pathname starts with a
  3. "/", return the "/".
  4. * test/string-util.c (test_strlcpy): Add new test.
  5. * src/gunicode.c (g_filename_from_utf8): g_strlcpy needs the full
  6. size, with the extra zero at the end; Fixes the stack trace
  7. issue.
  8. 2006-10-30 Miguel de Icaza <[email protected]>
  9. * test/utf8.c (test_utf8_seq): Add new failing test.
  10. 2006-10-30 Atsushi Enomoto <[email protected]>
  11. * src/gutf8.c : several fixes:
  12. - fixed incorrect mb_size clear and mb_remain computation.
  13. - initialize items_written to 0 for error case.
  14. - in utf8_to_utf16_len differentiate error messages completely.
  15. - in g_utf8_to_utf16 use guchar instead of gchar.
  16. * test/utf8.c : added test case string in test_utf8_seq() to
  17. both test_utf8_to_utf16() and test_utf16_to_utf8().
  18. 2006-10-21 Miguel de Icaza <[email protected]>
  19. * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here.
  20. * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
  21. null values here. This gets things a little bit further in
  22. corlib, but not too far.
  23. * src/gdir.c (g_dir_read_name): Do not return . or ..
  24. * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
  25. thanks to Paolo for pointing the problem with the double macro
  26. expansion.
  27. * src/gmodule.c (g_module_open): Actually return NULL if we fail
  28. to load the module (was hiding the real bug in the pinvoke tests).
  29. (g_module_build_path): Do not prepend "lib" if the "lib" is part
  30. of the call.
  31. * src/gstr.c (g_strsplit): this routine has some non-expected
  32. behavior, if the string begins with the delimiter, it will return
  33. an empty first string, unlike strtok
  34. * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
  35. paths that do not contain a directory.
  36. 2006-10-18 Gonzalo Paniagua Javier <[email protected]>
  37. * test/array.c: new test for insertion in the middle of other values.
  38. * src/garray.c: fixed destination index.
  39. 2006-10-18 Miguel de Icaza <[email protected]>
  40. * src/gpath.c (g_build_path): Do not append terminator if the next
  41. string is empty.
  42. * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
  43. documented.
  44. (g_utf16_to_utf8): Include trailing zero as documented.
  45. 2006-10-17 Miguel de Icaza <[email protected]>
  46. * src/gstr.c (g_strdown): Actually move.
  47. * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
  48. sequence, reset the state after a closing element.
  49. * src/garray.c (g_array_insert_vals): Shift the elements the
  50. correct amount.
  51. (g_array_insert_vals): Should actually use the
  52. number of elements to insert.
  53. * test/array.c: Add new test case, this was happening in the JIT.
  54. * Add _GNU_SOURCE at configure time, remove from sources.
  55. * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
  56. * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
  57. for the support stuff.
  58. Move private prototypes elsewhere
  59. * src/glib.h (g_thread_init): Adding missing brace
  60. (g_list_next): remove ; from the macro definition.
  61. 2006-10-17 Miguel de Icaza <[email protected]>
  62. * src/gutf8.c: internal methods
  63. * src/ghashtable.c: internal methods.
  64. 2006-10-16 Miguel de Icaza <[email protected]>
  65. * src/gerror.c (g_propagate_error): Implement.
  66. * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
  67. * test/string-util.c (test_ascii_strncasecmp): test
  68. 2006-10-15 Miguel de Icaza <[email protected]>
  69. * configure.in: Fix detection of platforms the [3456] stuff does
  70. not work inside autoconf.
  71. * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
  72. * src/glib.h (offsetof): Mono sources depend on this, bring this
  73. from the standard definition. Redefine G_STRUCT_OFFSET in terms
  74. of this.
  75. * src/glib.h (G_STRUCT_OFFSET): fix macro definition.
  76. fix typo.
  77. * src/sizes.c: Add test.
  78. * src/gshell.c: Make it build
  79. 2006-10-14 Miguel de Icaza <[email protected]>
  80. * src/glib.h: add various _TO_LE and _FROM_LE macros.
  81. * test/endian.c: tests for endian conversion macros.
  82. 2006-10-09 Miguel de Icaza <[email protected]>
  83. * src/gmodule.h: Move definitions of gmodule to gmodule.h because
  84. Mono expects it there.
  85. Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <[email protected]>
  86. * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
  87. and put the array in readonly memory.
  88. * src/gstr.c: fixed the build and made array const.
  89. * src/gmodule.c: fixed thinko.
  90. 2006-10-08 Miguel de Icaza <[email protected]>
  91. * src/gstr.c (g_strdup): should allow NULL as an argument.
  92. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  93. * test/string-util.c:
  94. * TODO:
  95. * src/gstr.c:
  96. * src/glib.h: implemented g_strescape.
  97. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  98. * test/string-util.c:
  99. * configure.ac:
  100. * TODO:
  101. * src/gstr.c:
  102. * src/glib.h: implemented g_strlcpy.
  103. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  104. * test/string-util.c:
  105. * TODO:
  106. * src/gstr.c:
  107. * src/glib.h: implemented g_strdelimit.
  108. 2006-10-07 Gonzalo Paniagua Javier <[email protected]>
  109. * test/spawn.c: add search path flag when running ls.
  110. * src/gspawn.c: g_spawn_command_line_sync searches the program in the
  111. PATH if it's not an absolute path.
  112. 2006-10-07 Gonzalo Paniagua Javier <[email protected]>
  113. * test/string-util.c:
  114. * src/glib.h: implement g_ascii_xdigit_value and tests.
  115. 2006-10-06 Miguel de Icaza <[email protected]>
  116. * src/gstr.c (g_ascii_strdown): Implement.
  117. * str/glib.c (g_log_set_handler): empty.
  118. (g_printerr): empty.
  119. (GMemVTable): define, empty, ignored.
  120. (G_USEC_PER_SEC) :-)
  121. * src/gunicode.c (g_convert): Add bytes_read, bytes_written
  122. support; Small fixes to avoid valgrind errors.
  123. (g_utf8_validate): Add, based on the libxml code.
  124. gstr.c: implement g_strdown.
  125. 2006-10-05 Miguel de Icaza <[email protected]>
  126. * src/gunicode.c: Some work in progress to implement g_convert
  127. (which is needed by g_locale_to_utf8).
  128. 2006-09-18 Miguel de Icaza <[email protected]>
  129. * test/string-util.c (test_filename_from_uri): tests for new
  130. methods.
  131. * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement.
  132. 2006-09-14 Atsushi Enomoto <[email protected]>
  133. * src/gutf8.c, test/utf8.c : EOL fix.
  134. 2006-09-04 Miguel de Icaza <[email protected]>
  135. * src/gmarkup.c: The leak fixing commit.
  136. * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
  137. method.
  138. (g_markup_parse_context_free): Implement.
  139. (parse_attributes): Store the value, not the attribute name
  140. twice.
  141. Properly check the /> section.
  142. (g_markup_parse_context_parse): When checking for error, use the
  143. "error!=NULL && *error != NULL" upon return from callbacks,
  144. it is only then that its valid to check for *error for error
  145. conditions.
  146. (g_markup_parse_context_parse): Add comment processing.
  147. Only release one element of the list.
  148. * test/markup.c: Incorporate the kind of code that is used in Mono
  149. for domain loading; Will test the rest later.
  150. 2006-09-01 Miguel de Icaza <[email protected]>
  151. * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
  152. support, and end-element support; not tested yet.
  153. 2006-09-01 Atsushi Enomoto <[email protected]>
  154. * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
  155. 2006-09-01 Atsushi Enomoto <[email protected]>
  156. * gutf8.c : when error is null, utf8_to_utf16_len() and
  157. utf16_to_utf8_len() could return -1, so return NULL for those
  158. cases in g_utf8_to_utf16() and g_utf16_to_utf8().
  159. 2006-09-01 Miguel de Icaza <[email protected]>
  160. * src/gmarkup.c: Builds and does minimal parsing.
  161. * test/markup.c: Sample test cases I have been using
  162. 2006-08-31 Atsushi Enomoto <[email protected]>
  163. * src/gerror.h,
  164. src/gerror.c : added g_set_error().
  165. * src/gutf8.c :
  166. g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
  167. * src/glib.h : added all above, and some dependent bits.
  168. * src/Makefile.am : added gutf8.c.
  169. * TODO: removed above.
  170. * test/Makefile.am,
  171. test/tests.h : added utf8 tests.
  172. * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
  173. It still needs more tests e.g. for multibytes.
  174. 2006-08-31 Gonzalo Paniagua Javier <[email protected]>
  175. * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
  176. 2006-08-31 Gonzalo Paniagua Javier <[email protected]>
  177. * test/file.c: remove useless test.
  178. * test/spawn.c: new g_spawn_async_with_pipes test.
  179. * src/glib.h: Modified file.
  180. * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
  181. 2006-08-28 Gonzalo Paniagua Javier <[email protected]>
  182. * TODO: Modified file.
  183. * test/tests.h:
  184. * test/pattern.c:
  185. * test/dir.c:
  186. * test/Makefile.am:
  187. * src/Makefile.am:
  188. * src/glib.h:
  189. * src/gdir.c:
  190. * src/gfile.c: implemented g_dir_*, unix version.
  191. 2006-08-27 Gonzalo Paniagua Javier <[email protected]>
  192. * src/glib.h:
  193. * test/Makefile.am: Modified file.
  194. * test/tests.h:
  195. * src/Makefile.am: Modified file.
  196. * test/pattern.c:
  197. * src/gpattern.c: implemented the 3 pattern matching functions used.
  198. * test/ptrarray.c: fix the compare function to work with qsort.
  199. * test/file.c:
  200. * test/path.c:
  201. * src/gspawn.c:
  202. * src/gpath.c: made valgrind happy.
  203. 2006-08-26 Gonzalo Paniagua Javier <[email protected]>
  204. * test/file.c:
  205. * src/glib.h:
  206. * src/gfile.c: implemented g_file_test. Changed the default mask to
  207. .XXXXXX. Add tests.
  208. 2006-08-26 Raja R Harinath <[email protected]>
  209. * src/sort.frag.h (digit): Declare here based on externally
  210. provided typedef 'list_node'.
  211. (MAX_DIGITS): Use 'sizeof (list_node)'.
  212. * src/gslist.c (list_node): Declare instead of 'digit'.
  213. * src/glist.c: Likewise.
  214. * test/slist.c (verify_sort): Verify the length of the list too.
  215. (test_slist_sort): Free the correct list.
  216. * test/list.c: Likewise.
  217. * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
  218. (combine_sort): Change 'max_pos' argument to more natural
  219. 'n_digits'.
  220. (increment): Likewise. Use 'n_digits' to avoid reading at an
  221. offset that hasn't been initialized.
  222. (do_sort): Remove memset.
  223. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  224. * TODO:
  225. * test/file.c:
  226. * src/glib.h:
  227. * src/gfile.c: implement g_file_open_tmp.
  228. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  229. * TODO:
  230. * src/glib.h:
  231. * src/gdate.c: New file.
  232. * src/gfile.c: New file.
  233. * src/Makefile.am: implemented g_file_get_contents and
  234. g_get_current_time.
  235. * test/tests.h:
  236. * test/file.c: New file.
  237. * test/Makefile.am: tests for the above.
  238. 2006-08-26 Raja R Harinath <[email protected]>
  239. * src/sort.frag.h: Add copyright notice and some explanation.
  240. (increment): Remove null check.
  241. (combine_digits): Add 'list' argument to seed the summation.
  242. (do_sort): Use the empty or singleton tail as the seed, rather
  243. than calling 'increment'.
  244. 2006-08-25 Raja R Harinath <[email protected]>
  245. * TODO: Remove 'List' entries.
  246. * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
  247. * src/sort.frag.h: New. Implements a "generic" bottom-up "counting"
  248. mergesort that works both on singly- and doubly-linked lists.
  249. * src/gslist.c (g_slist_sort): Use it.
  250. * src/glist.c (g_list_sort): Likewise.
  251. * src/glib.h (g_slist_sort, g_list_sort): Declare.
  252. * test/slist.c, test/list.c: Add basic testcases.
  253. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  254. * src/gspawn.c: propagate errors from reads.
  255. * src/gpath.c: an empty PATH is like a NULL one.
  256. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  257. * test/tests.h:
  258. * test/timer.c:
  259. * test/Makefile.am:
  260. * TODO:
  261. * src/glib.h:
  262. * src/gtimer.c:
  263. * src/Makefile.am: implemented GTimer.
  264. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  265. * test/tests.h:
  266. * test/Makefile.am:
  267. * test/spawn.c:
  268. * src/gspawn.c:
  269. * src/glib.h:
  270. * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
  271. Still need better error handling, but works for the most part.
  272. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  273. * src/garray.c: grow faster so that the 'big' test does not crawl.
  274. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  275. * test/shell.c:
  276. * src/gqueue.c: plugged leaks.
  277. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  278. * test/path.c:
  279. * src/gpath.c: when PATH is not defined, the current dir is used.
  280. See execvp(3).
  281. 2006-08-25 Alp Toker <[email protected]>
  282. * src/gstr.c: g_strv_length() should return guint, not gint
  283. * src/glib.h: Add g_strv_length() prototype
  284. 2006-08-24 Miguel de Icaza <[email protected]>
  285. * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
  286. g_get_prgname, g_set_prgname): implemented.
  287. * test/ Fix leaks.
  288. * src/gpath.c (g_get_current_dir): Implement.
  289. (g_find_program_in_path, g_path_is_absolute): implement.
  290. Add g_path_get_dirname, g_path_get_basename
  291. * src/gpath.c: Path routines
  292. 2006-08-23 Miguel de Icaza <[email protected]>
  293. * src/gerror.c: Implement.
  294. * src/glist.c (g_list_sort): Remove routine instead of hoping that
  295. it wont crash when we run it.
  296. 2006-08-23 Raja R Harinath <[email protected]>
  297. * src/glist.c (g_list_insert_before): Avoid non-head declaration.
  298. * test/slist.c (test_slist_insert_before): Add.
  299. * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
  300. * test/list.c (test_list_insert_before): Add test for return value
  301. of g_list_insert_before.
  302. * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
  303. to rebuild test if eglib changes.
  304. * src/glist.c (new_node, disconnect_node): New helpers that
  305. maintain doubly-linked list invariants.
  306. (g_list_prepend, g_list_append): Express in terms of new_node.
  307. (g_list_insert_before): Likewise. Fix return value when inserting
  308. in the middle of the list.
  309. (g_list_concat): Reorganize to make more compact.
  310. (g_list_nth): Likewise.
  311. (g_list_nth_data): Don't segfault if 'n' is too large.
  312. (g_list_remove): Rewrite using _find and disconnect_node.
  313. (g_list_remove_link): Don't traverse list: use disconnect_node.
  314. (g_list_insert_sorted): Rewrite to make more compact. Use new_node.
  315. (g_list_copy): Likewise.
  316. (_prepend, _concat): Remove.
  317. * src/gslist.c (insert_after, find_prev, find_prev_link):
  318. New helpers.
  319. (g_slist_copy): Simplify slightly, using insert_after.
  320. (g_slist_concat): Reorganize to make more compact.
  321. (g_slist_find): Likewise.
  322. (g_slist_insert_sorted): Likewise.
  323. (g_slist_remove): Rewrite using find_prev.
  324. (g_slist_remove_link): Rewrite using find_prev_link.
  325. (g_slist_remove_all, g_slist_insert_before): New.
  326. 2006-08-21 Duncan Mak <[email protected]>
  327. * src/gqueue.c: GQueue implementation.
  328. * src/glib.h: Add prototypes.
  329. * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
  330. * test/queue.c:
  331. * test/Makefile.am (SOURCES):
  332. * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
  333. 2006-08-21 Aaron Bockover <[email protected]>
  334. * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
  335. realloc/delimiter token not found); use memcpy instead of strncpy for
  336. better performance
  337. * test/test.c (run_group): allow running specific tests under a group;
  338. added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
  339. and eg_strfreev to avoid performance skews in the driver
  340. * test/driver.c: allow user-specified group name to contain specific
  341. test to run under the group as 'group_name:test1,test2,...testN'
  342. * test/string-util.c: Added more g_strsplit tests
  343. * test/slist.c:
  344. * test/ptrarray.c:
  345. * test/fake.c:
  346. * test/string.c:
  347. * test/list.c:
  348. * test/array.c:
  349. * test/hashtable.c: make test names shorter (no need to prefix with
  350. the group since it runs under the group)
  351. 2006-08-21 Miguel de Icaza <[email protected]>
  352. * src/glib.h (g_hash_table_new_full): Add missing prototype.
  353. Replace g_free(x) with plain free, so it can be used as a function
  354. argument.
  355. Add ABS
  356. * src/ghashtable.c: Add rehashing.
  357. * test/hashtable.c: Add a bunch of extra tests.
  358. * src/goutput.c: Fix g_log so it actually formats the data.
  359. * src/ghashtable.c (g_hash_table_new): The glib test suite
  360. uncovered a bunch of bugs, the g_hash_table_new should actually
  361. have parameters.
  362. (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
  363. uncovered.
  364. 2006-08-20 Aaron Bockover <[email protected]>
  365. * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
  366. * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
  367. * src/glib.h: added macros for above va_args printf functions
  368. * src/Makefile.am: added gmisc.c
  369. * test/whats-implemented: script to see what needs to be implemented
  370. 2006-08-20 Chris Toshok <[email protected]>
  371. * test/array.c (test_array_big): add a test from the glib
  372. documentation.
  373. 2006-08-20 Chris Toshok <[email protected]>
  374. * test/tests.h: add array tests to the mix.
  375. * test/array.c: a few array tests.
  376. * src/glib.h: add array prototypes.
  377. * src/garray.c: initial array foo.
  378. * test/Makefile.am (SOURCES): add array.c
  379. * src/Makefile.am (libeglib_la_SOURCES): add garray.c
  380. 2006-08-19 Aaron Bockover <[email protected]>
  381. * src/gstring.c: optimize and generalize reallocation by providing
  382. a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are
  383. very, very slow; GString is now much closer to GLib's implementation
  384. in terms of performance
  385. * test/string.c: added speed-specific tests to beat on reallocation code
  386. * test/test-both: run make if the test drivers don't exist
  387. 2006-08-19 Jonathan Chambers <[email protected]>
  388. * src/gmodule.c: Add gmodule support for windows and fix
  389. windows build. Contribution is licensed as MIT/X11.
  390. 2006-08-19 Aaron Bockover <[email protected]>
  391. * test/driver.c: Added --debug mode that allows for testing all paths
  392. of the driver without actually running real tests; runs only the 'fake'
  393. test, which does nothing; useful for running the driver through valgrind
  394. * test/Makefile.am:
  395. * test/tests.h:
  396. * test/fake.c: Added fake test for valgrinding the driver
  397. * test/ptrarray.c: update sort test
  398. 2006-08-19 Aaron Bockover <[email protected]>
  399. * test/test-both: added --help
  400. 2006-08-19 Aaron Bockover <[email protected]>
  401. * test/driver.c: added -n mode to show only raw global run times,
  402. which is useful for scripts (test-both --speed-compare)
  403. * test/test-both: added --speed-compare mode
  404. * test/README: updated with information on --speed-compare
  405. 2006-08-19 Aaron Bockover <[email protected]>
  406. * test/test.c: do not print times if -t is not passed
  407. * test/driver.c: removed use of GList from the driver to avoid skews due
  408. to performance differences between GLib and EGLib
  409. 2006-08-19 Aaron Bockover <[email protected]>
  410. * test/test.c: Perform iterations at the test level, only output one
  411. report for all iterations of tests in a group to produce more usable
  412. output; add timing for the tests and group; added get_timestamp for
  413. easy code timing
  414. * test/test.h: Removed run_test as it should only be called from
  415. run_group, added get_timestamp
  416. * test/Makefile.am: Added -DDRIVER_NAME
  417. * test/test-both: simple script to run both drivers with the same options
  418. * test/driver.c: Iterations are now run at the test level, show a global
  419. status (OK/FAIL) indicator
  420. * test/README: Updated
  421. * configure.ac: Renamed from configure.in as configure.in naming
  422. convention is deprecated in favor of configure.ac
  423. * autogen.sh: s/configure.in/configure.ac/
  424. 2006-08-19 Miguel de Icaza <[email protected]>
  425. * Makefile.am: Removed MAINTAINERCLEANFILES that was too
  426. aggresive, it failed make distcheck and the resulting tarball was
  427. not buildable.
  428. * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
  429. GSIZE_FORMAT macros, and move them into src/eglib-config.h
  430. Moved also gssize and gsize to be arch specific. This should fix
  431. the 32/64 problems that Jon Chambers reported.
  432. * configure.in: test for pointer size, define the various values
  433. depending on 32 vs 32/64 worlds, might need further porting in the
  434. future.
  435. Change package name to eglib
  436. * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
  437. FAILURE macro.
  438. * test/string-util.c: fix leak for valgrind tests.
  439. * test/tests.h: New size test, for testing datatypes.
  440. * test/sizes.c: New tests.
  441. 2006-08-19 Aaron Bockover <[email protected]>
  442. * test/README: Added quick guide on adding new tests/groups to the
  443. driver and some examples on how to perform various tests with the driver
  444. 2006-08-18 Aaron Bockover <[email protected]>
  445. * test/driver.c: Added getopt support and code timing, among other
  446. nice features to make testing/profiling easier
  447. * test/test.c: Add support for suppressing output (quiet) and
  448. define RESULT, FAILED, and OK
  449. * src/glib.h:
  450. * src/glist.c: Added g_list_nth_data implementation
  451. * test/slist.c:
  452. * test/string-util.c:
  453. * test/ptrarray.c:
  454. * test/string.c:
  455. * test/hashtable.c:
  456. * test/list.c: Use RESULT, FAILURE, and OK for tests
  457. 2006-08-18 Miguel de Icaza <[email protected]>
  458. * src/gstring.c (g_string_truncate): Implement truncate.
  459. (g_string_prepend): implement.
  460. Fix various bugs uncovered by new tests.
  461. * src/glib.h: introduce gssize type, the signed one. Important.
  462. * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
  463. defines that we can use to check on the host OS.
  464. 2006-08-18 Aaron Bockover <[email protected]>
  465. * test/test.[ch]:
  466. * test/driver.c: Support pass/fail logging on tests to show group report
  467. 2006-08-18 Aaron Bockover <[email protected]>
  468. * test/test.c:
  469. * test/test.h: Added result() to be used in place of g_strdup_printf(),
  470. it's shorter to write and allows the duped string to be freed safely;
  471. added license header to file
  472. * test/driver.c: Added license header to file
  473. * test/string-util.c:
  474. * test/ptrarray.c:
  475. * test/string.c:
  476. * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
  477. 2006-08-18 Aaron Bockover <[email protected]>
  478. * src/gptrarray.c: Implemented g_ptr_array_sort
  479. * test/ptrarray.c: Added sort test
  480. * test/driver.c: Added --help; support running N iterations and allow
  481. selecting which test groups to run; uses the test group table in tests.h
  482. * test/tests.h: Added group table
  483. * test/test.h:
  484. * test/test.c: Using a Group structure and table, removed run_groups
  485. as we only need run_group now
  486. * test/slist.h: Removed, not needed, tests/groups defined in tests.h
  487. 2006-08-18 Miguel de Icaza <[email protected]>
  488. * src/unicode.c: New file, to host unicode code, it will throw as
  489. this code is no longer used in the Mono runtime anyways.
  490. * src/glib.h: Use stdint.h types, a lot of the good stuff is
  491. replicated by glib.
  492. 2006-08-18 Duncan Mak <[email protected]>
  493. * src/glist.c (g_list_remove, g_list_remove_link): Implemented.
  494. * src/gslist.c (g_slist_remove): Remember to set the next pointer
  495. to NULL when the item to remove is the first item in the list.
  496. 2006-08-18 Duncan Mak <[email protected]>
  497. * src/glist.c: Implemented. Missing remove,
  498. remove_link and insert_before.
  499. * test/list.c: Tests for GList.
  500. 2006-08-17 Aaron Bockover <[email protected]>
  501. * src/gptrarray.c: Implemented g_ptr_array_remove and
  502. g_ptr_array_remove_index
  503. * test/other: Removed, rewritten in Makefile.am
  504. * test/Makefile.am: Build test-eglib against local eglib and
  505. test-glib against GLib 2.0 (replaces 'other')
  506. * test/ptrarray.c: Added tests for g_ptr_array_remove and
  507. g_ptr_array_remove_index
  508. 2006-08-17 Duncan Mak <[email protected]>
  509. * src/gslist.c: Added MIT license.
  510. (g_slist_insert_sorted): Forgot the case where the data is
  511. appended to the end of the list.
  512. * test/slist.c (test_slist_insert_sorted): Fix the test.
  513. 2006-08-17 Aaron Bockover <[email protected]>
  514. * src/gptrarray.c: Added g_ptr_array_set_size implementation
  515. * test/ptrarray.c: Added test for g_ptr_array_set_size
  516. 2006-08-17 Miguel de Icaza <[email protected]>
  517. * src/glib.h: A handful of extra macros
  518. * configure.in, src/eglib-config.h.in: Set some system-specific
  519. settings that are probed at configure time.
  520. 2006-08-17 Aaron Bockover <[email protected]>
  521. * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
  522. * src/glib.h: Added GPtrArray signatures
  523. * src/Makefile.am: Added gptrarray.c to build
  524. * test/ptrarray.c:
  525. * test/tests.h:
  526. * test/driver.c:
  527. * test/Makefile.am: Add ptrarray tests for available functionality
  528. 2006-08-17 Aaron Bockover <[email protected]>
  529. * test/test.h:
  530. * test/test.c: Added group iterator/test driver functionality
  531. * test/driver.c: Added groups to run using new test functionality
  532. * test/slist.h:
  533. * test/hashtable.h:
  534. * test/string-util.h: Test group definitions for string util/hashtable
  535. * test/slist.c:
  536. * test/str.c:
  537. * test/hash.c: Added test definition table
  538. * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
  539. * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
  540. * src/glib.h: Added missing function signatures
  541. * src/Makefile.am: added -D_FORTIFY_SOURCE=2
  542. 2006-08-17 Duncan Mak <[email protected]>
  543. * src/gslist.c (g_slist_remove_link): I misread the function
  544. signature. Re-implemented.
  545. (g_slist_delete_link): Implemented.
  546. (g_slist_reverse): Implemented.
  547. (g_slist_insert_sorted): Implemented.
  548. 2006-08-17 Duncan Mak <[email protected]>
  549. * src/gslist.c (g_slist_find):
  550. (g_slist_length):
  551. (g_slist_remove):
  552. (g_slist_remove_link): Implemented.
  553. * test/slist.c: Tests for GSList.
  554. 2006-08-17 Raja R Harinath <[email protected]>
  555. * src/gslist.c (g_slist_free_1): New. Free a single list node.
  556. (g_slist_free): Use it to free the list nodes. Don't free the
  557. data, since the list doesn't own it.
  558. (g_slist_append): Convert into a one-liner.
  559. (g_slist_foreach): Remove redundant null check.
  560. (g_slist_last): Actually return the last node.
  561. (g_slist_copy): Simplify.
  562. * src/gslist.h (g_slist_free_1): Add.
  563. 2006-08-16 Duncan Mak <[email protected]>
  564. * src/gslist.c:
  565. * src/gslist.h: First attempt at implementing GSList, incomplete.
  566. * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
  567. * src/glib.h: Add GFunc definition. #include the new gslist.h.
  568. 2006-08-16 Miguel de Icaza <[email protected]>
  569. * src/Makefile.am: Added -Wall,-Werror, corrected lots of
  570. mistakes.
  571. * src/gstring.c: Gstring implementation.
  572. * test/str.c (test_gstring): string tests.
  573. 2006-08-16 Aaron Bockover <[email protected]>
  574. * src/gstr.c: Added g_strsplit implementation
  575. * test/driver.c: Run the split test
  576. * test/str.c: Added a test for g_strsplit
  577. * Makefile.am:
  578. * src/Makefile.am:
  579. * test/Makefile.am: Added MAINTAINERCLEANFILES
  580. 2006-08-16 Miguel de Icaza <[email protected]>
  581. * src/gouput.c: Implement some output routines, update missing
  582. progress.
  583. * test: Add test driver, and initial tests.
  584. 2006-08-15 Miguel de Icaza <[email protected]>
  585. * src/ghashtable.c: Implement most of this, it is completely
  586. untested at this point.