1 2010-06-22 Rodrigo Kumpera <rkumpera@novell.com>
3 * src/ghashtable.c: Add code to sanity check the
4 hashtable contents. This is invaluable, for example,
5 to catch bugs where a key hashcode changes after
8 2010-06-18 Chris Toshok <toshok@ximian.com>
10 patch from Jacob Berkman:
12 * src/glib.h (g_mkdir): #define to mkdir
13 (g_ascii_strtoull): #define to strtoull
15 * src/gmodule.h: add G_BEGIN/END_DECLS
17 * src/gstr.c (g_strdupv): new function.
19 2010-06-18 Rolf Bjarne Kvinge <RKvinge@novell.com>
21 * src/eglib-remap.h: Remap g_ptr_array_remove_fast too.
23 2010-06-15 Zoltan Varga <vargaz@gmail.com>
25 * src/gunicode.c: Applied patch from Hib Eris <hib@hiberis.nl>. use "windows.h"
26 instead of "Windows.h".
28 2010-05-25 Zoltan Varga <vargaz@gmail.com>
30 * Applied patch from Burkhard Linke (blinke@cebitec.uni-bielefeld.de). Fix
33 2010-05-21 Zoltan Varga <vargaz@gmail.com>
35 * src/gmisc-win32.c (g_setenv): Use the
36 GetEnvironmentVariableW/SetEnvironmentVariableW variants.
38 2010-05-15 Zoltan Varga <vargaz@gmail.com>
40 * src/glib.h (g_error): Add a for (;;) after the call to tell GCC this doesn't
41 return, fixing some warnings.
43 2010-05-13 Alan McGovern <amcgovern@novell.com>
45 * src/gstring.c: Put in some null guards for the ctors
47 2010-05-11 Miguel de Icaza <miguel@novell.com>
49 * src/gunicode.c: Pull the Windows.h header when G_OS_WIN32 is
52 2010-05-11 Atsushi Enomoto <atsushi@ximian.com>
54 * Makefile.am : do not try to build test on windows (fails).
55 * src/glib.h : fix cygwin build, do not include unistd.h.
57 2010-05-10 Miguel de Icaza <miguel@novell.com>
59 * gfile-win32.c: Port this to use the Win32 APIs to get this
62 2010-05-07 Andrew Jorgensen <ajorgensen@novell.com>
64 * test/test.h: Fix some compiler warning that SUSE takes seriously.
66 2010-05-06 Alan McGovern <amcgovern@novell.com>
68 * src/gmarkup.c: Fix a parser issue when skipping the xml declaration.
70 2010-05-06 Jonathan Chambers <joncham@gmail.com>
72 * gfile-win32.c: Use __stat64 instead of _stat64.
74 2010-05-04 Jonathan Chambers <joncham@gmail.com>
76 * gspawn.c: Remove extern define for MSVC.
78 2010-05-03 Zoltan Varga <vargaz@gmail.com>
80 * src/glib.h: Include unistd.h on !windows for pid_t.
82 * gspawn.c: Add an extern define for environ on !apple platforms.
84 2010-05-02 Zoltan Varga <vargaz@gmail.com>
86 * src/glib.h: Include sys/types.h for pid_t.
88 2010-05-01 Zoltan Varga <vargaz@gmail.com>
90 * src/goutput.c (g_logv): Append a '\n' to the end of the string as glib does.
92 2010-04-28 Zoltan Varga <vargaz@gmail.com>
94 * configure.ac src/gspawn.c: Applied openbsd changes from Robert Nagy
97 2010-04-16 Miguel de Icaza <miguel@novell.com>
99 * src/gshell.c (g_shell_unquote): Implement this.
101 2010-04-25 Andreas Faerber <andreas.faerber@web.de>
103 * configure.ac: The iconv function may be libiconv_open.
104 Fixes linking with GNU libiconv.
106 Contributed under MIT/X11 license.
108 2010-04-23 Geoff Norton <gnorton@novell.com>
110 * configure.ac: The iconv function is iconv_open.
112 2010-04-19 Jonathan Pryor <jpryor@novell.com>
114 * src/glib.h: Rebase g_return_if_fail(), g_return_val_if_fail() in
115 terms of g_critical() instead of printf, and turn g_printerr() into
116 an actual function instead of a macro.
117 * src/goutput.c: Add Android support, sending g_print(), g_printerr(),
118 and g_log() messages to the Android system log.
120 2010-04-16 Gonzalo Paniagua Javier <gonzalo@novell.com>
122 * test/ptrarray.c: new tests
123 * src/gptrarray.c: implemented g_ptr_array_remove_fast().
125 2010-04-10 Andreas Faerber <andreas.faerber@web.de>
127 * configure.ac: Add checks for libm and libdl.
128 * {src,test}/Makefile.am: Remove hardcoded library dependencies.
129 Fixes compilation on Haiku.
131 Contributed under MIT/X11 license.
133 2010-03-05 Zoltan Varga <vargaz@gmail.com>
135 * test/test.c (_GNU_SOURCE): Fix compilation if _GNU_SOURCE is already defined.
138 Thu Mar 4 16:34:37 CET 2010 Paolo Molaro <lupus@ximian.com>
140 * src/unicode-data.h: save 70 KB.
142 Thu Mar 4 16:18:34 CET 2010 Paolo Molaro <lupus@ximian.com>
144 * src/eglib-remap.h, src/glib.h: header file to remap the symbols
145 so there is no clash with system glib.
146 * src/Makefile.am: build static lib as well.
148 2010-03-04 Zoltan Varga <vargaz@gmail.com>
150 * configure.ac: Add a check for ISO varargs.
152 * test/test.c: Fix the build.
154 * src/glib.h src/goutput.c: Emit asserts through a g_assertion_message ()
155 function which is decorated with G_GNUC_NORETURN, to fix many warnings when using
158 Mon Mar 1 17:12:24 CET 2010 Paolo Molaro <lupus@ximian.com>
160 * src/unicode-data.h, src/gutf8.c: don't export private symbols.
162 2009-12-03 Zoltan Varga <vargaz@gmail.com>
164 * src/gmisc-unix.c (g_get_user_name): Avoid returning NULL if the env
167 2009-10-15 Andreia Gaita <avidigal@novell.com>
169 * src/gptrarray.c: implement g_ptr_array_remove_index_fast
170 * src/glib.h: fix g_ptr_array_remove_index_fast declaration
171 * test/ptrarray.c: new tests
173 2009-10-15 Andreia Gaita <avidigal@novell.com>
175 * src/garray.c: (g_array_remove_index_fast) only move 1 element
176 and not the whole shebang
178 2009-09-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
180 * test/queue.c: new tests.
181 * src/gqueue.c: fixed pop_head.
183 2009-09-26 Gonzalo Paniagua Javier <gonzalo@novell.com>
185 * src/gqueue.c: add g_queue_push_tail.
187 2009-06-20 Zoltan Varga <vargaz@gmail.com>
189 * src/glib.h: Add GUINT32_FROM/TO_BE macros.
191 2009-06-09 Jonathan Chambers <joncham@gmail.com>
193 * CMakeLists.txt: Add start of CMake build.
194 * src/CMakeLists.txt: Add start of CMake build.
196 Contribution is licensed as MIT/X11.
198 2009-06-02 Bill Holmes <billholmes54@gmail.com>
200 * src/gpath.c (g_find_program_in_path): While searching on Windows
201 also try additional suffixes .exe, .cmd, .bat, and.com.
203 Contributed under MIT/X11 license.
205 2009-05-27 Geoff Norton <gnorton@novell.com>
207 * src/gfile-posix.c: Fix g_get_current_dir on amd64
209 2009-04-22 Jeffrey Stedfast <fejj@novell.com>
211 * src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
212 just saving it in a static variable. Also modified microseconds
213 calculation to avoid overflow.
215 2009-04-05 Miguel de Icaza <miguel@novell.com>
217 * src/gpath.c: Avoid situations where we add the separator if one
218 of the elements is the separator.
220 2009-04-02 Miguel de Icaza <miguel@novell.com>
222 * src/gpath.c: If the first element is NULL, return an empty
225 2009-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
227 * src/gstr.c: use memset in g_strnfill.
229 2009-01-19 Bill Holmes <billholmes54@gmail.com>
231 * src/gstr.c (g_strnfill): Fixing a warning for MSVC.
233 Contributed under MIT/X11 license.
235 2009-02-05 Miguel de Icaza <miguel@novell.com>
237 * src/gstr.c: Add g_strnfill
239 * src/glib.h: Add g_list_previous
241 2009-01-19 Bill Holmes <billholmes54@gmail.com>
243 * gmisc-win32.c (g_path_is_absolute): Adding support for UNC
246 Contributed under MIT/X11 license.
248 2009-01-08 Bill Holmes <billholmes54@gmail.com>
250 * winconfig.h, src/gfile-posix.c :
251 Fixing the MSVC builds.
253 Contributed under MIT/X11 license.
255 2009-01-07 Miguel de Icaza <miguel@novell.com>
257 * src/gfile-posix.c: Move g_get_current_dir, as it is a
258 POSIX-esque feature, and some other systems do not have current
261 * src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC):
263 Embedded support from Paolo's work on quack.
265 * configure.ac: check for strtok_r, langinfo.h and iconv.h
267 * src/gpath.c (strtok_r): Add a strtok_r implementation if it is
268 not available on the target system.
270 2008-11-05 Bill Holmes <billholmes54@gmail.com>
272 * src/gutf8.c, src/unicode-data.h, src/gunicode.c :
273 Fixing the MSVC builds.
275 Contributed under MIT/X11 license.
277 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
279 * src/gutf8.c, src/gunicode.c, src/glib.h:
280 implemented g_unichar_type(), g_unichar_toupper(),
281 g_unichar_tolower(), g_unichar_totitle(), g_utf8_strup()
282 and g_utf8_strdown(). Fixed some surrogate pair bugs.
283 * TODO : removed implemented things.
284 * test/unicode.c, test/tests.h, test/utf8.c, test/Makefile.am:
287 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
289 * src/unicode-data.h : new header for some new unicode manipulation
292 2008-10-17 Miguel de Icaza <miguel@novell.com>
294 * Allow types to be defined on the eglib-config.h file, that could
295 be a platform specific generated type file.
297 * gtimer.c: split functionality in platforms.
299 2008-10-13 Bill Holmes <billholmes54@gmail.com>
301 * src/gdate-win32.c : Fix compiler errors for MSVC.
303 * src/gpath.c : Fix compiler errors for MSVC.
305 * src/gfile-posix.c : Adding declaration for mkstemp for the win 32
306 implementation in gfile-win32.c.
308 Contributed under MIT/X11 license.
310 2008-10-11 Miguel de Icaza <miguel@novell.com>
312 * gtimer.c: Same process.
314 * src/glib.h: Move g_strdup here, to consolidate all allocations
315 in this header, will help for merging the allocation work later.
317 * src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
320 * src/gpath.c: Split this one as well.
322 * src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
323 src/gmodule-unix.c: split functionality in platforms.
325 * src/goutput.c (g_logv): On some platforms, before we abort we
326 want to flush the stdout/stderr.
328 2008-10-10 Miguel de Icaza <miguel@novell.com>
330 * Split functionality that is operating system specific into
331 -win32.c, -unix.c and -posix.c
333 * Use g_malloc everywhere, and g_free, so that these can be easily
334 overwritten consistently.
336 2008-09-16 Bill Holmes <billholmes54@gmail.com>
338 * src/gunicode.c : Fix a warning.
340 Contributed under MIT/X11 license.
342 2008-08-28 Bill Holmes <billholmes54@gmail.com>
344 * src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
346 Contributed under MIT/X11 license.
348 2008-08-27 Bill Holmes <billholmes54@gmail.com>
350 * glib.h, gunicode.c : Fixing some compiler errors.
352 Contributed under MIT/X11 license.
354 2008-08-20 Mike Voorhees <vernish13@gmail.com>
356 * Patch from Mike Voorhees to fix various problems with
357 g_utf8_validate compared to the glib implementation and unit tests
358 to ensure that there are no regressions.
360 From a mailing list post to mono-devel-list on August 19th, 2008
362 [Mono-dev] utf8 related patches. Please review.
364 2008-08-20 Mike Voorhees <vernish13@gmail.com>
366 * src/glib.h : Adding declarations for g_utf8_strlen, g_utf8_get_char,
367 and g_utf8_next_char.
369 * src/gunicode.c : Adding implementation for g_utf8_strlen, g_utf8_get_char,
370 and g_utf8_next_char.
372 * src/gunicode.c : Rewrote g_utf8_validate.
374 * test/utf8.c Adding tests for g_utf8_strlen, g_utf8_get_char,
375 g_utf8_next_char, and g_utf8_validate.
377 Contributed under MIT/X11 license.
379 2008-08-05 Andreas Faerber <andreas.faerber@web.de>
381 * autogen.sh: Suppress arguments warning for NOCONFIGURE.
383 Contributed under MIT/X11 license.
385 2008-08-04 Bill Holmes <billholmes54@gmail.com>
387 * test/tests.h, test/Makefile.am, test/memory.c : Adding memory tests to test
388 allocation routines return NULL when 0 size is passed in.
390 Contributed under MIT/X11 license.
392 2008-08-04 Bill Holmes <billholmes54@gmail.com>
394 * src/glib.h : Changing the allocation routines to return null if 0 size is
397 Contributed under MIT/X11 license.
399 2008-06-16 Zoltan Varga <vargaz@gmail.com>
401 * src/vasprintf.c (vasprintf): Applied patch from Michail Ushakov
402 <migelU@gmail.com>. Workaround broken vsnprintf on windows. Fixes
405 2008-06-11 Zoltan Varga <vargaz@gmail.com>
407 * src/goutput.c (g_log): Remove unnecessary and incorrect call to
408 g_strdup_printf (). Fixes #398918.
410 2008-05-01 Bill Holmes <billholmes54@gmail.com>
412 * src/glib.h : Adding declarations for g_ucs4_to_utf16 and g_utf16_to_ucs4.
414 * src/gutf8.c : Adding implementation for g_ucs4_to_utf16 and g_utf16_to_ucs4.
416 * test/utf8.c Adding tests for g_ucs4_to_utf16 and g_utf16_to_ucs4.
418 Contributed under MIT/X11 license.
420 2008-04-20 Geoff Norton <gnorton@novell.com>
422 * src/gspan.c: Fix the _NSGetEnviron define to prevent an impropoer
425 2008-03-19 Bill Holmes <billholmes54@gmail.com>
427 * src/gpath.c (g_path_is_absolute) : Adding a case for '/'
430 * src/gpath.c (g_get_user_name) : On Windows add a check for %USERNAME%
433 * src/gstr.c (g_strsplit, g_strsplit_set): Change to remove truncation
434 errors with MSVC build.
436 * src/gstr.c (g_filename_to_uri, g_filename_from_uri): Fixes to handle
439 * src/gstr.c (g_ascii_strncasecmp): Convert each character to lower case
442 * src/gunicode.c (g_get_charset): Implement for Windows.
444 Contributed under MIT/X11 license.
446 2008-03-12 Geoff Norton <gnorton@novell.com>
448 * src/gutf8.c: Implement g_ucs4_to_utf16 and g_utf16_to_ucs4 as
449 asserts. They're needed to build mono with eglib.
450 * src/gutil.h: Add a few missing function declarations to the header.
451 * src/gspawn.c: Some darwin implementations don't have crt_externs.h
452 So we'll just define _NSGetEnviron() ourselves.
453 * Makefile.am: Dont build test when cross compiling.
454 * configure.ac: Define CROSS_COMPILING when cross compiling.
455 Undefine _FORTIFY_SOURCE on arm-apple-darwin as the headers it
456 requires are not available.
458 2008-01-15 Andreas Faerber <andreas.faerber@web.de>
460 * configure.ac: Add default G_BREAKPOINT implementation.
461 Fix typo in breakpoint CPU output.
463 2007-12-23 Zoltan Varga <vargaz@gmail.com>
465 * src/glib.h: Include <limits.h>. Fixes #350482.
467 2007-11-21 Dick Porter <dick@ximian.com>
469 * src/gslist.c (g_slist_find_custom): Implement
471 * src/glist.c (g_list_find_custom): Implement
473 * test/list.c: Test g_list_find_custom()
475 * test/slist.c: Test g_slist_find_custom()
477 2007-11-20 Dick Porter <dick@ximian.com>
479 * src/gstr.c: Implement g_strsplit_set() and re-implement
480 g_strsplit() so it passes the additional tests. (g_strsplit()
481 should treat multi-char delimiters as just a single token, rather
482 than a set of delimiters.)
484 * src/gslist.c: Implement g_slist_index(), g_slist_nth() and
487 * test/string-util.c: Test g_strsplit_set() and more tests for
490 * test/slist.c: Test g_slist_nth() and
493 2007-11-06 Geoff Norton <gnorton@novell.com>
495 * configure.ac: Check for libiconv_open as the previous check was failing against
496 some versions of libiconv.
498 2007-11-06 Andreas Faerber <andreas.faerber@web.de>
500 * test/Makefile.am: Fix noinst_PROGRAMS for automake 1.6.3
501 Add support for VPATH
503 2007-11-06 Geoff Norton <gnorton@novell.com>
505 * configure.ac: Determing if glib-2.0 is installed and set HAVE_GLIB appropriately
506 * test/Makefile.am: Only build test-glib if glib-2.0 is available
508 2007-11-05 Geoff Norton <gnorton@novell.com>
510 * configure.ac: Check for getpwent_r and wether libiconv is needed to be linked.
511 Also look to see if we can use export-dynamic in the test suite.
512 * test/Makefile.am: Get LDFLAGS from configure instead of setting them.
513 * src/gerror.c: Implement g_clear_error.
514 * src/glib.h: Only use the format, ... convention is HAVE_C99_SUPPORT is available.
515 * src/gpath.c: Only use the getpwent_r codepath if getpwent_r is available.
516 * src/gspawn.c: Define environ to call _NSGetEnviron() on Apple.
517 * src/Makefile.am: Remove -Werror so we dont fail on different function declarations.
518 Portions of all of the above are from Andreas Faerber & Jonathan Chambers
520 2007-10-31 Jonathan Chambers <joncham@gmail.com>
522 * src/ghashtable.c: Add g_hash_table_foreach_steal.
523 * src/garray.c: Add g_array_remove_index_fast.
524 * src/gpath.c (g_path_is_absolute): Handle windows paths.
525 * src/glib.h: Add g_hash_table_foreach_steal and g_array_remove_index_fast
527 Contribution is licensed as MIT/X11.
529 2007-06-13 Jonathan Chambers <joncham@gmail.com>
531 * src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
532 * src/gmisc.c: Add g_win32_getlocale stub.
533 * src/glib.h: Add declarations of above functions,
534 GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
537 * test/string-util.c: Fix warning.
538 * test/utf8.c: Add test for g_unichar_xdigit_value.
540 Contribution is licensed as MIT/X11.
542 2007-05-05 Aaron Bockover <abockover@novell.com>
545 * src/glib.h: Added g_ascii_tolower implementation; make g_ascii_strdown
546 use it to do the transformation
548 * test/string-util.c: Added a test for g_ascii_strdown
550 2007-04-27 Jonathan Chambers <joncham@gmail.com>
552 * src/gstr.c: Fix off by one error in g_strdup allocation.
554 2007-04-27 Jonathan Chambers <joncham@gmail.com>
556 * src/eglib-config.hw: Forgot to add for msvc build.
557 * src/vasprintf: Forgot to add for msvc build.
559 2007-04-27 Jonathan Chambers <joncham@gmail.com>
561 * src/gstr.c: Fix off by one error for NULL terminator.
563 2007-04-27 Jonathan Chambers <joncham@gmail.com>
565 Combined patch from Michael Jerris <mike@jerris.com> and me.
566 * winconfig.h: Config file for msvc builds.
567 * configure.ac: Add AC_CHECK_HEADERS for getopt.h, sys/time.h,
568 sys/wait.h, and pwd.h.
570 * src/gspawn.c: Include config.h and use HAVE_* macros.
571 * src/eglib-config.h.in: Add inclusion guards.
572 * src/ghashtable.c: Fix warnings.
573 * src/gmisc.c: Windows implementation of g_getenv, g_setenv,
575 * src/gpath.c: Include config.h and use HAVE_* macros.
576 * src/gmarkup.c: Fix warnings.
577 * src/gptrarray.c: Fix warnings.
578 * src/gstr.c: Fix warnings and use HAVE_* macros.
579 * src/glib.h: Move macros to eglib-config.h and include it.
580 * src/gdate.c: Implement g_get_current_time on windows.
581 * src/gpattern.c: Fix warnings.
582 * src/gdir.c: Implement g_dir on windows.
583 * src/gfile.c: Implement mkstemp and g_file_test on windows.
584 * src/gtimer.c: Implement g_timer on windows.
585 * src/gmodule.c: Fix warnings.
586 * src/gunicode.c: Fix warnings.
587 * src/gutf8.c: Fix warnings.
589 * test/ptrarray.c: Fix warnings.
590 * test/string.c: Fix warnings.
591 * test/list.c: Fix warnings.
592 * test/pattern.c: Use HAVE_* macros.
593 * test/dir.c: Use HAVE_* macros.
594 * test/file.c: Use HAVE_* macros and use system specific files for tests.
595 * test/test.c: Fix warnings and use HAVE_* macros.
596 * test/timer.c: Use HAVE_* macros.
597 * test/string-util.c: Fix warnings.
598 * test/test.h: Supress warnings on msvc.
599 * test/module.c: Use HAVE_* macros.
600 * test/utf8.c: Fix warnings.
601 * test/spawn.c: Use HAVE_* macros.
602 * test/driver.c: Fix warnings and use HAVE_* macros.
603 * test/path.c: Use HAVE_* macros and use system specific files for tests.
604 * test/sizes.c: Fix warnings.
606 2007-04-24 Jonathan Chambers <joncham@gmail.com>
608 Patch from Michael Jerris <mike@jerris.com>
609 * src/gspawn.c: Start msvc build.
610 * src/gpath.c: Start msvc build.
611 * src/gmarkup.c: Start msvc build.
612 * src/gshell.c: Start msvc build.
613 * src/gstr.c: Start msvc build.
614 * src/glist.c: Start msvc build.
615 * src/glib.h: Start msvc build.
616 * src/gdate.c: Start msvc build.
617 * src/gpattern.c: Start msvc build.
618 * src/gdir.c: Start msvc build.
619 * src/gfile.c: Start msvc build.
620 * src/gtimer.c: Start msvc build.
621 * src/gmodule.c: Start msvc build.
622 * src/gunicode.c: Start msvc build.
624 2007-01-27 Robert Jordan <robertj@gmx.net>
626 * test/Makefile.am: Add linker option to be able to
627 load symbols from the main program.
628 * test/module.c: Clean-ups.
630 2007-01-26 Robert Jordan <robertj@gmx.net>
632 * configure.ac: Add PLATFORM_WIN32 conditional.
633 * src/Makefile.ac: Use PLATFORM_WIN32 conditional for psapi, iconv
634 * test/module.c, test/tests.h, test/Makefile.am: New test for gmodule.
635 * src/gmodule.h: Add G_MODULE_{IMPORT|EXPORT} defines.
636 * src/gmodule.c (g_module_symbol): Implement in-proc symbol lookup
638 * src/gmodule.c: Add GModule.main_module, consider it in
640 * src/gpath.c (g_get_home_dir): Add dummy Win32 implementation to
643 2006-11-03 Miguel de Icaza <miguel@novell.com>
645 * src/gpath.c (g_path_get_dirname): If the pathname starts with a
648 * test/string-util.c (test_strlcpy): Add new test.
650 * src/gunicode.c (g_filename_from_utf8): g_strlcpy needs the full
651 size, with the extra zero at the end; Fixes the stack trace
654 2006-10-30 Miguel de Icaza <miguel@novell.com>
656 * test/utf8.c (test_utf8_seq): Add new failing test.
658 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
660 * src/gutf8.c : several fixes:
661 - fixed incorrect mb_size clear and mb_remain computation.
662 - initialize items_written to 0 for error case.
663 - in utf8_to_utf16_len differentiate error messages completely.
664 - in g_utf8_to_utf16 use guchar instead of gchar.
665 * test/utf8.c : added test case string in test_utf8_seq() to
666 both test_utf8_to_utf16() and test_utf16_to_utf8().
668 2006-10-21 Miguel de Icaza <miguel@novell.com>
670 * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here.
672 * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
673 null values here. This gets things a little bit further in
674 corlib, but not too far.
676 * src/gdir.c (g_dir_read_name): Do not return . or ..
678 * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
679 thanks to Paolo for pointing the problem with the double macro
682 * src/gmodule.c (g_module_open): Actually return NULL if we fail
683 to load the module (was hiding the real bug in the pinvoke tests).
685 (g_module_build_path): Do not prepend "lib" if the "lib" is part
688 * src/gstr.c (g_strsplit): this routine has some non-expected
689 behavior, if the string begins with the delimiter, it will return
690 an empty first string, unlike strtok
692 * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
693 paths that do not contain a directory.
695 2006-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
697 * test/array.c: new test for insertion in the middle of other values.
698 * src/garray.c: fixed destination index.
700 2006-10-18 Miguel de Icaza <miguel@novell.com>
702 * src/gpath.c (g_build_path): Do not append terminator if the next
705 * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
707 (g_utf16_to_utf8): Include trailing zero as documented.
709 2006-10-17 Miguel de Icaza <miguel@novell.com>
711 * src/gstr.c (g_strdown): Actually move.
713 * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
714 sequence, reset the state after a closing element.
716 * src/garray.c (g_array_insert_vals): Shift the elements the
719 (g_array_insert_vals): Should actually use the
720 number of elements to insert.
722 * test/array.c: Add new test case, this was happening in the JIT.
724 * Add _GNU_SOURCE at configure time, remove from sources.
726 * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
728 * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
729 for the support stuff.
731 Move private prototypes elsewhere
733 * src/glib.h (g_thread_init): Adding missing brace
734 (g_list_next): remove ; from the macro definition.
736 2006-10-17 Miguel de Icaza <miguel@novell.com>
738 * src/gutf8.c: internal methods
740 * src/ghashtable.c: internal methods.
742 2006-10-16 Miguel de Icaza <miguel@novell.com>
744 * src/gerror.c (g_propagate_error): Implement.
746 * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
748 * test/string-util.c (test_ascii_strncasecmp): test
750 2006-10-15 Miguel de Icaza <miguel@novell.com>
752 * configure.in: Fix detection of platforms the [3456] stuff does
753 not work inside autoconf.
755 * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
757 * src/glib.h (offsetof): Mono sources depend on this, bring this
758 from the standard definition. Redefine G_STRUCT_OFFSET in terms
761 * src/glib.h (G_STRUCT_OFFSET): fix macro definition.
764 * src/sizes.c: Add test.
766 * src/gshell.c: Make it build
768 2006-10-14 Miguel de Icaza <miguel@novell.com>
770 * src/glib.h: add various _TO_LE and _FROM_LE macros.
772 * test/endian.c: tests for endian conversion macros.
774 2006-10-09 Miguel de Icaza <miguel@novell.com>
776 * src/gmodule.h: Move definitions of gmodule to gmodule.h because
777 Mono expects it there.
779 Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <lupus@ximian.com>
781 * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
782 and put the array in readonly memory.
783 * src/gstr.c: fixed the build and made array const.
784 * src/gmodule.c: fixed thinko.
786 2006-10-08 Miguel de Icaza <miguel@novell.com>
788 * src/gstr.c (g_strdup): should allow NULL as an argument.
790 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
792 * test/string-util.c:
795 * src/glib.h: implemented g_strescape.
797 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
799 * test/string-util.c:
803 * src/glib.h: implemented g_strlcpy.
805 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
807 * test/string-util.c:
810 * src/glib.h: implemented g_strdelimit.
812 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
814 * test/spawn.c: add search path flag when running ls.
815 * src/gspawn.c: g_spawn_command_line_sync searches the program in the
816 PATH if it's not an absolute path.
818 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
820 * test/string-util.c:
821 * src/glib.h: implement g_ascii_xdigit_value and tests.
823 2006-10-06 Miguel de Icaza <miguel@novell.com>
825 * src/gstr.c (g_ascii_strdown): Implement.
827 * str/glib.c (g_log_set_handler): empty.
829 (GMemVTable): define, empty, ignored.
832 * src/gunicode.c (g_convert): Add bytes_read, bytes_written
833 support; Small fixes to avoid valgrind errors.
835 (g_utf8_validate): Add, based on the libxml code.
837 gstr.c: implement g_strdown.
839 2006-10-05 Miguel de Icaza <miguel@novell.com>
841 * src/gunicode.c: Some work in progress to implement g_convert
842 (which is needed by g_locale_to_utf8).
844 2006-09-18 Miguel de Icaza <miguel@novell.com>
846 * test/string-util.c (test_filename_from_uri): tests for new
849 * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement.
851 2006-09-14 Atsushi Enomoto <atsushi@ximian.com>
853 * src/gutf8.c, test/utf8.c : EOL fix.
855 2006-09-04 Miguel de Icaza <miguel@novell.com>
857 * src/gmarkup.c: The leak fixing commit.
859 * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
861 (g_markup_parse_context_free): Implement.
862 (parse_attributes): Store the value, not the attribute name
864 Properly check the /> section.
865 (g_markup_parse_context_parse): When checking for error, use the
866 "error!=NULL && *error != NULL" upon return from callbacks,
867 it is only then that its valid to check for *error for error
869 (g_markup_parse_context_parse): Add comment processing.
871 Only release one element of the list.
873 * test/markup.c: Incorporate the kind of code that is used in Mono
874 for domain loading; Will test the rest later.
876 2006-09-01 Miguel de Icaza <miguel@novell.com>
878 * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
879 support, and end-element support; not tested yet.
881 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
883 * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
885 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
887 * gutf8.c : when error is null, utf8_to_utf16_len() and
888 utf16_to_utf8_len() could return -1, so return NULL for those
889 cases in g_utf8_to_utf16() and g_utf16_to_utf8().
891 2006-09-01 Miguel de Icaza <miguel@novell.com>
893 * src/gmarkup.c: Builds and does minimal parsing.
895 * test/markup.c: Sample test cases I have been using
897 2006-08-31 Atsushi Enomoto <atsushi@ximian.com>
900 src/gerror.c : added g_set_error().
902 g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
903 * src/glib.h : added all above, and some dependent bits.
904 * src/Makefile.am : added gutf8.c.
905 * TODO: removed above.
907 test/tests.h : added utf8 tests.
908 * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
909 It still needs more tests e.g. for multibytes.
911 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
913 * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
915 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
917 * test/file.c: remove useless test.
919 * test/spawn.c: new g_spawn_async_with_pipes test.
920 * src/glib.h: Modified file.
921 * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
923 2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
925 * TODO: Modified file.
933 * src/gfile.c: implemented g_dir_*, unix version.
935 2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
938 * test/Makefile.am: Modified file.
940 * src/Makefile.am: Modified file.
942 * src/gpattern.c: implemented the 3 pattern matching functions used.
944 * test/ptrarray.c: fix the compare function to work with qsort.
949 * src/gpath.c: made valgrind happy.
951 2006-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
955 * src/gfile.c: implemented g_file_test. Changed the default mask to
958 2006-08-26 Raja R Harinath <rharinath@novell.com>
960 * src/sort.frag.h (digit): Declare here based on externally
961 provided typedef 'list_node'.
962 (MAX_DIGITS): Use 'sizeof (list_node)'.
963 * src/gslist.c (list_node): Declare instead of 'digit'.
964 * src/glist.c: Likewise.
966 * test/slist.c (verify_sort): Verify the length of the list too.
967 (test_slist_sort): Free the correct list.
968 * test/list.c: Likewise.
969 * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
970 (combine_sort): Change 'max_pos' argument to more natural
972 (increment): Likewise. Use 'n_digits' to avoid reading at an
973 offset that hasn't been initialized.
974 (do_sort): Remove memset.
976 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
981 * src/gfile.c: implement g_file_open_tmp.
983 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
987 * src/gdate.c: New file.
988 * src/gfile.c: New file.
989 * src/Makefile.am: implemented g_file_get_contents and
993 * test/file.c: New file.
994 * test/Makefile.am: tests for the above.
996 2006-08-26 Raja R Harinath <rharinath@novell.com>
998 * src/sort.frag.h: Add copyright notice and some explanation.
999 (increment): Remove null check.
1000 (combine_digits): Add 'list' argument to seed the summation.
1001 (do_sort): Use the empty or singleton tail as the seed, rather
1002 than calling 'increment'.
1004 2006-08-25 Raja R Harinath <rharinath@novell.com>
1006 * TODO: Remove 'List' entries.
1007 * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
1008 * src/sort.frag.h: New. Implements a "generic" bottom-up "counting"
1009 mergesort that works both on singly- and doubly-linked lists.
1010 * src/gslist.c (g_slist_sort): Use it.
1011 * src/glist.c (g_list_sort): Likewise.
1012 * src/glib.h (g_slist_sort, g_list_sort): Declare.
1013 * test/slist.c, test/list.c: Add basic testcases.
1015 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1017 * src/gspawn.c: propagate errors from reads.
1018 * src/gpath.c: an empty PATH is like a NULL one.
1020 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1028 * src/Makefile.am: implemented GTimer.
1030 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1037 * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
1038 Still need better error handling, but works for the most part.
1040 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1042 * src/garray.c: grow faster so that the 'big' test does not crawl.
1044 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1047 * src/gqueue.c: plugged leaks.
1049 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
1052 * src/gpath.c: when PATH is not defined, the current dir is used.
1055 2006-08-25 Alp Toker <alp@atoker.com>
1057 * src/gstr.c: g_strv_length() should return guint, not gint
1058 * src/glib.h: Add g_strv_length() prototype
1060 2006-08-24 Miguel de Icaza <miguel@novell.com>
1062 * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
1063 g_get_prgname, g_set_prgname): implemented.
1067 * src/gpath.c (g_get_current_dir): Implement.
1069 (g_find_program_in_path, g_path_is_absolute): implement.
1071 Add g_path_get_dirname, g_path_get_basename
1073 * src/gpath.c: Path routines
1075 2006-08-23 Miguel de Icaza <miguel@novell.com>
1077 * src/gerror.c: Implement.
1079 * src/glist.c (g_list_sort): Remove routine instead of hoping that
1080 it wont crash when we run it.
1082 2006-08-23 Raja R Harinath <rharinath@novell.com>
1084 * src/glist.c (g_list_insert_before): Avoid non-head declaration.
1086 * test/slist.c (test_slist_insert_before): Add.
1087 * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
1089 * test/list.c (test_list_insert_before): Add test for return value
1090 of g_list_insert_before.
1091 * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
1092 to rebuild test if eglib changes.
1093 * src/glist.c (new_node, disconnect_node): New helpers that
1094 maintain doubly-linked list invariants.
1095 (g_list_prepend, g_list_append): Express in terms of new_node.
1096 (g_list_insert_before): Likewise. Fix return value when inserting
1097 in the middle of the list.
1098 (g_list_concat): Reorganize to make more compact.
1099 (g_list_nth): Likewise.
1100 (g_list_nth_data): Don't segfault if 'n' is too large.
1101 (g_list_remove): Rewrite using _find and disconnect_node.
1102 (g_list_remove_link): Don't traverse list: use disconnect_node.
1103 (g_list_insert_sorted): Rewrite to make more compact. Use new_node.
1104 (g_list_copy): Likewise.
1105 (_prepend, _concat): Remove.
1106 * src/gslist.c (insert_after, find_prev, find_prev_link):
1108 (g_slist_copy): Simplify slightly, using insert_after.
1109 (g_slist_concat): Reorganize to make more compact.
1110 (g_slist_find): Likewise.
1111 (g_slist_insert_sorted): Likewise.
1112 (g_slist_remove): Rewrite using find_prev.
1113 (g_slist_remove_link): Rewrite using find_prev_link.
1114 (g_slist_remove_all, g_slist_insert_before): New.
1116 2006-08-21 Duncan Mak <duncan@a-chinaman.com>
1118 * src/gqueue.c: GQueue implementation.
1119 * src/glib.h: Add prototypes.
1120 * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
1123 * test/Makefile.am (SOURCES):
1124 * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
1126 2006-08-21 Aaron Bockover <abockover@novell.com>
1128 * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
1129 realloc/delimiter token not found); use memcpy instead of strncpy for
1132 * test/test.c (run_group): allow running specific tests under a group;
1133 added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
1134 and eg_strfreev to avoid performance skews in the driver
1136 * test/driver.c: allow user-specified group name to contain specific
1137 test to run under the group as 'group_name:test1,test2,...testN'
1139 * test/string-util.c: Added more g_strsplit tests
1147 * test/hashtable.c: make test names shorter (no need to prefix with
1148 the group since it runs under the group)
1150 2006-08-21 Miguel de Icaza <miguel@novell.com>
1152 * src/glib.h (g_hash_table_new_full): Add missing prototype.
1153 Replace g_free(x) with plain free, so it can be used as a function
1157 * src/ghashtable.c: Add rehashing.
1159 * test/hashtable.c: Add a bunch of extra tests.
1161 * src/goutput.c: Fix g_log so it actually formats the data.
1163 * src/ghashtable.c (g_hash_table_new): The glib test suite
1164 uncovered a bunch of bugs, the g_hash_table_new should actually
1167 (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
1170 2006-08-20 Aaron Bockover <abockover@novell.com>
1172 * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
1174 * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
1176 * src/glib.h: added macros for above va_args printf functions
1178 * src/Makefile.am: added gmisc.c
1180 * test/whats-implemented: script to see what needs to be implemented
1182 2006-08-20 Chris Toshok <toshok@ximian.com>
1184 * test/array.c (test_array_big): add a test from the glib
1187 2006-08-20 Chris Toshok <toshok@ximian.com>
1189 * test/tests.h: add array tests to the mix.
1191 * test/array.c: a few array tests.
1193 * src/glib.h: add array prototypes.
1195 * src/garray.c: initial array foo.
1197 * test/Makefile.am (SOURCES): add array.c
1199 * src/Makefile.am (libeglib_la_SOURCES): add garray.c
1201 2006-08-19 Aaron Bockover <abockover@novell.com>
1203 * src/gstring.c: optimize and generalize reallocation by providing
1204 a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are
1205 very, very slow; GString is now much closer to GLib's implementation
1206 in terms of performance
1208 * test/string.c: added speed-specific tests to beat on reallocation code
1210 * test/test-both: run make if the test drivers don't exist
1212 2006-08-19 Jonathan Chambers <jonathan.chambers@gmail.com>
1214 * src/gmodule.c: Add gmodule support for windows and fix
1215 windows build. Contribution is licensed as MIT/X11.
1217 2006-08-19 Aaron Bockover <abockover@novell.com>
1219 * test/driver.c: Added --debug mode that allows for testing all paths
1220 of the driver without actually running real tests; runs only the 'fake'
1221 test, which does nothing; useful for running the driver through valgrind
1225 * test/fake.c: Added fake test for valgrinding the driver
1227 * test/ptrarray.c: update sort test
1229 2006-08-19 Aaron Bockover <abockover@novell.com>
1231 * test/test-both: added --help
1233 2006-08-19 Aaron Bockover <abockover@novell.com>
1235 * test/driver.c: added -n mode to show only raw global run times,
1236 which is useful for scripts (test-both --speed-compare)
1238 * test/test-both: added --speed-compare mode
1240 * test/README: updated with information on --speed-compare
1242 2006-08-19 Aaron Bockover <abockover@novell.com>
1244 * test/test.c: do not print times if -t is not passed
1246 * test/driver.c: removed use of GList from the driver to avoid skews due
1247 to performance differences between GLib and EGLib
1249 2006-08-19 Aaron Bockover <abockover@novell.com>
1251 * test/test.c: Perform iterations at the test level, only output one
1252 report for all iterations of tests in a group to produce more usable
1253 output; add timing for the tests and group; added get_timestamp for
1256 * test/test.h: Removed run_test as it should only be called from
1257 run_group, added get_timestamp
1259 * test/Makefile.am: Added -DDRIVER_NAME
1261 * test/test-both: simple script to run both drivers with the same options
1263 * test/driver.c: Iterations are now run at the test level, show a global
1264 status (OK/FAIL) indicator
1266 * test/README: Updated
1268 * configure.ac: Renamed from configure.in as configure.in naming
1269 convention is deprecated in favor of configure.ac
1271 * autogen.sh: s/configure.in/configure.ac/
1273 2006-08-19 Miguel de Icaza <miguel@novell.com>
1275 * Makefile.am: Removed MAINTAINERCLEANFILES that was too
1276 aggresive, it failed make distcheck and the resulting tarball was
1279 * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
1280 GSIZE_FORMAT macros, and move them into src/eglib-config.h
1282 Moved also gssize and gsize to be arch specific. This should fix
1283 the 32/64 problems that Jon Chambers reported.
1285 * configure.in: test for pointer size, define the various values
1286 depending on 32 vs 32/64 worlds, might need further porting in the
1289 Change package name to eglib
1291 * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
1294 * test/string-util.c: fix leak for valgrind tests.
1296 * test/tests.h: New size test, for testing datatypes.
1298 * test/sizes.c: New tests.
1300 2006-08-19 Aaron Bockover <abockover@novell.com>
1302 * test/README: Added quick guide on adding new tests/groups to the
1303 driver and some examples on how to perform various tests with the driver
1305 2006-08-18 Aaron Bockover <abockover@novell.com>
1307 * test/driver.c: Added getopt support and code timing, among other
1308 nice features to make testing/profiling easier
1310 * test/test.c: Add support for suppressing output (quiet) and
1311 define RESULT, FAILED, and OK
1314 * src/glist.c: Added g_list_nth_data implementation
1317 * test/string-util.c:
1321 * test/list.c: Use RESULT, FAILURE, and OK for tests
1323 2006-08-18 Miguel de Icaza <miguel@novell.com>
1325 * src/gstring.c (g_string_truncate): Implement truncate.
1326 (g_string_prepend): implement.
1328 Fix various bugs uncovered by new tests.
1330 * src/glib.h: introduce gssize type, the signed one. Important.
1332 * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
1333 defines that we can use to check on the host OS.
1335 2006-08-18 Aaron Bockover <abockover@novell.com>
1338 * test/driver.c: Support pass/fail logging on tests to show group report
1340 2006-08-18 Aaron Bockover <abockover@novell.com>
1343 * test/test.h: Added result() to be used in place of g_strdup_printf(),
1344 it's shorter to write and allows the duped string to be freed safely;
1345 added license header to file
1347 * test/driver.c: Added license header to file
1349 * test/string-util.c:
1352 * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
1354 2006-08-18 Aaron Bockover <abockover@novell.com>
1356 * src/gptrarray.c: Implemented g_ptr_array_sort
1358 * test/ptrarray.c: Added sort test
1360 * test/driver.c: Added --help; support running N iterations and allow
1361 selecting which test groups to run; uses the test group table in tests.h
1363 * test/tests.h: Added group table
1366 * test/test.c: Using a Group structure and table, removed run_groups
1367 as we only need run_group now
1369 * test/slist.h: Removed, not needed, tests/groups defined in tests.h
1371 2006-08-18 Miguel de Icaza <miguel@novell.com>
1373 * src/unicode.c: New file, to host unicode code, it will throw as
1374 this code is no longer used in the Mono runtime anyways.
1376 * src/glib.h: Use stdint.h types, a lot of the good stuff is
1379 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
1381 * src/glist.c (g_list_remove, g_list_remove_link): Implemented.
1383 * src/gslist.c (g_slist_remove): Remember to set the next pointer
1384 to NULL when the item to remove is the first item in the list.
1386 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
1388 * src/glist.c: Implemented. Missing remove,
1389 remove_link and insert_before.
1391 * test/list.c: Tests for GList.
1393 2006-08-17 Aaron Bockover <abockover@novell.com>
1395 * src/gptrarray.c: Implemented g_ptr_array_remove and
1396 g_ptr_array_remove_index
1398 * test/other: Removed, rewritten in Makefile.am
1400 * test/Makefile.am: Build test-eglib against local eglib and
1401 test-glib against GLib 2.0 (replaces 'other')
1403 * test/ptrarray.c: Added tests for g_ptr_array_remove and
1404 g_ptr_array_remove_index
1406 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1408 * src/gslist.c: Added MIT license.
1409 (g_slist_insert_sorted): Forgot the case where the data is
1410 appended to the end of the list.
1412 * test/slist.c (test_slist_insert_sorted): Fix the test.
1414 2006-08-17 Aaron Bockover <abockover@novell.com>
1416 * src/gptrarray.c: Added g_ptr_array_set_size implementation
1418 * test/ptrarray.c: Added test for g_ptr_array_set_size
1420 2006-08-17 Miguel de Icaza <miguel@novell.com>
1422 * src/glib.h: A handful of extra macros
1424 * configure.in, src/eglib-config.h.in: Set some system-specific
1425 settings that are probed at configure time.
1427 2006-08-17 Aaron Bockover <abockover@novell.com>
1429 * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
1431 * src/glib.h: Added GPtrArray signatures
1433 * src/Makefile.am: Added gptrarray.c to build
1438 * test/Makefile.am: Add ptrarray tests for available functionality
1440 2006-08-17 Aaron Bockover <abockover@novell.com>
1443 * test/test.c: Added group iterator/test driver functionality
1445 * test/driver.c: Added groups to run using new test functionality
1449 * test/string-util.h: Test group definitions for string util/hashtable
1453 * test/hash.c: Added test definition table
1455 * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
1457 * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
1459 * src/glib.h: Added missing function signatures
1461 * src/Makefile.am: added -D_FORTIFY_SOURCE=2
1463 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1465 * src/gslist.c (g_slist_remove_link): I misread the function
1466 signature. Re-implemented.
1467 (g_slist_delete_link): Implemented.
1468 (g_slist_reverse): Implemented.
1469 (g_slist_insert_sorted): Implemented.
1471 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1473 * src/gslist.c (g_slist_find):
1476 (g_slist_remove_link): Implemented.
1478 * test/slist.c: Tests for GSList.
1480 2006-08-17 Raja R Harinath <harinath@gmail.com>
1482 * src/gslist.c (g_slist_free_1): New. Free a single list node.
1483 (g_slist_free): Use it to free the list nodes. Don't free the
1484 data, since the list doesn't own it.
1485 (g_slist_append): Convert into a one-liner.
1486 (g_slist_foreach): Remove redundant null check.
1487 (g_slist_last): Actually return the last node.
1488 (g_slist_copy): Simplify.
1489 * src/gslist.h (g_slist_free_1): Add.
1491 2006-08-16 Duncan Mak <duncan@a-chinaman.com>
1495 * src/gslist.h: First attempt at implementing GSList, incomplete.
1497 * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
1498 * src/glib.h: Add GFunc definition. #include the new gslist.h.
1500 2006-08-16 Miguel de Icaza <miguel@novell.com>
1502 * src/Makefile.am: Added -Wall,-Werror, corrected lots of
1505 * src/gstring.c: Gstring implementation.
1507 * test/str.c (test_gstring): string tests.
1509 2006-08-16 Aaron Bockover <abockover@novell.com>
1511 * src/gstr.c: Added g_strsplit implementation
1513 * test/driver.c: Run the split test
1515 * test/str.c: Added a test for g_strsplit
1519 * test/Makefile.am: Added MAINTAINERCLEANFILES
1521 2006-08-16 Miguel de Icaza <miguel@novell.com>
1523 * src/gouput.c: Implement some output routines, update missing
1526 * test: Add test driver, and initial tests.
1528 2006-08-15 Miguel de Icaza <miguel@novell.com>
1530 * src/ghashtable.c: Implement most of this, it is completely
1531 untested at this point.