ChangeLog 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564
  1. 2010-07-25 Zoltan Varga <[email protected]>
  2. * configure.ac src/eglib-config.h.in src/eglib-config.hw: Define G_GINT64_FORMAT.
  3. 2010-07-20 Zoltan Varga <[email protected]>
  4. * src/glib.h (G_LIKELY): Implement these for gcc properly.
  5. 2010-07-19 Miguel de Icaza <[email protected]>
  6. * src/gmisc-win32.c (g_getenv): Distinguish between variable not
  7. found and an empty variable.
  8. This should fix 566152
  9. 2010-07-19 Zoltan Varga <[email protected]>
  10. * src/glib.h (G_MAXUINT64): Define this. Fixes #623293.
  11. * src/eglib-config.hw: Define UINT64_MAX.
  12. 2010-07-16 Gonzalo Paniagua Javier <[email protected]>
  13. * src/gmisc-unix.c: include config.h. Fixes bug #609632.
  14. Use getpwuid_r instead of getpwent_r.
  15. 2010-07-02 Zoltan Varga <[email protected]>
  16. * src/glib.h: Define gboolean as int32_t to match mono_bool.
  17. 2010-06-22 Rodrigo Kumpera <[email protected]>
  18. * src/ghashtable.c: Add code to sanity check the
  19. hashtable contents. This is invaluable, for example,
  20. to catch bugs where a key hashcode changes after
  21. insertion.
  22. 2010-06-18 Chris Toshok <[email protected]>
  23. patch from Jacob Berkman:
  24. * src/glib.h (g_mkdir): #define to mkdir
  25. (g_ascii_strtoull): #define to strtoull
  26. * src/gmodule.h: add G_BEGIN/END_DECLS
  27. * src/gstr.c (g_strdupv): new function.
  28. 2010-06-18 Rolf Bjarne Kvinge <[email protected]>
  29. * src/eglib-remap.h: Remap g_ptr_array_remove_fast too.
  30. 2010-06-15 Zoltan Varga <[email protected]>
  31. * src/gunicode.c: Applied patch from Hib Eris <[email protected]>. use "windows.h"
  32. instead of "Windows.h".
  33. 2010-05-25 Zoltan Varga <[email protected]>
  34. * Applied patch from Burkhard Linke ([email protected]). Fix
  35. building on solaris.
  36. 2010-05-21 Zoltan Varga <[email protected]>
  37. * src/gmisc-win32.c (g_setenv): Use the
  38. GetEnvironmentVariableW/SetEnvironmentVariableW variants.
  39. 2010-05-15 Zoltan Varga <[email protected]>
  40. * src/glib.h (g_error): Add a for (;;) after the call to tell GCC this doesn't
  41. return, fixing some warnings.
  42. 2010-05-13 Alan McGovern <[email protected]>
  43. * src/gstring.c: Put in some null guards for the ctors
  44. 2010-05-11 Miguel de Icaza <[email protected]>
  45. * src/gunicode.c: Pull the Windows.h header when G_OS_WIN32 is
  46. defined.
  47. 2010-05-11 Atsushi Enomoto <[email protected]>
  48. * Makefile.am : do not try to build test on windows (fails).
  49. * src/glib.h : fix cygwin build, do not include unistd.h.
  50. 2010-05-10 Miguel de Icaza <[email protected]>
  51. * gfile-win32.c: Port this to use the Win32 APIs to get this
  52. building with Cygwin.
  53. 2010-05-07 Andrew Jorgensen <[email protected]>
  54. * test/test.h: Fix some compiler warning that SUSE takes seriously.
  55. 2010-05-06 Alan McGovern <[email protected]>
  56. * src/gmarkup.c: Fix a parser issue when skipping the xml declaration.
  57. 2010-05-06 Jonathan Chambers <[email protected]>
  58. * gfile-win32.c: Use __stat64 instead of _stat64.
  59. 2010-05-04 Jonathan Chambers <[email protected]>
  60. * gspawn.c: Remove extern define for MSVC.
  61. 2010-05-03 Zoltan Varga <[email protected]>
  62. * src/glib.h: Include unistd.h on !windows for pid_t.
  63. * gspawn.c: Add an extern define for environ on !apple platforms.
  64. 2010-05-02 Zoltan Varga <[email protected]>
  65. * src/glib.h: Include sys/types.h for pid_t.
  66. 2010-05-01 Zoltan Varga <[email protected]>
  67. * src/goutput.c (g_logv): Append a '\n' to the end of the string as glib does.
  68. 2010-04-28 Zoltan Varga <[email protected]>
  69. * configure.ac src/gspawn.c: Applied openbsd changes from Robert Nagy
  70. <[email protected]>.
  71. 2010-04-16 Miguel de Icaza <[email protected]>
  72. * src/gshell.c (g_shell_unquote): Implement this.
  73. 2010-04-25 Andreas Faerber <[email protected]>
  74. * configure.ac: The iconv function may be libiconv_open.
  75. Fixes linking with GNU libiconv.
  76. Contributed under MIT/X11 license.
  77. 2010-04-23 Geoff Norton <[email protected]>
  78. * configure.ac: The iconv function is iconv_open.
  79. 2010-04-19 Jonathan Pryor <[email protected]>
  80. * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
  81. terms of g_critical() instead of printf, and turn g_printerr() into
  82. an actual function instead of a macro.
  83. * src/goutput.c: Add Android support, sending g_print(), g_printerr(),
  84. and g_log() messages to the Android system log.
  85. 2010-04-16 Gonzalo Paniagua Javier <[email protected]>
  86. * test/ptrarray.c: new tests
  87. * src/gptrarray.c: implemented g_ptr_array_remove_fast().
  88. 2010-04-10 Andreas Faerber <[email protected]>
  89. * configure.ac: Add checks for libm and libdl.
  90. * {src,test}/Makefile.am: Remove hardcoded library dependencies.
  91. Fixes compilation on Haiku.
  92. Contributed under MIT/X11 license.
  93. 2010-03-05 Zoltan Varga <[email protected]>
  94. * test/test.c (_GNU_SOURCE): Fix compilation if _GNU_SOURCE is already defined.
  95. Thu Mar 4 16:34:37 CET 2010 Paolo Molaro <[email protected]>
  96. * src/unicode-data.h: save 70 KB.
  97. Thu Mar 4 16:18:34 CET 2010 Paolo Molaro <[email protected]>
  98. * src/eglib-remap.h, src/glib.h: header file to remap the symbols
  99. so there is no clash with system glib.
  100. * src/Makefile.am: build static lib as well.
  101. 2010-03-04 Zoltan Varga <[email protected]>
  102. * configure.ac: Add a check for ISO varargs.
  103. * test/test.c: Fix the build.
  104. * src/glib.h src/goutput.c: Emit asserts through a g_assertion_message ()
  105. function which is decorated with G_GNUC_NORETURN, to fix many warnings when using
  106. the eglib build.
  107. Mon Mar 1 17:12:24 CET 2010 Paolo Molaro <[email protected]>
  108. * src/unicode-data.h, src/gutf8.c: don't export private symbols.
  109. 2009-12-03 Zoltan Varga <[email protected]>
  110. * src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
  111. var is not set.
  112. 2009-10-15 Andreia Gaita <[email protected]>
  113. * src/gptrarray.c: implement g_ptr_array_remove_index_fast
  114. * src/glib.h: fix g_ptr_array_remove_index_fast declaration
  115. * test/ptrarray.c: new tests
  116. 2009-10-15 Andreia Gaita <[email protected]>
  117. * src/garray.c: (g_array_remove_index_fast) only move 1 element
  118. and not the whole shebang
  119. 2009-09-26 Gonzalo Paniagua Javier <[email protected]>
  120. * test/queue.c: new tests.
  121. * src/gqueue.c: fixed pop_head.
  122. 2009-09-26 Gonzalo Paniagua Javier <[email protected]>
  123. * src/gqueue.c: add g_queue_push_tail.
  124. 2009-06-20 Zoltan Varga <[email protected]>
  125. * src/glib.h: Add GUINT32_FROM/TO_BE macros.
  126. 2009-06-09 Jonathan Chambers <[email protected]>
  127. * CMakeLists.txt: Add start of CMake build.
  128. * src/CMakeLists.txt: Add start of CMake build.
  129. Contribution is licensed as MIT/X11.
  130. 2009-06-02 Bill Holmes <[email protected]>
  131. * src/gpath.c (g_find_program_in_path): While searching on Windows
  132. also try additional suffixes .exe, .cmd, .bat, and.com.
  133. Contributed under MIT/X11 license.
  134. 2009-05-27 Geoff Norton <[email protected]>
  135. * src/gfile-posix.c: Fix g_get_current_dir on amd64
  136. 2009-04-22 Jeffrey Stedfast <[email protected]>
  137. * src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
  138. just saving it in a static variable. Also modified microseconds
  139. calculation to avoid overflow.
  140. 2009-04-05 Miguel de Icaza <[email protected]>
  141. * src/gpath.c: Avoid situations where we add the separator if one
  142. of the elements is the separator.
  143. 2009-04-02 Miguel de Icaza <[email protected]>
  144. * src/gpath.c: If the first element is NULL, return an empty
  145. string.
  146. 2009-02-19 Gonzalo Paniagua Javier <[email protected]>
  147. * src/gstr.c: use memset in g_strnfill.
  148. 2009-01-19 Bill Holmes <[email protected]>
  149. * src/gstr.c (g_strnfill): Fixing a warning for MSVC.
  150. Contributed under MIT/X11 license.
  151. 2009-02-05 Miguel de Icaza <[email protected]>
  152. * src/gstr.c: Add g_strnfill
  153. * src/glib.h: Add g_list_previous
  154. 2009-01-19 Bill Holmes <[email protected]>
  155. * gmisc-win32.c (g_path_is_absolute): Adding support for UNC
  156. paths on Windows.
  157. Contributed under MIT/X11 license.
  158. 2009-01-08 Bill Holmes <[email protected]>
  159. * winconfig.h, src/gfile-posix.c :
  160. Fixing the MSVC builds.
  161. Contributed under MIT/X11 license.
  162. 2009-01-07 Miguel de Icaza <[email protected]>
  163. * src/gfile-posix.c: Move g_get_current_dir, as it is a
  164. POSIX-esque feature, and some other systems do not have current
  165. directories.
  166. * src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC):
  167. Embedded support from Paolo's work on quack.
  168. * configure.ac: check for strtok_r, langinfo.h and iconv.h
  169. * src/gpath.c (strtok_r): Add a strtok_r implementation if it is
  170. not available on the target system.
  171. 2008-11-05 Bill Holmes <[email protected]>
  172. * src/gutf8.c, src/unicode-data.h, src/gunicode.c :
  173. Fixing the MSVC builds.
  174. Contributed under MIT/X11 license.
  175. 2008-11-04 Atsushi Enomoto <[email protected]>
  176. * src/gutf8.c, src/gunicode.c, src/glib.h:
  177. implemented g_unichar_type(), g_unichar_toupper(),
  178. g_unichar_tolower(), g_unichar_totitle(), g_utf8_strup()
  179. and g_utf8_strdown(). Fixed some surrogate pair bugs.
  180. * TODO : removed implemented things.
  181. * test/unicode.c, test/tests.h, test/utf8.c, test/Makefile.am:
  182. added new tests.
  183. 2008-11-04 Atsushi Enomoto <[email protected]>
  184. * src/unicode-data.h : new header for some new unicode manipulation
  185. functions.
  186. 2008-10-17 Miguel de Icaza <[email protected]>
  187. * Allow types to be defined on the eglib-config.h file, that could
  188. be a platform specific generated type file.
  189. * gtimer.c: split functionality in platforms.
  190. 2008-10-13 Bill Holmes <[email protected]>
  191. * src/gdate-win32.c : Fix compiler errors for MSVC.
  192. * src/gpath.c : Fix compiler errors for MSVC.
  193. * src/gfile-posix.c : Adding declaration for mkstemp for the win 32
  194. implementation in gfile-win32.c.
  195. Contributed under MIT/X11 license.
  196. 2008-10-11 Miguel de Icaza <[email protected]>
  197. * gtimer.c: Same process.
  198. * src/glib.h: Move g_strdup here, to consolidate all allocations
  199. in this header, will help for merging the allocation work later.
  200. * src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
  201. for MatchType.
  202. * src/gpath.c: Split this one as well.
  203. * src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
  204. src/gmodule-unix.c: split functionality in platforms.
  205. * src/goutput.c (g_logv): On some platforms, before we abort we
  206. want to flush the stdout/stderr.
  207. 2008-10-10 Miguel de Icaza <[email protected]>
  208. * Split functionality that is operating system specific into
  209. -win32.c, -unix.c and -posix.c
  210. * Use g_malloc everywhere, and g_free, so that these can be easily
  211. overwritten consistently.
  212. 2008-09-16 Bill Holmes <[email protected]>
  213. * src/gunicode.c : Fix a warning.
  214. Contributed under MIT/X11 license.
  215. 2008-08-28 Bill Holmes <[email protected]>
  216. * src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
  217. Contributed under MIT/X11 license.
  218. 2008-08-27 Bill Holmes <[email protected]>
  219. * glib.h, gunicode.c : Fixing some compiler errors.
  220. Contributed under MIT/X11 license.
  221. 2008-08-20 Mike Voorhees <[email protected]>
  222. * Patch from Mike Voorhees to fix various problems with
  223. g_utf8_validate compared to the glib implementation and unit tests
  224. to ensure that there are no regressions.
  225. From a mailing list post to mono-devel-list on August 19th, 2008
  226. [Mono-dev] utf8 related patches. Please review.
  227. 2008-08-20 Mike Voorhees <[email protected]>
  228. * src/glib.h : Adding declarations for g_utf8_strlen, g_utf8_get_char,
  229. and g_utf8_next_char.
  230. * src/gunicode.c : Adding implementation for g_utf8_strlen, g_utf8_get_char,
  231. and g_utf8_next_char.
  232. * src/gunicode.c : Rewrote g_utf8_validate.
  233. * test/utf8.c Adding tests for g_utf8_strlen, g_utf8_get_char,
  234. g_utf8_next_char, and g_utf8_validate.
  235. Contributed under MIT/X11 license.
  236. 2008-08-05 Andreas Faerber <[email protected]>
  237. * autogen.sh: Suppress arguments warning for NOCONFIGURE.
  238. Contributed under MIT/X11 license.
  239. 2008-08-04 Bill Holmes <[email protected]>
  240. * test/tests.h, test/Makefile.am, test/memory.c : Adding memory tests to test
  241. allocation routines return NULL when 0 size is passed in.
  242. Contributed under MIT/X11 license.
  243. 2008-08-04 Bill Holmes <[email protected]>
  244. * src/glib.h : Changing the allocation routines to return null if 0 size is
  245. passed in.
  246. Contributed under MIT/X11 license.
  247. 2008-06-16 Zoltan Varga <[email protected]>
  248. * src/vasprintf.c (vasprintf): Applied patch from Michail Ushakov
  249. <[email protected]>. Workaround broken vsnprintf on windows. Fixes
  250. #400445.
  251. 2008-06-11 Zoltan Varga <[email protected]>
  252. * src/goutput.c (g_log): Remove unnecessary and incorrect call to
  253. g_strdup_printf (). Fixes #398918.
  254. 2008-05-01 Bill Holmes <[email protected]>
  255. * src/glib.h : Adding declarations for g_ucs4_to_utf16 and g_utf16_to_ucs4.
  256. * src/gutf8.c : Adding implementation for g_ucs4_to_utf16 and g_utf16_to_ucs4.
  257. * test/utf8.c Adding tests for g_ucs4_to_utf16 and g_utf16_to_ucs4.
  258. Contributed under MIT/X11 license.
  259. 2008-04-20 Geoff Norton <[email protected]>
  260. * src/gspan.c: Fix the _NSGetEnviron define to prevent an impropoer
  261. pointer dereference.
  262. 2008-03-19 Bill Holmes <[email protected]>
  263. * src/gpath.c (g_path_is_absolute) : Adding a case for '/'
  264. on Windows.
  265. * src/gpath.c (g_get_user_name) : On Windows add a check for %USERNAME%
  266. when %USER% fails.
  267. * src/gstr.c (g_strsplit, g_strsplit_set): Change to remove truncation
  268. errors with MSVC build.
  269. * src/gstr.c (g_filename_to_uri, g_filename_from_uri): Fixes to handle
  270. Windows paths.
  271. * src/gstr.c (g_ascii_strncasecmp): Convert each character to lower case
  272. before comparing.
  273. * src/gunicode.c (g_get_charset): Implement for Windows.
  274. Contributed under MIT/X11 license.
  275. 2008-03-12 Geoff Norton <[email protected]>
  276. * src/gutf8.c: Implement g_ucs4_to_utf16 and g_utf16_to_ucs4 as
  277. asserts. They're needed to build mono with eglib.
  278. * src/gutil.h: Add a few missing function declarations to the header.
  279. * src/gspawn.c: Some darwin implementations don't have crt_externs.h
  280. So we'll just define _NSGetEnviron() ourselves.
  281. * Makefile.am: Dont build test when cross compiling.
  282. * configure.ac: Define CROSS_COMPILING when cross compiling.
  283. Undefine _FORTIFY_SOURCE on arm-apple-darwin as the headers it
  284. requires are not available.
  285. 2008-01-15 Andreas Faerber <[email protected]>
  286. * configure.ac: Add default G_BREAKPOINT implementation.
  287. Fix typo in breakpoint CPU output.
  288. 2007-12-23 Zoltan Varga <[email protected]>
  289. * src/glib.h: Include <limits.h>. Fixes #350482.
  290. 2007-11-21 Dick Porter <[email protected]>
  291. * src/gslist.c (g_slist_find_custom): Implement
  292. * src/glist.c (g_list_find_custom): Implement
  293. * test/list.c: Test g_list_find_custom()
  294. * test/slist.c: Test g_slist_find_custom()
  295. 2007-11-20 Dick Porter <[email protected]>
  296. * src/gstr.c: Implement g_strsplit_set() and re-implement
  297. g_strsplit() so it passes the additional tests. (g_strsplit()
  298. should treat multi-char delimiters as just a single token, rather
  299. than a set of delimiters.)
  300. * src/gslist.c: Implement g_slist_index(), g_slist_nth() and
  301. g_slist_nth_data().
  302. * test/string-util.c: Test g_strsplit_set() and more tests for
  303. g_strsplit().
  304. * test/slist.c: Test g_slist_nth() and
  305. g_slist_index().
  306. 2007-11-06 Geoff Norton <[email protected]>
  307. * configure.ac: Check for libiconv_open as the previous check was failing against
  308. some versions of libiconv.
  309. 2007-11-06 Andreas Faerber <[email protected]>
  310. * test/Makefile.am: Fix noinst_PROGRAMS for automake 1.6.3
  311. Add support for VPATH
  312. 2007-11-06 Geoff Norton <[email protected]>
  313. * configure.ac: Determing if glib-2.0 is installed and set HAVE_GLIB appropriately
  314. * test/Makefile.am: Only build test-glib if glib-2.0 is available
  315. 2007-11-05 Geoff Norton <[email protected]>
  316. * configure.ac: Check for getpwent_r and wether libiconv is needed to be linked.
  317. Also look to see if we can use export-dynamic in the test suite.
  318. * test/Makefile.am: Get LDFLAGS from configure instead of setting them.
  319. * src/gerror.c: Implement g_clear_error.
  320. * src/glib.h: Only use the format, ... convention is HAVE_C99_SUPPORT is available.
  321. * src/gpath.c: Only use the getpwent_r codepath if getpwent_r is available.
  322. * src/gspawn.c: Define environ to call _NSGetEnviron() on Apple.
  323. * src/Makefile.am: Remove -Werror so we dont fail on different function declarations.
  324. Portions of all of the above are from Andreas Faerber & Jonathan Chambers
  325. 2007-10-31 Jonathan Chambers <[email protected]>
  326. * src/ghashtable.c: Add g_hash_table_foreach_steal.
  327. * src/garray.c: Add g_array_remove_index_fast.
  328. * src/gpath.c (g_path_is_absolute): Handle windows paths.
  329. * src/glib.h: Add g_hash_table_foreach_steal and g_array_remove_index_fast
  330. Contribution is licensed as MIT/X11.
  331. 2007-06-13 Jonathan Chambers <[email protected]>
  332. * src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
  333. * src/gmisc.c: Add g_win32_getlocale stub.
  334. * src/glib.h: Add declarations of above functions,
  335. GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
  336. macros.
  337. * test/string-util.c: Fix warning.
  338. * test/utf8.c: Add test for g_unichar_xdigit_value.
  339. Contribution is licensed as MIT/X11.
  340. 2007-05-05 Aaron Bockover <[email protected]>
  341. * src/gstr.c:
  342. * src/glib.h: Added g_ascii_tolower implementation; make g_ascii_strdown
  343. use it to do the transformation
  344. * test/string-util.c: Added a test for g_ascii_strdown
  345. 2007-04-27 Jonathan Chambers <[email protected]>
  346. * src/gstr.c: Fix off by one error in g_strdup allocation.
  347. 2007-04-27 Jonathan Chambers <[email protected]>
  348. * src/eglib-config.hw: Forgot to add for msvc build.
  349. * src/vasprintf: Forgot to add for msvc build.
  350. 2007-04-27 Jonathan Chambers <[email protected]>
  351. * src/gstr.c: Fix off by one error for NULL terminator.
  352. 2007-04-27 Jonathan Chambers <[email protected]>
  353. Combined patch from Michael Jerris <[email protected]> and me.
  354. * winconfig.h: Config file for msvc builds.
  355. * configure.ac: Add AC_CHECK_HEADERS for getopt.h, sys/time.h,
  356. sys/wait.h, and pwd.h.
  357. * src/gspawn.c: Include config.h and use HAVE_* macros.
  358. * src/eglib-config.h.in: Add inclusion guards.
  359. * src/ghashtable.c: Fix warnings.
  360. * src/gmisc.c: Windows implementation of g_getenv, g_setenv,
  361. and g_unsetenv.
  362. * src/gpath.c: Include config.h and use HAVE_* macros.
  363. * src/gmarkup.c: Fix warnings.
  364. * src/gptrarray.c: Fix warnings.
  365. * src/gstr.c: Fix warnings and use HAVE_* macros.
  366. * src/glib.h: Move macros to eglib-config.h and include it.
  367. * src/gdate.c: Implement g_get_current_time on windows.
  368. * src/gpattern.c: Fix warnings.
  369. * src/gdir.c: Implement g_dir on windows.
  370. * src/gfile.c: Implement mkstemp and g_file_test on windows.
  371. * src/gtimer.c: Implement g_timer on windows.
  372. * src/gmodule.c: Fix warnings.
  373. * src/gunicode.c: Fix warnings.
  374. * src/gutf8.c: Fix warnings.
  375. * test/ptrarray.c: Fix warnings.
  376. * test/string.c: Fix warnings.
  377. * test/list.c: Fix warnings.
  378. * test/pattern.c: Use HAVE_* macros.
  379. * test/dir.c: Use HAVE_* macros.
  380. * test/file.c: Use HAVE_* macros and use system specific files for tests.
  381. * test/test.c: Fix warnings and use HAVE_* macros.
  382. * test/timer.c: Use HAVE_* macros.
  383. * test/string-util.c: Fix warnings.
  384. * test/test.h: Supress warnings on msvc.
  385. * test/module.c: Use HAVE_* macros.
  386. * test/utf8.c: Fix warnings.
  387. * test/spawn.c: Use HAVE_* macros.
  388. * test/driver.c: Fix warnings and use HAVE_* macros.
  389. * test/path.c: Use HAVE_* macros and use system specific files for tests.
  390. * test/sizes.c: Fix warnings.
  391. 2007-04-24 Jonathan Chambers <[email protected]>
  392. Patch from Michael Jerris <[email protected]>
  393. * src/gspawn.c: Start msvc build.
  394. * src/gpath.c: Start msvc build.
  395. * src/gmarkup.c: Start msvc build.
  396. * src/gshell.c: Start msvc build.
  397. * src/gstr.c: Start msvc build.
  398. * src/glist.c: Start msvc build.
  399. * src/glib.h: Start msvc build.
  400. * src/gdate.c: Start msvc build.
  401. * src/gpattern.c: Start msvc build.
  402. * src/gdir.c: Start msvc build.
  403. * src/gfile.c: Start msvc build.
  404. * src/gtimer.c: Start msvc build.
  405. * src/gmodule.c: Start msvc build.
  406. * src/gunicode.c: Start msvc build.
  407. 2007-01-27 Robert Jordan <[email protected]>
  408. * test/Makefile.am: Add linker option to be able to
  409. load symbols from the main program.
  410. * test/module.c: Clean-ups.
  411. 2007-01-26 Robert Jordan <[email protected]>
  412. * configure.ac: Add PLATFORM_WIN32 conditional.
  413. * src/Makefile.ac: Use PLATFORM_WIN32 conditional for psapi, iconv
  414. * test/module.c, test/tests.h, test/Makefile.am: New test for gmodule.
  415. * src/gmodule.h: Add G_MODULE_{IMPORT|EXPORT} defines.
  416. * src/gmodule.c (g_module_symbol): Implement in-proc symbol lookup
  417. for Win32.
  418. * src/gmodule.c: Add GModule.main_module, consider it in
  419. g_module_close ().
  420. * src/gpath.c (g_get_home_dir): Add dummy Win32 implementation to
  421. fix the build.
  422. 2006-11-03 Miguel de Icaza <[email protected]>
  423. * src/gpath.c (g_path_get_dirname): If the pathname starts with a
  424. "/", return the "/".
  425. * test/string-util.c (test_strlcpy): Add new test.
  426. * src/gunicode.c (g_filename_from_utf8): g_strlcpy needs the full
  427. size, with the extra zero at the end; Fixes the stack trace
  428. issue.
  429. 2006-10-30 Miguel de Icaza <[email protected]>
  430. * test/utf8.c (test_utf8_seq): Add new failing test.
  431. 2006-10-30 Atsushi Enomoto <[email protected]>
  432. * src/gutf8.c : several fixes:
  433. - fixed incorrect mb_size clear and mb_remain computation.
  434. - initialize items_written to 0 for error case.
  435. - in utf8_to_utf16_len differentiate error messages completely.
  436. - in g_utf8_to_utf16 use guchar instead of gchar.
  437. * test/utf8.c : added test case string in test_utf8_seq() to
  438. both test_utf8_to_utf16() and test_utf16_to_utf8().
  439. 2006-10-21 Miguel de Icaza <[email protected]>
  440. * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here.
  441. * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
  442. null values here. This gets things a little bit further in
  443. corlib, but not too far.
  444. * src/gdir.c (g_dir_read_name): Do not return . or ..
  445. * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
  446. thanks to Paolo for pointing the problem with the double macro
  447. expansion.
  448. * src/gmodule.c (g_module_open): Actually return NULL if we fail
  449. to load the module (was hiding the real bug in the pinvoke tests).
  450. (g_module_build_path): Do not prepend "lib" if the "lib" is part
  451. of the call.
  452. * src/gstr.c (g_strsplit): this routine has some non-expected
  453. behavior, if the string begins with the delimiter, it will return
  454. an empty first string, unlike strtok
  455. * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
  456. paths that do not contain a directory.
  457. 2006-10-18 Gonzalo Paniagua Javier <[email protected]>
  458. * test/array.c: new test for insertion in the middle of other values.
  459. * src/garray.c: fixed destination index.
  460. 2006-10-18 Miguel de Icaza <[email protected]>
  461. * src/gpath.c (g_build_path): Do not append terminator if the next
  462. string is empty.
  463. * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
  464. documented.
  465. (g_utf16_to_utf8): Include trailing zero as documented.
  466. 2006-10-17 Miguel de Icaza <[email protected]>
  467. * src/gstr.c (g_strdown): Actually move.
  468. * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
  469. sequence, reset the state after a closing element.
  470. * src/garray.c (g_array_insert_vals): Shift the elements the
  471. correct amount.
  472. (g_array_insert_vals): Should actually use the
  473. number of elements to insert.
  474. * test/array.c: Add new test case, this was happening in the JIT.
  475. * Add _GNU_SOURCE at configure time, remove from sources.
  476. * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
  477. * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
  478. for the support stuff.
  479. Move private prototypes elsewhere
  480. * src/glib.h (g_thread_init): Adding missing brace
  481. (g_list_next): remove ; from the macro definition.
  482. 2006-10-17 Miguel de Icaza <[email protected]>
  483. * src/gutf8.c: internal methods
  484. * src/ghashtable.c: internal methods.
  485. 2006-10-16 Miguel de Icaza <[email protected]>
  486. * src/gerror.c (g_propagate_error): Implement.
  487. * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
  488. * test/string-util.c (test_ascii_strncasecmp): test
  489. 2006-10-15 Miguel de Icaza <[email protected]>
  490. * configure.in: Fix detection of platforms the [3456] stuff does
  491. not work inside autoconf.
  492. * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
  493. * src/glib.h (offsetof): Mono sources depend on this, bring this
  494. from the standard definition. Redefine G_STRUCT_OFFSET in terms
  495. of this.
  496. * src/glib.h (G_STRUCT_OFFSET): fix macro definition.
  497. fix typo.
  498. * src/sizes.c: Add test.
  499. * src/gshell.c: Make it build
  500. 2006-10-14 Miguel de Icaza <[email protected]>
  501. * src/glib.h: add various _TO_LE and _FROM_LE macros.
  502. * test/endian.c: tests for endian conversion macros.
  503. 2006-10-09 Miguel de Icaza <[email protected]>
  504. * src/gmodule.h: Move definitions of gmodule to gmodule.h because
  505. Mono expects it there.
  506. Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <[email protected]>
  507. * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
  508. and put the array in readonly memory.
  509. * src/gstr.c: fixed the build and made array const.
  510. * src/gmodule.c: fixed thinko.
  511. 2006-10-08 Miguel de Icaza <[email protected]>
  512. * src/gstr.c (g_strdup): should allow NULL as an argument.
  513. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  514. * test/string-util.c:
  515. * TODO:
  516. * src/gstr.c:
  517. * src/glib.h: implemented g_strescape.
  518. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  519. * test/string-util.c:
  520. * configure.ac:
  521. * TODO:
  522. * src/gstr.c:
  523. * src/glib.h: implemented g_strlcpy.
  524. 2006-10-08 Gonzalo Paniagua Javier <[email protected]>
  525. * test/string-util.c:
  526. * TODO:
  527. * src/gstr.c:
  528. * src/glib.h: implemented g_strdelimit.
  529. 2006-10-07 Gonzalo Paniagua Javier <[email protected]>
  530. * test/spawn.c: add search path flag when running ls.
  531. * src/gspawn.c: g_spawn_command_line_sync searches the program in the
  532. PATH if it's not an absolute path.
  533. 2006-10-07 Gonzalo Paniagua Javier <[email protected]>
  534. * test/string-util.c:
  535. * src/glib.h: implement g_ascii_xdigit_value and tests.
  536. 2006-10-06 Miguel de Icaza <[email protected]>
  537. * src/gstr.c (g_ascii_strdown): Implement.
  538. * str/glib.c (g_log_set_handler): empty.
  539. (g_printerr): empty.
  540. (GMemVTable): define, empty, ignored.
  541. (G_USEC_PER_SEC) :-)
  542. * src/gunicode.c (g_convert): Add bytes_read, bytes_written
  543. support; Small fixes to avoid valgrind errors.
  544. (g_utf8_validate): Add, based on the libxml code.
  545. gstr.c: implement g_strdown.
  546. 2006-10-05 Miguel de Icaza <[email protected]>
  547. * src/gunicode.c: Some work in progress to implement g_convert
  548. (which is needed by g_locale_to_utf8).
  549. 2006-09-18 Miguel de Icaza <[email protected]>
  550. * test/string-util.c (test_filename_from_uri): tests for new
  551. methods.
  552. * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement.
  553. 2006-09-14 Atsushi Enomoto <[email protected]>
  554. * src/gutf8.c, test/utf8.c : EOL fix.
  555. 2006-09-04 Miguel de Icaza <[email protected]>
  556. * src/gmarkup.c: The leak fixing commit.
  557. * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
  558. method.
  559. (g_markup_parse_context_free): Implement.
  560. (parse_attributes): Store the value, not the attribute name
  561. twice.
  562. Properly check the /> section.
  563. (g_markup_parse_context_parse): When checking for error, use the
  564. "error!=NULL && *error != NULL" upon return from callbacks,
  565. it is only then that its valid to check for *error for error
  566. conditions.
  567. (g_markup_parse_context_parse): Add comment processing.
  568. Only release one element of the list.
  569. * test/markup.c: Incorporate the kind of code that is used in Mono
  570. for domain loading; Will test the rest later.
  571. 2006-09-01 Miguel de Icaza <[email protected]>
  572. * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
  573. support, and end-element support; not tested yet.
  574. 2006-09-01 Atsushi Enomoto <[email protected]>
  575. * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
  576. 2006-09-01 Atsushi Enomoto <[email protected]>
  577. * gutf8.c : when error is null, utf8_to_utf16_len() and
  578. utf16_to_utf8_len() could return -1, so return NULL for those
  579. cases in g_utf8_to_utf16() and g_utf16_to_utf8().
  580. 2006-09-01 Miguel de Icaza <[email protected]>
  581. * src/gmarkup.c: Builds and does minimal parsing.
  582. * test/markup.c: Sample test cases I have been using
  583. 2006-08-31 Atsushi Enomoto <[email protected]>
  584. * src/gerror.h,
  585. src/gerror.c : added g_set_error().
  586. * src/gutf8.c :
  587. g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
  588. * src/glib.h : added all above, and some dependent bits.
  589. * src/Makefile.am : added gutf8.c.
  590. * TODO: removed above.
  591. * test/Makefile.am,
  592. test/tests.h : added utf8 tests.
  593. * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
  594. It still needs more tests e.g. for multibytes.
  595. 2006-08-31 Gonzalo Paniagua Javier <[email protected]>
  596. * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
  597. 2006-08-31 Gonzalo Paniagua Javier <[email protected]>
  598. * test/file.c: remove useless test.
  599. * test/spawn.c: new g_spawn_async_with_pipes test.
  600. * src/glib.h: Modified file.
  601. * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
  602. 2006-08-28 Gonzalo Paniagua Javier <[email protected]>
  603. * TODO: Modified file.
  604. * test/tests.h:
  605. * test/pattern.c:
  606. * test/dir.c:
  607. * test/Makefile.am:
  608. * src/Makefile.am:
  609. * src/glib.h:
  610. * src/gdir.c:
  611. * src/gfile.c: implemented g_dir_*, unix version.
  612. 2006-08-27 Gonzalo Paniagua Javier <[email protected]>
  613. * src/glib.h:
  614. * test/Makefile.am: Modified file.
  615. * test/tests.h:
  616. * src/Makefile.am: Modified file.
  617. * test/pattern.c:
  618. * src/gpattern.c: implemented the 3 pattern matching functions used.
  619. * test/ptrarray.c: fix the compare function to work with qsort.
  620. * test/file.c:
  621. * test/path.c:
  622. * src/gspawn.c:
  623. * src/gpath.c: made valgrind happy.
  624. 2006-08-26 Gonzalo Paniagua Javier <[email protected]>
  625. * test/file.c:
  626. * src/glib.h:
  627. * src/gfile.c: implemented g_file_test. Changed the default mask to
  628. .XXXXXX. Add tests.
  629. 2006-08-26 Raja R Harinath <[email protected]>
  630. * src/sort.frag.h (digit): Declare here based on externally
  631. provided typedef 'list_node'.
  632. (MAX_DIGITS): Use 'sizeof (list_node)'.
  633. * src/gslist.c (list_node): Declare instead of 'digit'.
  634. * src/glist.c: Likewise.
  635. * test/slist.c (verify_sort): Verify the length of the list too.
  636. (test_slist_sort): Free the correct list.
  637. * test/list.c: Likewise.
  638. * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
  639. (combine_sort): Change 'max_pos' argument to more natural
  640. 'n_digits'.
  641. (increment): Likewise. Use 'n_digits' to avoid reading at an
  642. offset that hasn't been initialized.
  643. (do_sort): Remove memset.
  644. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  645. * TODO:
  646. * test/file.c:
  647. * src/glib.h:
  648. * src/gfile.c: implement g_file_open_tmp.
  649. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  650. * TODO:
  651. * src/glib.h:
  652. * src/gdate.c: New file.
  653. * src/gfile.c: New file.
  654. * src/Makefile.am: implemented g_file_get_contents and
  655. g_get_current_time.
  656. * test/tests.h:
  657. * test/file.c: New file.
  658. * test/Makefile.am: tests for the above.
  659. 2006-08-26 Raja R Harinath <[email protected]>
  660. * src/sort.frag.h: Add copyright notice and some explanation.
  661. (increment): Remove null check.
  662. (combine_digits): Add 'list' argument to seed the summation.
  663. (do_sort): Use the empty or singleton tail as the seed, rather
  664. than calling 'increment'.
  665. 2006-08-25 Raja R Harinath <[email protected]>
  666. * TODO: Remove 'List' entries.
  667. * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
  668. * src/sort.frag.h: New. Implements a "generic" bottom-up "counting"
  669. mergesort that works both on singly- and doubly-linked lists.
  670. * src/gslist.c (g_slist_sort): Use it.
  671. * src/glist.c (g_list_sort): Likewise.
  672. * src/glib.h (g_slist_sort, g_list_sort): Declare.
  673. * test/slist.c, test/list.c: Add basic testcases.
  674. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  675. * src/gspawn.c: propagate errors from reads.
  676. * src/gpath.c: an empty PATH is like a NULL one.
  677. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  678. * test/tests.h:
  679. * test/timer.c:
  680. * test/Makefile.am:
  681. * TODO:
  682. * src/glib.h:
  683. * src/gtimer.c:
  684. * src/Makefile.am: implemented GTimer.
  685. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  686. * test/tests.h:
  687. * test/Makefile.am:
  688. * test/spawn.c:
  689. * src/gspawn.c:
  690. * src/glib.h:
  691. * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
  692. Still need better error handling, but works for the most part.
  693. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  694. * src/garray.c: grow faster so that the 'big' test does not crawl.
  695. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  696. * test/shell.c:
  697. * src/gqueue.c: plugged leaks.
  698. 2006-08-25 Gonzalo Paniagua Javier <[email protected]>
  699. * test/path.c:
  700. * src/gpath.c: when PATH is not defined, the current dir is used.
  701. See execvp(3).
  702. 2006-08-25 Alp Toker <[email protected]>
  703. * src/gstr.c: g_strv_length() should return guint, not gint
  704. * src/glib.h: Add g_strv_length() prototype
  705. 2006-08-24 Miguel de Icaza <[email protected]>
  706. * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
  707. g_get_prgname, g_set_prgname): implemented.
  708. * test/ Fix leaks.
  709. * src/gpath.c (g_get_current_dir): Implement.
  710. (g_find_program_in_path, g_path_is_absolute): implement.
  711. Add g_path_get_dirname, g_path_get_basename
  712. * src/gpath.c: Path routines
  713. 2006-08-23 Miguel de Icaza <[email protected]>
  714. * src/gerror.c: Implement.
  715. * src/glist.c (g_list_sort): Remove routine instead of hoping that
  716. it wont crash when we run it.
  717. 2006-08-23 Raja R Harinath <[email protected]>
  718. * src/glist.c (g_list_insert_before): Avoid non-head declaration.
  719. * test/slist.c (test_slist_insert_before): Add.
  720. * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
  721. * test/list.c (test_list_insert_before): Add test for return value
  722. of g_list_insert_before.
  723. * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
  724. to rebuild test if eglib changes.
  725. * src/glist.c (new_node, disconnect_node): New helpers that
  726. maintain doubly-linked list invariants.
  727. (g_list_prepend, g_list_append): Express in terms of new_node.
  728. (g_list_insert_before): Likewise. Fix return value when inserting
  729. in the middle of the list.
  730. (g_list_concat): Reorganize to make more compact.
  731. (g_list_nth): Likewise.
  732. (g_list_nth_data): Don't segfault if 'n' is too large.
  733. (g_list_remove): Rewrite using _find and disconnect_node.
  734. (g_list_remove_link): Don't traverse list: use disconnect_node.
  735. (g_list_insert_sorted): Rewrite to make more compact. Use new_node.
  736. (g_list_copy): Likewise.
  737. (_prepend, _concat): Remove.
  738. * src/gslist.c (insert_after, find_prev, find_prev_link):
  739. New helpers.
  740. (g_slist_copy): Simplify slightly, using insert_after.
  741. (g_slist_concat): Reorganize to make more compact.
  742. (g_slist_find): Likewise.
  743. (g_slist_insert_sorted): Likewise.
  744. (g_slist_remove): Rewrite using find_prev.
  745. (g_slist_remove_link): Rewrite using find_prev_link.
  746. (g_slist_remove_all, g_slist_insert_before): New.
  747. 2006-08-21 Duncan Mak <[email protected]>
  748. * src/gqueue.c: GQueue implementation.
  749. * src/glib.h: Add prototypes.
  750. * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
  751. * test/queue.c:
  752. * test/Makefile.am (SOURCES):
  753. * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
  754. 2006-08-21 Aaron Bockover <[email protected]>
  755. * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
  756. realloc/delimiter token not found); use memcpy instead of strncpy for
  757. better performance
  758. * test/test.c (run_group): allow running specific tests under a group;
  759. added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
  760. and eg_strfreev to avoid performance skews in the driver
  761. * test/driver.c: allow user-specified group name to contain specific
  762. test to run under the group as 'group_name:test1,test2,...testN'
  763. * test/string-util.c: Added more g_strsplit tests
  764. * test/slist.c:
  765. * test/ptrarray.c:
  766. * test/fake.c:
  767. * test/string.c:
  768. * test/list.c:
  769. * test/array.c:
  770. * test/hashtable.c: make test names shorter (no need to prefix with
  771. the group since it runs under the group)
  772. 2006-08-21 Miguel de Icaza <[email protected]>
  773. * src/glib.h (g_hash_table_new_full): Add missing prototype.
  774. Replace g_free(x) with plain free, so it can be used as a function
  775. argument.
  776. Add ABS
  777. * src/ghashtable.c: Add rehashing.
  778. * test/hashtable.c: Add a bunch of extra tests.
  779. * src/goutput.c: Fix g_log so it actually formats the data.
  780. * src/ghashtable.c (g_hash_table_new): The glib test suite
  781. uncovered a bunch of bugs, the g_hash_table_new should actually
  782. have parameters.
  783. (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
  784. uncovered.
  785. 2006-08-20 Aaron Bockover <[email protected]>
  786. * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
  787. * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
  788. * src/glib.h: added macros for above va_args printf functions
  789. * src/Makefile.am: added gmisc.c
  790. * test/whats-implemented: script to see what needs to be implemented
  791. 2006-08-20 Chris Toshok <[email protected]>
  792. * test/array.c (test_array_big): add a test from the glib
  793. documentation.
  794. 2006-08-20 Chris Toshok <[email protected]>
  795. * test/tests.h: add array tests to the mix.
  796. * test/array.c: a few array tests.
  797. * src/glib.h: add array prototypes.
  798. * src/garray.c: initial array foo.
  799. * test/Makefile.am (SOURCES): add array.c
  800. * src/Makefile.am (libeglib_la_SOURCES): add garray.c
  801. 2006-08-19 Aaron Bockover <[email protected]>
  802. * src/gstring.c: optimize and generalize reallocation by providing
  803. a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are
  804. very, very slow; GString is now much closer to GLib's implementation
  805. in terms of performance
  806. * test/string.c: added speed-specific tests to beat on reallocation code
  807. * test/test-both: run make if the test drivers don't exist
  808. 2006-08-19 Jonathan Chambers <[email protected]>
  809. * src/gmodule.c: Add gmodule support for windows and fix
  810. windows build. Contribution is licensed as MIT/X11.
  811. 2006-08-19 Aaron Bockover <[email protected]>
  812. * test/driver.c: Added --debug mode that allows for testing all paths
  813. of the driver without actually running real tests; runs only the 'fake'
  814. test, which does nothing; useful for running the driver through valgrind
  815. * test/Makefile.am:
  816. * test/tests.h:
  817. * test/fake.c: Added fake test for valgrinding the driver
  818. * test/ptrarray.c: update sort test
  819. 2006-08-19 Aaron Bockover <[email protected]>
  820. * test/test-both: added --help
  821. 2006-08-19 Aaron Bockover <[email protected]>
  822. * test/driver.c: added -n mode to show only raw global run times,
  823. which is useful for scripts (test-both --speed-compare)
  824. * test/test-both: added --speed-compare mode
  825. * test/README: updated with information on --speed-compare
  826. 2006-08-19 Aaron Bockover <[email protected]>
  827. * test/test.c: do not print times if -t is not passed
  828. * test/driver.c: removed use of GList from the driver to avoid skews due
  829. to performance differences between GLib and EGLib
  830. 2006-08-19 Aaron Bockover <[email protected]>
  831. * test/test.c: Perform iterations at the test level, only output one
  832. report for all iterations of tests in a group to produce more usable
  833. output; add timing for the tests and group; added get_timestamp for
  834. easy code timing
  835. * test/test.h: Removed run_test as it should only be called from
  836. run_group, added get_timestamp
  837. * test/Makefile.am: Added -DDRIVER_NAME
  838. * test/test-both: simple script to run both drivers with the same options
  839. * test/driver.c: Iterations are now run at the test level, show a global
  840. status (OK/FAIL) indicator
  841. * test/README: Updated
  842. * configure.ac: Renamed from configure.in as configure.in naming
  843. convention is deprecated in favor of configure.ac
  844. * autogen.sh: s/configure.in/configure.ac/
  845. 2006-08-19 Miguel de Icaza <[email protected]>
  846. * Makefile.am: Removed MAINTAINERCLEANFILES that was too
  847. aggresive, it failed make distcheck and the resulting tarball was
  848. not buildable.
  849. * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
  850. GSIZE_FORMAT macros, and move them into src/eglib-config.h
  851. Moved also gssize and gsize to be arch specific. This should fix
  852. the 32/64 problems that Jon Chambers reported.
  853. * configure.in: test for pointer size, define the various values
  854. depending on 32 vs 32/64 worlds, might need further porting in the
  855. future.
  856. Change package name to eglib
  857. * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
  858. FAILURE macro.
  859. * test/string-util.c: fix leak for valgrind tests.
  860. * test/tests.h: New size test, for testing datatypes.
  861. * test/sizes.c: New tests.
  862. 2006-08-19 Aaron Bockover <[email protected]>
  863. * test/README: Added quick guide on adding new tests/groups to the
  864. driver and some examples on how to perform various tests with the driver
  865. 2006-08-18 Aaron Bockover <[email protected]>
  866. * test/driver.c: Added getopt support and code timing, among other
  867. nice features to make testing/profiling easier
  868. * test/test.c: Add support for suppressing output (quiet) and
  869. define RESULT, FAILED, and OK
  870. * src/glib.h:
  871. * src/glist.c: Added g_list_nth_data implementation
  872. * test/slist.c:
  873. * test/string-util.c:
  874. * test/ptrarray.c:
  875. * test/string.c:
  876. * test/hashtable.c:
  877. * test/list.c: Use RESULT, FAILURE, and OK for tests
  878. 2006-08-18 Miguel de Icaza <[email protected]>
  879. * src/gstring.c (g_string_truncate): Implement truncate.
  880. (g_string_prepend): implement.
  881. Fix various bugs uncovered by new tests.
  882. * src/glib.h: introduce gssize type, the signed one. Important.
  883. * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
  884. defines that we can use to check on the host OS.
  885. 2006-08-18 Aaron Bockover <[email protected]>
  886. * test/test.[ch]:
  887. * test/driver.c: Support pass/fail logging on tests to show group report
  888. 2006-08-18 Aaron Bockover <[email protected]>
  889. * test/test.c:
  890. * test/test.h: Added result() to be used in place of g_strdup_printf(),
  891. it's shorter to write and allows the duped string to be freed safely;
  892. added license header to file
  893. * test/driver.c: Added license header to file
  894. * test/string-util.c:
  895. * test/ptrarray.c:
  896. * test/string.c:
  897. * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
  898. 2006-08-18 Aaron Bockover <[email protected]>
  899. * src/gptrarray.c: Implemented g_ptr_array_sort
  900. * test/ptrarray.c: Added sort test
  901. * test/driver.c: Added --help; support running N iterations and allow
  902. selecting which test groups to run; uses the test group table in tests.h
  903. * test/tests.h: Added group table
  904. * test/test.h:
  905. * test/test.c: Using a Group structure and table, removed run_groups
  906. as we only need run_group now
  907. * test/slist.h: Removed, not needed, tests/groups defined in tests.h
  908. 2006-08-18 Miguel de Icaza <[email protected]>
  909. * src/unicode.c: New file, to host unicode code, it will throw as
  910. this code is no longer used in the Mono runtime anyways.
  911. * src/glib.h: Use stdint.h types, a lot of the good stuff is
  912. replicated by glib.
  913. 2006-08-18 Duncan Mak <[email protected]>
  914. * src/glist.c (g_list_remove, g_list_remove_link): Implemented.
  915. * src/gslist.c (g_slist_remove): Remember to set the next pointer
  916. to NULL when the item to remove is the first item in the list.
  917. 2006-08-18 Duncan Mak <[email protected]>
  918. * src/glist.c: Implemented. Missing remove,
  919. remove_link and insert_before.
  920. * test/list.c: Tests for GList.
  921. 2006-08-17 Aaron Bockover <[email protected]>
  922. * src/gptrarray.c: Implemented g_ptr_array_remove and
  923. g_ptr_array_remove_index
  924. * test/other: Removed, rewritten in Makefile.am
  925. * test/Makefile.am: Build test-eglib against local eglib and
  926. test-glib against GLib 2.0 (replaces 'other')
  927. * test/ptrarray.c: Added tests for g_ptr_array_remove and
  928. g_ptr_array_remove_index
  929. 2006-08-17 Duncan Mak <[email protected]>
  930. * src/gslist.c: Added MIT license.
  931. (g_slist_insert_sorted): Forgot the case where the data is
  932. appended to the end of the list.
  933. * test/slist.c (test_slist_insert_sorted): Fix the test.
  934. 2006-08-17 Aaron Bockover <[email protected]>
  935. * src/gptrarray.c: Added g_ptr_array_set_size implementation
  936. * test/ptrarray.c: Added test for g_ptr_array_set_size
  937. 2006-08-17 Miguel de Icaza <[email protected]>
  938. * src/glib.h: A handful of extra macros
  939. * configure.in, src/eglib-config.h.in: Set some system-specific
  940. settings that are probed at configure time.
  941. 2006-08-17 Aaron Bockover <[email protected]>
  942. * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
  943. * src/glib.h: Added GPtrArray signatures
  944. * src/Makefile.am: Added gptrarray.c to build
  945. * test/ptrarray.c:
  946. * test/tests.h:
  947. * test/driver.c:
  948. * test/Makefile.am: Add ptrarray tests for available functionality
  949. 2006-08-17 Aaron Bockover <[email protected]>
  950. * test/test.h:
  951. * test/test.c: Added group iterator/test driver functionality
  952. * test/driver.c: Added groups to run using new test functionality
  953. * test/slist.h:
  954. * test/hashtable.h:
  955. * test/string-util.h: Test group definitions for string util/hashtable
  956. * test/slist.c:
  957. * test/str.c:
  958. * test/hash.c: Added test definition table
  959. * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
  960. * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
  961. * src/glib.h: Added missing function signatures
  962. * src/Makefile.am: added -D_FORTIFY_SOURCE=2
  963. 2006-08-17 Duncan Mak <[email protected]>
  964. * src/gslist.c (g_slist_remove_link): I misread the function
  965. signature. Re-implemented.
  966. (g_slist_delete_link): Implemented.
  967. (g_slist_reverse): Implemented.
  968. (g_slist_insert_sorted): Implemented.
  969. 2006-08-17 Duncan Mak <[email protected]>
  970. * src/gslist.c (g_slist_find):
  971. (g_slist_length):
  972. (g_slist_remove):
  973. (g_slist_remove_link): Implemented.
  974. * test/slist.c: Tests for GSList.
  975. 2006-08-17 Raja R Harinath <[email protected]>
  976. * src/gslist.c (g_slist_free_1): New. Free a single list node.
  977. (g_slist_free): Use it to free the list nodes. Don't free the
  978. data, since the list doesn't own it.
  979. (g_slist_append): Convert into a one-liner.
  980. (g_slist_foreach): Remove redundant null check.
  981. (g_slist_last): Actually return the last node.
  982. (g_slist_copy): Simplify.
  983. * src/gslist.h (g_slist_free_1): Add.
  984. 2006-08-16 Duncan Mak <[email protected]>
  985. * src/gslist.c:
  986. * src/gslist.h: First attempt at implementing GSList, incomplete.
  987. * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
  988. * src/glib.h: Add GFunc definition. #include the new gslist.h.
  989. 2006-08-16 Miguel de Icaza <[email protected]>
  990. * src/Makefile.am: Added -Wall,-Werror, corrected lots of
  991. mistakes.
  992. * src/gstring.c: Gstring implementation.
  993. * test/str.c (test_gstring): string tests.
  994. 2006-08-16 Aaron Bockover <[email protected]>
  995. * src/gstr.c: Added g_strsplit implementation
  996. * test/driver.c: Run the split test
  997. * test/str.c: Added a test for g_strsplit
  998. * Makefile.am:
  999. * src/Makefile.am:
  1000. * test/Makefile.am: Added MAINTAINERCLEANFILES
  1001. 2006-08-16 Miguel de Icaza <[email protected]>
  1002. * src/gouput.c: Implement some output routines, update missing
  1003. progress.
  1004. * test: Add test driver, and initial tests.
  1005. 2006-08-15 Miguel de Icaza <[email protected]>
  1006. * src/ghashtable.c: Implement most of this, it is completely
  1007. untested at this point.