ChangeLog 34 KB

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