ChangeLog 30 KB

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