2009-03-11 Zoltan Varga <vargaz@gmail.com>
[mono-debugger.git] / eglib / ChangeLog
blobf4e8140792a6a5f3ec120905c7345728e9b60bcd
1 2009-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
3         * src/gstr.c: use memset in g_strnfill.
5 2009-01-19  Bill Holmes  <billholmes54@gmail.com>
7         * src/gstr.c (g_strnfill):  Fixing a warning for MSVC.
9         Contributed under MIT/X11 license.
11 2009-02-05  Miguel de Icaza  <miguel@novell.com>
13         * src/gstr.c: Add g_strnfill
15         * src/glib.h: Add g_list_previous
17 2009-01-19  Bill Holmes  <billholmes54@gmail.com>
19         * gmisc-win32.c (g_path_is_absolute):  Adding support for UNC
20           paths on Windows.
22         Contributed under MIT/X11 license.
24 2009-01-08  Bill Holmes  <billholmes54@gmail.com>
26         * winconfig.h, src/gfile-posix.c :
27           Fixing the MSVC builds.
29         Contributed under MIT/X11 license.
31 2009-01-07  Miguel de Icaza  <miguel@novell.com>
33         * src/gfile-posix.c: Move g_get_current_dir, as it is a
34         POSIX-esque feature, and some other systems do not have current
35         directories. 
37         * src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC): 
39         Embedded support from Paolo's work on quack.
40         
41         * configure.ac: check for strtok_r, langinfo.h and iconv.h
42         
43         * src/gpath.c (strtok_r): Add a strtok_r implementation if it is
44         not available on the target system.
46 2008-11-05  Bill Holmes  <billholmes54@gmail.com>
48         * src/gutf8.c, src/unicode-data.h, src/gunicode.c :
49           Fixing the MSVC builds.
51         Contributed under MIT/X11 license.
53 2008-11-04  Atsushi Enomoto  <atsushi@ximian.com>
55         * src/gutf8.c, src/gunicode.c, src/glib.h:
56           implemented g_unichar_type(), g_unichar_toupper(),
57           g_unichar_tolower(), g_unichar_totitle(), g_utf8_strup()
58           and g_utf8_strdown(). Fixed some surrogate pair bugs.
59         * TODO : removed implemented things.
60         * test/unicode.c, test/tests.h, test/utf8.c, test/Makefile.am:
61           added new tests.
63 2008-11-04  Atsushi Enomoto  <atsushi@ximian.com>
65         * src/unicode-data.h : new header for some new unicode manipulation
66           functions.
68 2008-10-17  Miguel de Icaza  <miguel@novell.com>
70         * Allow types to be defined on the eglib-config.h file, that could
71         be a platform specific generated type file.
73         * gtimer.c: split functionality in platforms.
75 2008-10-13  Bill Holmes  <billholmes54@gmail.com>
77         * src/gdate-win32.c : Fix compiler errors for MSVC.
79         * src/gpath.c : Fix compiler errors for MSVC.
81         * src/gfile-posix.c : Adding declaration for mkstemp for the win 32
82           implementation in gfile-win32.c.
84         Contributed under MIT/X11 license.
86 2008-10-11  Miguel de Icaza  <miguel@novell.com>
88         * gtimer.c: Same process.
90         * src/glib.h: Move g_strdup here, to consolidate all allocations
91         in this header, will help for merging the allocation work later. 
93         * src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
94         for MatchType.
96         * src/gpath.c: Split this one as well.
98         * src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
99         src/gmodule-unix.c: split functionality in platforms.
100         
101         * src/goutput.c (g_logv): On some platforms, before we abort we
102         want to flush the stdout/stderr.
104 2008-10-10  Miguel de Icaza  <miguel@novell.com>
106         * Split functionality that is operating system specific into
107         -win32.c, -unix.c and -posix.c 
109         * Use g_malloc everywhere, and g_free, so that these can be easily
110         overwritten consistently.
112 2008-09-16  Bill Holmes  <billholmes54@gmail.com>
114         * src/gunicode.c : Fix a warning.
116         Contributed under MIT/X11 license.
118 2008-08-28  Bill Holmes  <billholmes54@gmail.com>
120         * src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
122         Contributed under MIT/X11 license.
124 2008-08-27  Bill Holmes  <billholmes54@gmail.com>
126         * glib.h, gunicode.c : Fixing some compiler errors.
128         Contributed under MIT/X11 license.
130 2008-08-20  Mike Voorhees <vernish13@gmail.com>
132         * Patch from Mike Voorhees to fix various problems with
133         g_utf8_validate compared to the glib implementation and unit tests
134         to ensure that there are no regressions.
136         From a mailing list post to mono-devel-list on August 19th, 2008
138         [Mono-dev] utf8 related patches. Please review.
140 2008-08-20  Mike Voorhees  <vernish13@gmail.com>
142         * src/glib.h : Adding declarations for g_utf8_strlen, g_utf8_get_char,
143         and g_utf8_next_char.
145         * src/gunicode.c : Adding implementation for g_utf8_strlen, g_utf8_get_char,
146         and g_utf8_next_char.
148         * src/gunicode.c : Rewrote g_utf8_validate.
150         * test/utf8.c Adding tests for g_utf8_strlen, g_utf8_get_char,
151         g_utf8_next_char, and g_utf8_validate.
153         Contributed under MIT/X11 license.
154         
155 2008-08-05  Andreas Faerber  <andreas.faerber@web.de>
157         * autogen.sh: Suppress arguments warning for NOCONFIGURE.
158         
159         Contributed under MIT/X11 license.
161 2008-08-04  Bill Holmes  <billholmes54@gmail.com>
163         * test/tests.h, test/Makefile.am, test/memory.c : Adding memory tests to test
164           allocation routines return NULL when 0 size is passed in.
166         Contributed under MIT/X11 license.
168 2008-08-04  Bill Holmes  <billholmes54@gmail.com>
170         * src/glib.h : Changing the allocation routines to return null if 0 size is
171           passed in.
173         Contributed under MIT/X11 license.
175 2008-06-16  Zoltan Varga  <vargaz@gmail.com>
177         * src/vasprintf.c (vasprintf): Applied patch from Michail Ushakov 
178         <migelU@gmail.com>. Workaround broken vsnprintf on windows. Fixes
179         #400445.
181 2008-06-11  Zoltan Varga  <vargaz@gmail.com>
183         * src/goutput.c (g_log): Remove unnecessary and incorrect call to 
184         g_strdup_printf (). Fixes #398918.
186 2008-05-01  Bill Holmes  <billholmes54@gmail.com>
188         * src/glib.h : Adding declarations for g_ucs4_to_utf16 and g_utf16_to_ucs4.
190         * src/gutf8.c : Adding implementation for g_ucs4_to_utf16 and g_utf16_to_ucs4.
192         * test/utf8.c Adding tests for g_ucs4_to_utf16 and g_utf16_to_ucs4.
194         Contributed under MIT/X11 license.
196 2008-04-20  Geoff Norton  <gnorton@novell.com>
198         * src/gspan.c: Fix the _NSGetEnviron define to prevent an impropoer
199         pointer dereference.
201 2008-03-19  Bill Holmes  <billholmes54@gmail.com>
203         * src/gpath.c (g_path_is_absolute) : Adding a case for '/'
204           on Windows.
205         
206         * src/gpath.c (g_get_user_name) : On Windows add a check for %USERNAME%
207           when %USER% fails.
209         * src/gstr.c (g_strsplit, g_strsplit_set):  Change to remove truncation
210           errors with MSVC build.
212         * src/gstr.c (g_filename_to_uri, g_filename_from_uri):  Fixes to handle
213           Windows paths.
215         * src/gstr.c (g_ascii_strncasecmp):  Convert each character to lower case
216           before comparing.
218         * src/gunicode.c (g_get_charset):  Implement for Windows.
220         Contributed under MIT/X11 license.
222 2008-03-12  Geoff Norton  <gnorton@novell.com>
224         * src/gutf8.c: Implement g_ucs4_to_utf16 and g_utf16_to_ucs4 as
225         asserts.  They're needed to build mono with eglib.
226         * src/gutil.h: Add a few missing function declarations to the header.
227         * src/gspawn.c: Some darwin implementations don't have crt_externs.h
228         So we'll just define _NSGetEnviron() ourselves.
229         * Makefile.am: Dont build test when cross compiling.
230         * configure.ac: Define CROSS_COMPILING when cross compiling.
231         Undefine _FORTIFY_SOURCE on arm-apple-darwin as the headers it 
232         requires are not available.
234 2008-01-15  Andreas Faerber  <andreas.faerber@web.de>
236         * configure.ac: Add default G_BREAKPOINT implementation.
237         Fix typo in breakpoint CPU output.
239 2007-12-23  Zoltan Varga  <vargaz@gmail.com>
241         * src/glib.h: Include <limits.h>. Fixes #350482.
243 2007-11-21  Dick Porter  <dick@ximian.com>
245         * src/gslist.c (g_slist_find_custom): Implement
247         * src/glist.c (g_list_find_custom): Implement
249         * test/list.c: Test g_list_find_custom()
251         * test/slist.c: Test g_slist_find_custom()
253 2007-11-20  Dick Porter  <dick@ximian.com>
255         * src/gstr.c: Implement g_strsplit_set() and re-implement
256         g_strsplit() so it passes the additional tests. (g_strsplit()
257         should treat multi-char delimiters as just a single token, rather
258         than a set of delimiters.)
260         * src/gslist.c: Implement g_slist_index(), g_slist_nth() and
261         g_slist_nth_data().
263         * test/string-util.c: Test g_strsplit_set() and more tests for
264         g_strsplit().
266         * test/slist.c: Test g_slist_nth() and
267         g_slist_index().
269 2007-11-06  Geoff Norton  <gnorton@novell.com>
271         * configure.ac: Check for libiconv_open as the previous check was failing against 
272         some versions of libiconv.
274 2007-11-06  Andreas Faerber  <andreas.faerber@web.de>
276         * test/Makefile.am: Fix noinst_PROGRAMS for automake 1.6.3
277                             Add support for VPATH
279 2007-11-06  Geoff Norton  <gnorton@novell.com>
281         * configure.ac: Determing if glib-2.0 is installed and set HAVE_GLIB appropriately
282         * test/Makefile.am: Only build test-glib if glib-2.0 is available
284 2007-11-05  Geoff Norton  <gnorton@novell.com>
286         * configure.ac: Check for getpwent_r and wether libiconv is needed to be linked.
287         Also look to see if we can use export-dynamic in the test suite.
288         * test/Makefile.am: Get LDFLAGS from configure instead of setting them.
289         * src/gerror.c: Implement g_clear_error.
290         * src/glib.h: Only use the format, ... convention is HAVE_C99_SUPPORT is available.
291         * src/gpath.c: Only use the getpwent_r codepath if getpwent_r is available.
292         * src/gspawn.c: Define environ to call _NSGetEnviron() on Apple.
293         * src/Makefile.am: Remove -Werror so we dont fail on different function declarations.
294                 Portions of all of the above are from Andreas Faerber & Jonathan Chambers
295         
296 2007-10-31  Jonathan Chambers <joncham@gmail.com>
297         
298         * src/ghashtable.c: Add g_hash_table_foreach_steal.
299         * src/garray.c: Add g_array_remove_index_fast.
300         * src/gpath.c (g_path_is_absolute): Handle windows paths.
301         * src/glib.h: Add g_hash_table_foreach_steal and g_array_remove_index_fast
302         
303         Contribution is licensed as MIT/X11.
305 2007-06-13  Jonathan Chambers <joncham@gmail.com>
306         
307         * src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
308         * src/gmisc.c: Add g_win32_getlocale stub.
309         * src/glib.h: Add declarations of above functions,
310         GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
311         macros.
312         
313         * test/string-util.c: Fix warning.
314         * test/utf8.c: Add test for g_unichar_xdigit_value.
315         
316         Contribution is licensed as MIT/X11.
318 2007-05-05  Aaron Bockover  <abockover@novell.com>
320         * src/gstr.c:
321         * src/glib.h: Added g_ascii_tolower implementation; make g_ascii_strdown
322         use it to do the transformation
324         * test/string-util.c: Added a test for g_ascii_strdown
326 2007-04-27  Jonathan Chambers <joncham@gmail.com>
327         
328         * src/gstr.c: Fix off by one error in g_strdup allocation.
330 2007-04-27  Jonathan Chambers <joncham@gmail.com>
331         
332         * src/eglib-config.hw: Forgot to add for msvc build.
333         * src/vasprintf: Forgot to add for msvc build.
335 2007-04-27  Jonathan Chambers <joncham@gmail.com>
336         
337         * src/gstr.c: Fix off by one error for NULL terminator.
339 2007-04-27  Jonathan Chambers <joncham@gmail.com>
340         
341         Combined patch from Michael Jerris <mike@jerris.com> and me.
342         * winconfig.h: Config file for msvc builds.
343         * configure.ac: Add AC_CHECK_HEADERS for getopt.h,  sys/time.h,
344         sys/wait.h, and pwd.h.
345         
346         * src/gspawn.c: Include config.h and use HAVE_* macros.
347         * src/eglib-config.h.in: Add inclusion guards.
348         * src/ghashtable.c: Fix warnings.
349         * src/gmisc.c: Windows implementation of g_getenv, g_setenv,
350         and g_unsetenv.
351         * src/gpath.c: Include config.h and use HAVE_* macros.
352         * src/gmarkup.c: Fix warnings.
353         * src/gptrarray.c: Fix warnings.
354         * src/gstr.c: Fix warnings and use HAVE_* macros.
355         * src/glib.h: Move macros to eglib-config.h and include it.
356         * src/gdate.c: Implement g_get_current_time on windows.
357         * src/gpattern.c: Fix warnings.
358         * src/gdir.c: Implement g_dir on windows.
359         * src/gfile.c: Implement mkstemp and g_file_test on windows.
360         * src/gtimer.c: Implement g_timer on windows.
361         * src/gmodule.c: Fix warnings.
362         * src/gunicode.c: Fix warnings.
363         * src/gutf8.c: Fix warnings.
364         
365         * test/ptrarray.c: Fix warnings.
366         * test/string.c: Fix warnings.
367         * test/list.c: Fix warnings.
368         * test/pattern.c: Use HAVE_* macros.
369         * test/dir.c: Use HAVE_* macros.
370         * test/file.c: Use HAVE_* macros and use system specific files for tests.
371         * test/test.c: Fix warnings and use HAVE_* macros.
372         * test/timer.c: Use HAVE_* macros.
373         * test/string-util.c: Fix warnings.
374         * test/test.h: Supress warnings on msvc.
375         * test/module.c: Use HAVE_* macros.
376         * test/utf8.c: Fix warnings.
377         * test/spawn.c: Use HAVE_* macros.
378         * test/driver.c: Fix warnings and use HAVE_* macros.
379         * test/path.c: Use HAVE_* macros and use system specific files for tests.
380         * test/sizes.c: Fix warnings.
382 2007-04-24  Jonathan Chambers <joncham@gmail.com>
383         
384         Patch from Michael Jerris <mike@jerris.com>
385         * src/gspawn.c: Start msvc build.
386         * src/gpath.c: Start msvc build.
387         * src/gmarkup.c: Start msvc build.
388         * src/gshell.c: Start msvc build.
389         * src/gstr.c: Start msvc build.
390         * src/glist.c: Start msvc build.
391         * src/glib.h: Start msvc build.
392         * src/gdate.c: Start msvc build.
393         * src/gpattern.c: Start msvc build.
394         * src/gdir.c: Start msvc build.
395         * src/gfile.c: Start msvc build.
396         * src/gtimer.c: Start msvc build.
397         * src/gmodule.c: Start msvc build.
398         * src/gunicode.c: Start msvc build.
400 2007-01-27  Robert Jordan  <robertj@gmx.net>
402         * test/Makefile.am: Add linker option to be able to
403         load symbols from the main program.
404         * test/module.c: Clean-ups.
406 2007-01-26  Robert Jordan  <robertj@gmx.net>
408         * configure.ac: Add PLATFORM_WIN32 conditional.
409         * src/Makefile.ac: Use PLATFORM_WIN32 conditional for psapi, iconv
410         * test/module.c, test/tests.h, test/Makefile.am: New test for gmodule.
411         * src/gmodule.h: Add G_MODULE_{IMPORT|EXPORT} defines.
412         * src/gmodule.c (g_module_symbol): Implement in-proc symbol lookup
413         for Win32.
414         * src/gmodule.c: Add GModule.main_module, consider it in
415         g_module_close ().
416         * src/gpath.c (g_get_home_dir): Add dummy Win32 implementation to
417         fix the build.
419 2006-11-03  Miguel de Icaza  <miguel@novell.com>
421         * src/gpath.c (g_path_get_dirname): If the pathname starts with a
422         "/", return the "/".
424         * 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. 
430 2006-10-30  Miguel de Icaza  <miguel@novell.com>
432         * test/utf8.c (test_utf8_seq): Add new failing test.
434 2006-10-30  Atsushi Enomoto  <atsushi@ximian.com>
436         * src/gutf8.c : several fixes:
437           - fixed incorrect mb_size clear and mb_remain computation.
438           - initialize items_written to 0 for error case.
439           - in utf8_to_utf16_len differentiate error messages completely.
440           - in g_utf8_to_utf16 use guchar instead of gchar.
441         * test/utf8.c : added test case string in test_utf8_seq() to
442           both test_utf8_to_utf16() and test_utf16_to_utf8().
444 2006-10-21  Miguel de Icaza  <miguel@novell.com>
446         * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here. 
448         * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
449         null values here.   This gets things a little bit further in
450         corlib, but not too far.
452         * src/gdir.c (g_dir_read_name): Do not return . or ..
454         * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
455         thanks to Paolo for pointing the problem with the double macro
456         expansion. 
458         * src/gmodule.c (g_module_open): Actually return NULL if we fail
459         to load the module (was hiding the real bug in the pinvoke tests).
461         (g_module_build_path): Do not prepend "lib" if the "lib" is part
462         of the call.
464         * src/gstr.c (g_strsplit): this routine has some non-expected
465         behavior, if the string begins with the delimiter, it will return
466         an empty first string, unlike strtok
468         * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
469         paths that do not contain a directory.
471 2006-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
473         * test/array.c: new test for insertion in the middle of other values.
474         * src/garray.c: fixed destination index.
476 2006-10-18  Miguel de Icaza  <miguel@novell.com>
478         * src/gpath.c (g_build_path): Do not append terminator if the next
479         string is empty.
481         * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
482         documented.
483         (g_utf16_to_utf8): Include trailing zero as documented.
485 2006-10-17  Miguel de Icaza  <miguel@novell.com>
487         * src/gstr.c (g_strdown): Actually move.
489         * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
490         sequence, reset the state after a closing element.
492         * src/garray.c (g_array_insert_vals): Shift the elements the
493         correct amount.
495         (g_array_insert_vals): Should actually use the
496         number of elements to insert.
498         * test/array.c: Add new test case, this was happening in the JIT. 
500         * Add _GNU_SOURCE at configure time, remove from sources.
501         
502         * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
504         * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
505         for the support stuff.
506         
507         Move private prototypes elsewhere
509         * src/glib.h (g_thread_init): Adding missing brace
510         (g_list_next): remove ; from the macro definition.
512 2006-10-17  Miguel de Icaza  <miguel@novell.com>
514         * src/gutf8.c: internal methods
516         * src/ghashtable.c: internal methods.
518 2006-10-16  Miguel de Icaza  <miguel@novell.com>
520         * src/gerror.c (g_propagate_error): Implement.
522         * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
524         * test/string-util.c (test_ascii_strncasecmp): test
526 2006-10-15  Miguel de Icaza  <miguel@novell.com>
528         * configure.in: Fix detection of platforms the [3456] stuff does
529         not work inside autoconf.
531         * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
533         * src/glib.h (offsetof): Mono sources depend on this, bring this
534         from the standard definition.  Redefine G_STRUCT_OFFSET in terms
535         of this. 
536         
537         * src/glib.h (G_STRUCT_OFFSET): fix macro definition. 
538         fix typo.
540         * src/sizes.c: Add test.
542         * src/gshell.c: Make it build
543         
544 2006-10-14  Miguel de Icaza  <miguel@novell.com>
546         * src/glib.h: add various _TO_LE and _FROM_LE macros.
548         * test/endian.c: tests for endian conversion macros.
550 2006-10-09  Miguel de Icaza  <miguel@novell.com>
552         * src/gmodule.h: Move definitions of gmodule to gmodule.h because
553         Mono expects it there.
555 Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <lupus@ximian.com>
557         * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
558         and put the array in readonly memory.
559         * src/gstr.c: fixed the build and made array const.
560         * src/gmodule.c: fixed thinko.
562 2006-10-08  Miguel de Icaza  <miguel@novell.com>
564         * src/gstr.c (g_strdup): should allow NULL as an argument.
566 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
568         * test/string-util.c:
569         * TODO:
570         * src/gstr.c:
571         * src/glib.h: implemented g_strescape.
573 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
575         * test/string-util.c:
576         * configure.ac:
577         * TODO:
578         * src/gstr.c:
579         * src/glib.h: implemented g_strlcpy.
581 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
583         * test/string-util.c:
584         * TODO:
585         * src/gstr.c:
586         * src/glib.h: implemented g_strdelimit.
588 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
590         * test/spawn.c: add search path flag when running ls.
591         * src/gspawn.c: g_spawn_command_line_sync searches the program in the
592         PATH if it's not an absolute path.
594 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
596         * test/string-util.c:
597         * src/glib.h: implement g_ascii_xdigit_value and tests.
599 2006-10-06  Miguel de Icaza  <miguel@novell.com>
601         * src/gstr.c (g_ascii_strdown): Implement.
603         * str/glib.c (g_log_set_handler): empty.
604         (g_printerr): empty.
605         (GMemVTable): define, empty, ignored.
606         (G_USEC_PER_SEC) :-)
608         * src/gunicode.c (g_convert): Add bytes_read, bytes_written
609         support;   Small fixes to avoid valgrind errors. 
610         
611         (g_utf8_validate): Add, based on the libxml code.
613         gstr.c: implement g_strdown. 
615 2006-10-05  Miguel de Icaza  <miguel@novell.com>
617         * src/gunicode.c: Some work in progress to implement g_convert
618         (which is needed by g_locale_to_utf8).    
620 2006-09-18  Miguel de Icaza  <miguel@novell.com>
622         * test/string-util.c (test_filename_from_uri): tests for new
623         methods.
625         * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement. 
627 2006-09-14  Atsushi Enomoto  <atsushi@ximian.com>
629         * src/gutf8.c, test/utf8.c : EOL fix.
631 2006-09-04  Miguel de Icaza  <miguel@novell.com>
633         * src/gmarkup.c: The leak fixing commit.
634         
635         * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
636         method. 
637         (g_markup_parse_context_free): Implement. 
638         (parse_attributes): Store the value, not the attribute name
639         twice. 
640         Properly check the /> section.
641         (g_markup_parse_context_parse): When checking for error, use the
642         "error!=NULL && *error != NULL" upon return from callbacks,
643         it is only then that its valid to check for *error for error
644         conditions. 
645         (g_markup_parse_context_parse): Add comment processing.
647         Only release one element of the list.
649         * test/markup.c: Incorporate the kind of code that is used in Mono
650         for domain loading;  Will test the rest later. 
652 2006-09-01  Miguel de Icaza  <miguel@novell.com>
654         * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
655         support, and end-element support; not tested yet.
657 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
659         * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
661 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
663         * gutf8.c : when error is null, utf8_to_utf16_len() and
664           utf16_to_utf8_len() could return -1, so return NULL for those
665           cases in g_utf8_to_utf16() and g_utf16_to_utf8().
667 2006-09-01  Miguel de Icaza  <miguel@novell.com>
669         * src/gmarkup.c: Builds and does minimal parsing.
671         * test/markup.c: Sample test cases I have been using
673 2006-08-31 Atsushi Enomoto <atsushi@ximian.com>
675         * src/gerror.h,
676           src/gerror.c : added g_set_error().
677         * src/gutf8.c :
678           g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
679         * src/glib.h : added all above, and some dependent bits.
680         * src/Makefile.am : added gutf8.c.
681         * TODO: removed above.
682         * test/Makefile.am,
683           test/tests.h : added utf8 tests.
684         * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
685           It still needs more tests e.g. for multibytes.
687 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
689         * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
691 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
693         * test/file.c: remove useless test.
695         * test/spawn.c: new g_spawn_async_with_pipes test.
696         * src/glib.h: Modified file.
697         * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
699 2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
701         * TODO: Modified file.
702         * test/tests.h:
703         * test/pattern.c:
704         * test/dir.c:
705         * test/Makefile.am:
706         * src/Makefile.am:
707         * src/glib.h:
708         * src/gdir.c:
709         * src/gfile.c: implemented g_dir_*, unix version.
711 2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
713         * src/glib.h:
714         * test/Makefile.am: Modified file.
715         * test/tests.h:
716         * src/Makefile.am: Modified file.
717         * test/pattern.c:
718         * src/gpattern.c: implemented the 3 pattern matching functions used.
720         * test/ptrarray.c: fix the compare function to work with qsort.
722         * test/file.c:
723         * test/path.c:
724         * src/gspawn.c:
725         * src/gpath.c: made valgrind happy.
727 2006-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
729         * test/file.c:
730         * src/glib.h:
731         * src/gfile.c:  implemented g_file_test. Changed the default mask to
732         .XXXXXX. Add tests.
734 2006-08-26  Raja R Harinath  <rharinath@novell.com>
736         * src/sort.frag.h (digit): Declare here based on externally
737         provided typedef 'list_node'.
738         (MAX_DIGITS): Use 'sizeof (list_node)'.
739         * src/gslist.c (list_node): Declare instead of 'digit'.
740         * src/glist.c: Likewise.
742         * test/slist.c (verify_sort): Verify the length of the list too.
743         (test_slist_sort): Free the correct list.
744         * test/list.c: Likewise.
745         * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
746         (combine_sort): Change 'max_pos' argument to more natural
747         'n_digits'.
748         (increment): Likewise.  Use 'n_digits' to avoid reading at an
749         offset that hasn't been initialized.
750         (do_sort): Remove memset.
752 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
754         * TODO:
755         * test/file.c:
756         * src/glib.h:
757         * src/gfile.c: implement g_file_open_tmp.
759 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
761         * TODO:
762         * src/glib.h:
763         * src/gdate.c: New file.
764         * src/gfile.c: New file.
765         * src/Makefile.am: implemented g_file_get_contents and
766         g_get_current_time.
768         * test/tests.h:
769         * test/file.c: New file.
770         * test/Makefile.am: tests for the above.
772 2006-08-26  Raja R Harinath  <rharinath@novell.com>
774         * src/sort.frag.h: Add copyright notice and some explanation.
775         (increment): Remove null check.
776         (combine_digits): Add 'list' argument to seed the summation.
777         (do_sort): Use the empty or singleton tail as the seed, rather
778         than calling 'increment'.
780 2006-08-25  Raja R Harinath  <rharinath@novell.com>
782         * TODO: Remove 'List' entries.
783         * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
784         * src/sort.frag.h: New.  Implements a "generic" bottom-up "counting"
785         mergesort that works both on singly- and doubly-linked lists.
786         * src/gslist.c (g_slist_sort): Use it.
787         * src/glist.c (g_list_sort): Likewise.
788         * src/glib.h (g_slist_sort, g_list_sort): Declare.
789         * test/slist.c, test/list.c: Add basic testcases.
791 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
793         * src/gspawn.c: propagate errors from reads.
794         * src/gpath.c: an empty PATH is like a NULL one.
796 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
798         * test/tests.h:
799         * test/timer.c:
800         * test/Makefile.am:
801         * TODO:
802         * src/glib.h:
803         * src/gtimer.c:
804         * src/Makefile.am: implemented GTimer.
806 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
808         * test/tests.h:
809         * test/Makefile.am:
810         * test/spawn.c:
811         * src/gspawn.c:
812         * src/glib.h:
813         * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
814         Still need better error handling, but works for the most part.
816 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
818         * src/garray.c: grow faster so that the 'big' test does not crawl.
820 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
822         * test/shell.c:
823         * src/gqueue.c: plugged leaks.
825 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
827         * test/path.c:
828         * src/gpath.c: when PATH is not defined, the current dir is used.
829         See execvp(3).
831 2006-08-25  Alp Toker  <alp@atoker.com>
833         * src/gstr.c: g_strv_length() should return guint, not gint
834         * src/glib.h: Add g_strv_length() prototype
835         
836 2006-08-24  Miguel de Icaza  <miguel@novell.com>
838         * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
839         g_get_prgname, g_set_prgname): implemented.
841         * test/ Fix leaks.
842         
843         * src/gpath.c (g_get_current_dir): Implement.
845         (g_find_program_in_path, g_path_is_absolute): implement.
846         
847         Add g_path_get_dirname, g_path_get_basename
849         * src/gpath.c: Path routines
851 2006-08-23  Miguel de Icaza  <miguel@novell.com>
853         * src/gerror.c: Implement. 
855         * src/glist.c (g_list_sort): Remove routine instead of hoping that
856         it wont crash when we run it.
858 2006-08-23  Raja R Harinath  <rharinath@novell.com>
860         * src/glist.c (g_list_insert_before): Avoid non-head declaration.
862         * test/slist.c (test_slist_insert_before): Add.
863         * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
865         * test/list.c (test_list_insert_before): Add test for return value
866         of g_list_insert_before.
867         * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
868         to rebuild test if eglib changes.
869         * src/glist.c (new_node, disconnect_node): New helpers that
870         maintain doubly-linked list invariants.
871         (g_list_prepend, g_list_append): Express in terms of new_node.
872         (g_list_insert_before): Likewise.  Fix return value when inserting
873         in the middle of the list.
874         (g_list_concat): Reorganize to make more compact.
875         (g_list_nth): Likewise.
876         (g_list_nth_data): Don't segfault if 'n' is too large.
877         (g_list_remove): Rewrite using _find and disconnect_node.
878         (g_list_remove_link): Don't traverse list: use disconnect_node.
879         (g_list_insert_sorted): Rewrite to make more compact.  Use new_node.
880         (g_list_copy): Likewise.
881         (_prepend, _concat): Remove.
882         * src/gslist.c (insert_after, find_prev, find_prev_link):
883         New helpers.
884         (g_slist_copy): Simplify slightly, using insert_after.
885         (g_slist_concat): Reorganize to make more compact.
886         (g_slist_find): Likewise.
887         (g_slist_insert_sorted): Likewise.
888         (g_slist_remove): Rewrite using find_prev.
889         (g_slist_remove_link): Rewrite using find_prev_link.
890         (g_slist_remove_all, g_slist_insert_before): New.
892 2006-08-21  Duncan Mak  <duncan@a-chinaman.com>
894         * src/gqueue.c: GQueue implementation.
895         * src/glib.h: Add prototypes.
896         * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
898         * test/queue.c:         
899         * test/Makefile.am (SOURCES):
900         * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
902 2006-08-21  Aaron Bockover  <abockover@novell.com>
904         * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
905         realloc/delimiter token not found); use memcpy instead of strncpy for
906         better performance
908         * test/test.c (run_group): allow running specific tests under a group;
909         added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
910         and eg_strfreev to avoid performance skews in the driver
911         
912         * test/driver.c: allow user-specified group name to contain specific
913         test to run under the group as 'group_name:test1,test2,...testN'
915         * test/string-util.c: Added more g_strsplit tests
917         * test/slist.c:
918         * test/ptrarray.c:
919         * test/fake.c:
920         * test/string.c:
921         * test/list.c:
922         * test/array.c:
923         * test/hashtable.c: make test names shorter (no need to prefix with
924         the group since it runs under the group)
926 2006-08-21  Miguel de Icaza  <miguel@novell.com>
928         * src/glib.h (g_hash_table_new_full): Add missing prototype.
929         Replace g_free(x) with plain free, so it can be used as a function
930         argument. 
931         Add ABS
933         * src/ghashtable.c: Add rehashing. 
935         * test/hashtable.c: Add a bunch of extra tests.
937         * src/goutput.c: Fix g_log so it actually formats the data. 
939         * src/ghashtable.c (g_hash_table_new): The glib test suite
940         uncovered a bunch of bugs, the g_hash_table_new should actually
941         have parameters.
943         (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
944         uncovered. 
946 2006-08-20  Aaron Bockover  <abockover@novell.com>
948         * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
950         * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
952         * src/glib.h: added macros for above va_args printf functions
954         * src/Makefile.am: added gmisc.c
956         * test/whats-implemented: script to see what needs to be implemented
958 2006-08-20  Chris Toshok  <toshok@ximian.com>
960         * test/array.c (test_array_big): add a test from the glib
961         documentation.
963 2006-08-20  Chris Toshok  <toshok@ximian.com>
965         * test/tests.h: add array tests to the mix.
967         * test/array.c: a few array tests.
969         * src/glib.h: add array prototypes.
971         * src/garray.c: initial array foo.
973         * test/Makefile.am (SOURCES): add array.c
975         * src/Makefile.am (libeglib_la_SOURCES): add garray.c
977 2006-08-19  Aaron Bockover  <abockover@novell.com>
979         * src/gstring.c: optimize and generalize reallocation by providing
980         a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are 
981         very, very slow; GString is now much closer to GLib's implementation
982         in terms of performance
984         * test/string.c: added speed-specific tests to beat on reallocation code
986         * test/test-both: run make if the test drivers don't exist
988 2006-08-19  Jonathan Chambers  <jonathan.chambers@gmail.com>
990         * src/gmodule.c: Add gmodule support for windows and fix
991         windows build. Contribution is licensed as MIT/X11.
992         
993 2006-08-19  Aaron Bockover  <abockover@novell.com>
995         * test/driver.c: Added --debug mode that allows for testing all paths
996         of the driver without actually running real tests; runs only the 'fake'
997         test, which does nothing; useful for running the driver through valgrind
999         * test/Makefile.am:
1000         * test/tests.h:
1001         * test/fake.c: Added fake test for valgrinding the driver
1003         * test/ptrarray.c: update sort test
1005 2006-08-19  Aaron Bockover  <abockover@novell.com>
1007         * test/test-both: added --help
1009 2006-08-19  Aaron Bockover  <abockover@novell.com>
1011         * test/driver.c: added -n mode to show only raw global run times,
1012         which is useful for scripts (test-both --speed-compare)
1014         * test/test-both: added --speed-compare mode
1016         * test/README: updated with information on --speed-compare
1018 2006-08-19  Aaron Bockover  <abockover@novell.com>
1020         * test/test.c: do not print times if -t is not passed
1022         * test/driver.c: removed use of GList from the driver to avoid skews due
1023         to performance differences between GLib and EGLib
1024         
1025 2006-08-19  Aaron Bockover  <abockover@novell.com>
1027         * test/test.c: Perform iterations at the test level, only output one
1028         report for all iterations of tests in a group to produce more usable
1029         output; add timing for the tests and group; added get_timestamp for
1030         easy code timing
1032         * test/test.h: Removed run_test as it should only be called from 
1033         run_group, added get_timestamp
1035         * test/Makefile.am: Added -DDRIVER_NAME 
1037         * test/test-both: simple script to run both drivers with the same options
1039         * test/driver.c: Iterations are now run at the test level, show a global
1040         status (OK/FAIL) indicator
1042         * test/README: Updated
1044         * configure.ac: Renamed from configure.in as configure.in naming 
1045         convention is deprecated in favor of configure.ac
1047         * autogen.sh: s/configure.in/configure.ac/
1049 2006-08-19  Miguel de Icaza  <miguel@novell.com>
1051         * Makefile.am: Removed MAINTAINERCLEANFILES that was too
1052         aggresive, it failed make distcheck and the resulting tarball was
1053         not buildable.
1055         * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
1056         GSIZE_FORMAT macros, and move them into src/eglib-config.h
1058         Moved also gssize and gsize to be arch specific.   This should fix
1059         the 32/64 problems that Jon Chambers reported. 
1061         * configure.in: test for pointer size, define the various values
1062         depending on 32 vs 32/64 worlds, might need further porting in the
1063         future. 
1065         Change package name to eglib
1067         * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
1068         FAILURE macro.
1070         * test/string-util.c: fix leak for valgrind tests.
1072         * test/tests.h: New size test, for testing datatypes.
1074         * test/sizes.c: New tests.
1075         
1076 2006-08-19  Aaron Bockover  <abockover@novell.com>
1078         * test/README: Added quick guide on adding new tests/groups to the 
1079         driver and some examples on how to perform various tests with the driver
1081 2006-08-18  Aaron Bockover  <abockover@novell.com>
1083         * test/driver.c: Added getopt support and code timing, among other 
1084         nice features to make testing/profiling easier
1086         * test/test.c: Add support for suppressing output (quiet) and
1087         define RESULT, FAILED, and OK
1089         * src/glib.h:
1090         * src/glist.c: Added g_list_nth_data implementation
1092         * test/slist.c:
1093         * test/string-util.c:
1094         * test/ptrarray.c:
1095         * test/string.c:
1096         * test/hashtable.c:
1097         * test/list.c: Use RESULT, FAILURE, and OK for tests
1099 2006-08-18  Miguel de Icaza  <miguel@novell.com>
1101         * src/gstring.c (g_string_truncate): Implement truncate. 
1102         (g_string_prepend): implement. 
1104         Fix various bugs uncovered by new tests. 
1106         * src/glib.h: introduce gssize type, the signed one.  Important. 
1108         * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
1109         defines that we can use to check on the host OS.
1111 2006-08-18  Aaron Bockover  <abockover@novell.com>
1113         * test/test.[ch]:
1114         * test/driver.c: Support pass/fail logging on tests to show group report
1116 2006-08-18  Aaron Bockover  <abockover@novell.com>
1118         * test/test.c: 
1119         * test/test.h: Added result() to be used in place of g_strdup_printf(),
1120         it's shorter to write and allows the duped string to be freed safely;
1121         added license header to file
1123         * test/driver.c: Added license header to file
1125         * test/string-util.c:
1126         * test/ptrarray.c:
1127         * test/string.c:
1128         * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
1130 2006-08-18  Aaron Bockover  <abockover@novell.com>
1132         * src/gptrarray.c: Implemented g_ptr_array_sort
1134         * test/ptrarray.c: Added sort test
1135         
1136         * test/driver.c: Added --help; support running N iterations and allow
1137         selecting which test groups to run; uses the test group table in tests.h
1138         
1139         * test/tests.h: Added group table
1140         
1141         * test/test.h:
1142         * test/test.c: Using a Group structure and table, removed run_groups
1143         as we only need run_group now
1145         * test/slist.h: Removed, not needed, tests/groups defined in tests.h
1147 2006-08-18  Miguel de Icaza  <miguel@novell.com>
1149         * src/unicode.c: New file, to host unicode code, it will throw as
1150         this code is no longer used in the Mono runtime anyways.
1151         
1152         * src/glib.h: Use stdint.h types, a lot of the good stuff is
1153         replicated by glib.
1155 2006-08-18  Duncan Mak  <duncan@a-chinaman.com>
1157         * src/glist.c (g_list_remove, g_list_remove_link): Implemented. 
1159         * src/gslist.c (g_slist_remove): Remember to set the next pointer
1160         to NULL when the item to remove is the first item in the list.
1161         
1162 2006-08-18  Duncan Mak  <duncan@a-chinaman.com>
1164         * src/glist.c: Implemented. Missing remove,
1165         remove_link and insert_before.
1167         * test/list.c: Tests for GList.
1169 2006-08-17  Aaron Bockover  <abockover@novell.com>
1171         * src/gptrarray.c: Implemented g_ptr_array_remove and 
1172         g_ptr_array_remove_index
1174         * test/other: Removed, rewritten in Makefile.am
1176         * test/Makefile.am: Build test-eglib against local eglib and 
1177         test-glib against GLib 2.0 (replaces 'other')
1179         * test/ptrarray.c: Added tests for g_ptr_array_remove and
1180         g_ptr_array_remove_index
1182 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
1184         * src/gslist.c: Added MIT license.
1185         (g_slist_insert_sorted): Forgot the case where the data is
1186         appended to the end of the list.
1188         * test/slist.c (test_slist_insert_sorted): Fix the test.        
1190 2006-08-17  Aaron Bockover  <abockover@novell.com>
1192         * src/gptrarray.c: Added g_ptr_array_set_size implementation
1194         * test/ptrarray.c: Added test for g_ptr_array_set_size
1196 2006-08-17  Miguel de Icaza  <miguel@novell.com>
1198         * src/glib.h: A handful of extra macros
1200         * configure.in, src/eglib-config.h.in: Set some system-specific
1201         settings that are probed at configure time.
1203 2006-08-17  Aaron Bockover  <abockover@novell.com>
1205         * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
1207         * src/glib.h: Added GPtrArray signatures
1209         * src/Makefile.am: Added gptrarray.c to build
1211         * test/ptrarray.c:
1212         * test/tests.h:
1213         * test/driver.c:
1214         * test/Makefile.am: Add ptrarray tests for available functionality
1216 2006-08-17  Aaron Bockover  <abockover@novell.com>
1217         
1218         * test/test.h: 
1219         * test/test.c: Added group iterator/test driver functionality
1220         
1221         * test/driver.c: Added groups to run using new test functionality
1222         
1223         * test/slist.h:
1224         * test/hashtable.h:
1225         * test/string-util.h: Test group definitions for string util/hashtable
1227         * test/slist.c:
1228         * test/str.c: 
1229         * test/hash.c: Added test definition table 
1231         * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
1233         * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
1235         * src/glib.h: Added missing function signatures
1237         * src/Makefile.am: added -D_FORTIFY_SOURCE=2 
1239 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
1241         * src/gslist.c (g_slist_remove_link): I misread the function
1242         signature. Re-implemented.
1243         (g_slist_delete_link): Implemented.
1244         (g_slist_reverse): Implemented.
1245         (g_slist_insert_sorted): Implemented.
1247 2006-08-17  Duncan Mak  <duncan@a-chinaman.com>
1249         * src/gslist.c (g_slist_find): 
1250         (g_slist_length):
1251         (g_slist_remove):
1252         (g_slist_remove_link): Implemented.
1254         * test/slist.c: Tests for GSList.
1256 2006-08-17  Raja R Harinath  <harinath@gmail.com>
1258         * src/gslist.c (g_slist_free_1): New.  Free a single list node.
1259         (g_slist_free): Use it to free the list nodes.  Don't free the
1260         data, since the list doesn't own it.
1261         (g_slist_append): Convert into a one-liner.
1262         (g_slist_foreach): Remove redundant null check.
1263         (g_slist_last): Actually return the last node.
1264         (g_slist_copy): Simplify.
1265         * src/gslist.h (g_slist_free_1): Add.
1267 2006-08-16  Duncan Mak  <duncan@a-chinaman.com>
1269         * src/gslist.c:
1271         * src/gslist.h: First attempt at implementing GSList, incomplete.
1273         * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
1274         * src/glib.h: Add GFunc definition. #include the new gslist.h.
1276 2006-08-16  Miguel de Icaza  <miguel@novell.com>
1278         * src/Makefile.am: Added -Wall,-Werror, corrected lots of
1279         mistakes.
1281         * src/gstring.c: Gstring implementation.
1283         * test/str.c (test_gstring): string tests.
1285 2006-08-16  Aaron Bockover  <abockover@novell.com>
1287         * src/gstr.c: Added g_strsplit implementation
1289         * test/driver.c: Run the split test
1291         * test/str.c: Added a test for g_strsplit
1293         * Makefile.am:
1294         * src/Makefile.am:
1295         * test/Makefile.am: Added MAINTAINERCLEANFILES
1297 2006-08-16  Miguel de Icaza  <miguel@novell.com>
1299         * src/gouput.c: Implement some output routines, update missing
1300         progress. 
1302         * test: Add test driver, and initial tests. 
1304 2006-08-15  Miguel de Icaza  <miguel@novell.com>
1306         * src/ghashtable.c: Implement most of this, it is completely
1307         untested at this point.