1 2009-04-22 Jeffrey Stedfast <fejj@novell.com>
3 * src/gtimer-win32.c (g_timer_elapsed): Avoid re-querying freq by
4 just saving it in a static variable. Also modified microseconds
5 calculation to avoid overflow.
7 2009-04-05 Miguel de Icaza <miguel@novell.com>
9 * src/gpath.c: Avoid situations where we add the separator if one
10 of the elements is the separator.
12 2009-04-02 Miguel de Icaza <miguel@novell.com>
14 * src/gpath.c: If the first element is NULL, return an empty
17 2009-02-19 Gonzalo Paniagua Javier <gonzalo@novell.com>
19 * src/gstr.c: use memset in g_strnfill.
21 2009-01-19 Bill Holmes <billholmes54@gmail.com>
23 * src/gstr.c (g_strnfill): Fixing a warning for MSVC.
25 Contributed under MIT/X11 license.
27 2009-02-05 Miguel de Icaza <miguel@novell.com>
29 * src/gstr.c: Add g_strnfill
31 * src/glib.h: Add g_list_previous
33 2009-01-19 Bill Holmes <billholmes54@gmail.com>
35 * gmisc-win32.c (g_path_is_absolute): Adding support for UNC
38 Contributed under MIT/X11 license.
40 2009-01-08 Bill Holmes <billholmes54@gmail.com>
42 * winconfig.h, src/gfile-posix.c :
43 Fixing the MSVC builds.
45 Contributed under MIT/X11 license.
47 2009-01-07 Miguel de Icaza <miguel@novell.com>
49 * src/gfile-posix.c: Move g_get_current_dir, as it is a
50 POSIX-esque feature, and some other systems do not have current
53 * src/glib.h (G_LOCK_DEFINE, G_LOCK_DEFINE_STATIC):
55 Embedded support from Paolo's work on quack.
57 * configure.ac: check for strtok_r, langinfo.h and iconv.h
59 * src/gpath.c (strtok_r): Add a strtok_r implementation if it is
60 not available on the target system.
62 2008-11-05 Bill Holmes <billholmes54@gmail.com>
64 * src/gutf8.c, src/unicode-data.h, src/gunicode.c :
65 Fixing the MSVC builds.
67 Contributed under MIT/X11 license.
69 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
71 * src/gutf8.c, src/gunicode.c, src/glib.h:
72 implemented g_unichar_type(), g_unichar_toupper(),
73 g_unichar_tolower(), g_unichar_totitle(), g_utf8_strup()
74 and g_utf8_strdown(). Fixed some surrogate pair bugs.
75 * TODO : removed implemented things.
76 * test/unicode.c, test/tests.h, test/utf8.c, test/Makefile.am:
79 2008-11-04 Atsushi Enomoto <atsushi@ximian.com>
81 * src/unicode-data.h : new header for some new unicode manipulation
84 2008-10-17 Miguel de Icaza <miguel@novell.com>
86 * Allow types to be defined on the eglib-config.h file, that could
87 be a platform specific generated type file.
89 * gtimer.c: split functionality in platforms.
91 2008-10-13 Bill Holmes <billholmes54@gmail.com>
93 * src/gdate-win32.c : Fix compiler errors for MSVC.
95 * src/gpath.c : Fix compiler errors for MSVC.
97 * src/gfile-posix.c : Adding declaration for mkstemp for the win 32
98 implementation in gfile-win32.c.
100 Contributed under MIT/X11 license.
102 2008-10-11 Miguel de Icaza <miguel@novell.com>
104 * gtimer.c: Same process.
106 * src/glib.h: Move g_strdup here, to consolidate all allocations
107 in this header, will help for merging the allocation work later.
109 * src/gpattern.c (compile_pattern): From Unity, use -1 in the enum
112 * src/gpath.c: Split this one as well.
114 * src/gmodule-win32.c, src/gmisc-unix.c, src/gmisc-win32.c,
115 src/gmodule-unix.c: split functionality in platforms.
117 * src/goutput.c (g_logv): On some platforms, before we abort we
118 want to flush the stdout/stderr.
120 2008-10-10 Miguel de Icaza <miguel@novell.com>
122 * Split functionality that is operating system specific into
123 -win32.c, -unix.c and -posix.c
125 * Use g_malloc everywhere, and g_free, so that these can be easily
126 overwritten consistently.
128 2008-09-16 Bill Holmes <billholmes54@gmail.com>
130 * src/gunicode.c : Fix a warning.
132 Contributed under MIT/X11 license.
134 2008-08-28 Bill Holmes <billholmes54@gmail.com>
136 * src/glib.h : Adding a c++ definition for G_BEGIN_DECLS.
138 Contributed under MIT/X11 license.
140 2008-08-27 Bill Holmes <billholmes54@gmail.com>
142 * glib.h, gunicode.c : Fixing some compiler errors.
144 Contributed under MIT/X11 license.
146 2008-08-20 Mike Voorhees <vernish13@gmail.com>
148 * Patch from Mike Voorhees to fix various problems with
149 g_utf8_validate compared to the glib implementation and unit tests
150 to ensure that there are no regressions.
152 From a mailing list post to mono-devel-list on August 19th, 2008
154 [Mono-dev] utf8 related patches. Please review.
156 2008-08-20 Mike Voorhees <vernish13@gmail.com>
158 * src/glib.h : Adding declarations for g_utf8_strlen, g_utf8_get_char,
159 and g_utf8_next_char.
161 * src/gunicode.c : Adding implementation for g_utf8_strlen, g_utf8_get_char,
162 and g_utf8_next_char.
164 * src/gunicode.c : Rewrote g_utf8_validate.
166 * test/utf8.c Adding tests for g_utf8_strlen, g_utf8_get_char,
167 g_utf8_next_char, and g_utf8_validate.
169 Contributed under MIT/X11 license.
171 2008-08-05 Andreas Faerber <andreas.faerber@web.de>
173 * autogen.sh: Suppress arguments warning for NOCONFIGURE.
175 Contributed under MIT/X11 license.
177 2008-08-04 Bill Holmes <billholmes54@gmail.com>
179 * test/tests.h, test/Makefile.am, test/memory.c : Adding memory tests to test
180 allocation routines return NULL when 0 size is passed in.
182 Contributed under MIT/X11 license.
184 2008-08-04 Bill Holmes <billholmes54@gmail.com>
186 * src/glib.h : Changing the allocation routines to return null if 0 size is
189 Contributed under MIT/X11 license.
191 2008-06-16 Zoltan Varga <vargaz@gmail.com>
193 * src/vasprintf.c (vasprintf): Applied patch from Michail Ushakov
194 <migelU@gmail.com>. Workaround broken vsnprintf on windows. Fixes
197 2008-06-11 Zoltan Varga <vargaz@gmail.com>
199 * src/goutput.c (g_log): Remove unnecessary and incorrect call to
200 g_strdup_printf (). Fixes #398918.
202 2008-05-01 Bill Holmes <billholmes54@gmail.com>
204 * src/glib.h : Adding declarations for g_ucs4_to_utf16 and g_utf16_to_ucs4.
206 * src/gutf8.c : Adding implementation for g_ucs4_to_utf16 and g_utf16_to_ucs4.
208 * test/utf8.c Adding tests for g_ucs4_to_utf16 and g_utf16_to_ucs4.
210 Contributed under MIT/X11 license.
212 2008-04-20 Geoff Norton <gnorton@novell.com>
214 * src/gspan.c: Fix the _NSGetEnviron define to prevent an impropoer
217 2008-03-19 Bill Holmes <billholmes54@gmail.com>
219 * src/gpath.c (g_path_is_absolute) : Adding a case for '/'
222 * src/gpath.c (g_get_user_name) : On Windows add a check for %USERNAME%
225 * src/gstr.c (g_strsplit, g_strsplit_set): Change to remove truncation
226 errors with MSVC build.
228 * src/gstr.c (g_filename_to_uri, g_filename_from_uri): Fixes to handle
231 * src/gstr.c (g_ascii_strncasecmp): Convert each character to lower case
234 * src/gunicode.c (g_get_charset): Implement for Windows.
236 Contributed under MIT/X11 license.
238 2008-03-12 Geoff Norton <gnorton@novell.com>
240 * src/gutf8.c: Implement g_ucs4_to_utf16 and g_utf16_to_ucs4 as
241 asserts. They're needed to build mono with eglib.
242 * src/gutil.h: Add a few missing function declarations to the header.
243 * src/gspawn.c: Some darwin implementations don't have crt_externs.h
244 So we'll just define _NSGetEnviron() ourselves.
245 * Makefile.am: Dont build test when cross compiling.
246 * configure.ac: Define CROSS_COMPILING when cross compiling.
247 Undefine _FORTIFY_SOURCE on arm-apple-darwin as the headers it
248 requires are not available.
250 2008-01-15 Andreas Faerber <andreas.faerber@web.de>
252 * configure.ac: Add default G_BREAKPOINT implementation.
253 Fix typo in breakpoint CPU output.
255 2007-12-23 Zoltan Varga <vargaz@gmail.com>
257 * src/glib.h: Include <limits.h>. Fixes #350482.
259 2007-11-21 Dick Porter <dick@ximian.com>
261 * src/gslist.c (g_slist_find_custom): Implement
263 * src/glist.c (g_list_find_custom): Implement
265 * test/list.c: Test g_list_find_custom()
267 * test/slist.c: Test g_slist_find_custom()
269 2007-11-20 Dick Porter <dick@ximian.com>
271 * src/gstr.c: Implement g_strsplit_set() and re-implement
272 g_strsplit() so it passes the additional tests. (g_strsplit()
273 should treat multi-char delimiters as just a single token, rather
274 than a set of delimiters.)
276 * src/gslist.c: Implement g_slist_index(), g_slist_nth() and
279 * test/string-util.c: Test g_strsplit_set() and more tests for
282 * test/slist.c: Test g_slist_nth() and
285 2007-11-06 Geoff Norton <gnorton@novell.com>
287 * configure.ac: Check for libiconv_open as the previous check was failing against
288 some versions of libiconv.
290 2007-11-06 Andreas Faerber <andreas.faerber@web.de>
292 * test/Makefile.am: Fix noinst_PROGRAMS for automake 1.6.3
293 Add support for VPATH
295 2007-11-06 Geoff Norton <gnorton@novell.com>
297 * configure.ac: Determing if glib-2.0 is installed and set HAVE_GLIB appropriately
298 * test/Makefile.am: Only build test-glib if glib-2.0 is available
300 2007-11-05 Geoff Norton <gnorton@novell.com>
302 * configure.ac: Check for getpwent_r and wether libiconv is needed to be linked.
303 Also look to see if we can use export-dynamic in the test suite.
304 * test/Makefile.am: Get LDFLAGS from configure instead of setting them.
305 * src/gerror.c: Implement g_clear_error.
306 * src/glib.h: Only use the format, ... convention is HAVE_C99_SUPPORT is available.
307 * src/gpath.c: Only use the getpwent_r codepath if getpwent_r is available.
308 * src/gspawn.c: Define environ to call _NSGetEnviron() on Apple.
309 * src/Makefile.am: Remove -Werror so we dont fail on different function declarations.
310 Portions of all of the above are from Andreas Faerber & Jonathan Chambers
312 2007-10-31 Jonathan Chambers <joncham@gmail.com>
314 * src/ghashtable.c: Add g_hash_table_foreach_steal.
315 * src/garray.c: Add g_array_remove_index_fast.
316 * src/gpath.c (g_path_is_absolute): Handle windows paths.
317 * src/glib.h: Add g_hash_table_foreach_steal and g_array_remove_index_fast
319 Contribution is licensed as MIT/X11.
321 2007-06-13 Jonathan Chambers <joncham@gmail.com>
323 * src/gunicode.c: Add g_unichar_isxdigit and g_unichar_xdigit_value.
324 * src/gmisc.c: Add g_win32_getlocale stub.
325 * src/glib.h: Add declarations of above functions,
326 GFreeFunc typedef, and CLAMP, GUINT_TO_LE, and threading
329 * test/string-util.c: Fix warning.
330 * test/utf8.c: Add test for g_unichar_xdigit_value.
332 Contribution is licensed as MIT/X11.
334 2007-05-05 Aaron Bockover <abockover@novell.com>
337 * src/glib.h: Added g_ascii_tolower implementation; make g_ascii_strdown
338 use it to do the transformation
340 * test/string-util.c: Added a test for g_ascii_strdown
342 2007-04-27 Jonathan Chambers <joncham@gmail.com>
344 * src/gstr.c: Fix off by one error in g_strdup allocation.
346 2007-04-27 Jonathan Chambers <joncham@gmail.com>
348 * src/eglib-config.hw: Forgot to add for msvc build.
349 * src/vasprintf: Forgot to add for msvc build.
351 2007-04-27 Jonathan Chambers <joncham@gmail.com>
353 * src/gstr.c: Fix off by one error for NULL terminator.
355 2007-04-27 Jonathan Chambers <joncham@gmail.com>
357 Combined patch from Michael Jerris <mike@jerris.com> and me.
358 * winconfig.h: Config file for msvc builds.
359 * configure.ac: Add AC_CHECK_HEADERS for getopt.h, sys/time.h,
360 sys/wait.h, and pwd.h.
362 * src/gspawn.c: Include config.h and use HAVE_* macros.
363 * src/eglib-config.h.in: Add inclusion guards.
364 * src/ghashtable.c: Fix warnings.
365 * src/gmisc.c: Windows implementation of g_getenv, g_setenv,
367 * src/gpath.c: Include config.h and use HAVE_* macros.
368 * src/gmarkup.c: Fix warnings.
369 * src/gptrarray.c: Fix warnings.
370 * src/gstr.c: Fix warnings and use HAVE_* macros.
371 * src/glib.h: Move macros to eglib-config.h and include it.
372 * src/gdate.c: Implement g_get_current_time on windows.
373 * src/gpattern.c: Fix warnings.
374 * src/gdir.c: Implement g_dir on windows.
375 * src/gfile.c: Implement mkstemp and g_file_test on windows.
376 * src/gtimer.c: Implement g_timer on windows.
377 * src/gmodule.c: Fix warnings.
378 * src/gunicode.c: Fix warnings.
379 * src/gutf8.c: Fix warnings.
381 * test/ptrarray.c: Fix warnings.
382 * test/string.c: Fix warnings.
383 * test/list.c: Fix warnings.
384 * test/pattern.c: Use HAVE_* macros.
385 * test/dir.c: Use HAVE_* macros.
386 * test/file.c: Use HAVE_* macros and use system specific files for tests.
387 * test/test.c: Fix warnings and use HAVE_* macros.
388 * test/timer.c: Use HAVE_* macros.
389 * test/string-util.c: Fix warnings.
390 * test/test.h: Supress warnings on msvc.
391 * test/module.c: Use HAVE_* macros.
392 * test/utf8.c: Fix warnings.
393 * test/spawn.c: Use HAVE_* macros.
394 * test/driver.c: Fix warnings and use HAVE_* macros.
395 * test/path.c: Use HAVE_* macros and use system specific files for tests.
396 * test/sizes.c: Fix warnings.
398 2007-04-24 Jonathan Chambers <joncham@gmail.com>
400 Patch from Michael Jerris <mike@jerris.com>
401 * src/gspawn.c: Start msvc build.
402 * src/gpath.c: Start msvc build.
403 * src/gmarkup.c: Start msvc build.
404 * src/gshell.c: Start msvc build.
405 * src/gstr.c: Start msvc build.
406 * src/glist.c: Start msvc build.
407 * src/glib.h: Start msvc build.
408 * src/gdate.c: Start msvc build.
409 * src/gpattern.c: Start msvc build.
410 * src/gdir.c: Start msvc build.
411 * src/gfile.c: Start msvc build.
412 * src/gtimer.c: Start msvc build.
413 * src/gmodule.c: Start msvc build.
414 * src/gunicode.c: Start msvc build.
416 2007-01-27 Robert Jordan <robertj@gmx.net>
418 * test/Makefile.am: Add linker option to be able to
419 load symbols from the main program.
420 * test/module.c: Clean-ups.
422 2007-01-26 Robert Jordan <robertj@gmx.net>
424 * configure.ac: Add PLATFORM_WIN32 conditional.
425 * src/Makefile.ac: Use PLATFORM_WIN32 conditional for psapi, iconv
426 * test/module.c, test/tests.h, test/Makefile.am: New test for gmodule.
427 * src/gmodule.h: Add G_MODULE_{IMPORT|EXPORT} defines.
428 * src/gmodule.c (g_module_symbol): Implement in-proc symbol lookup
430 * src/gmodule.c: Add GModule.main_module, consider it in
432 * src/gpath.c (g_get_home_dir): Add dummy Win32 implementation to
435 2006-11-03 Miguel de Icaza <miguel@novell.com>
437 * src/gpath.c (g_path_get_dirname): If the pathname starts with a
440 * test/string-util.c (test_strlcpy): Add new test.
442 * src/gunicode.c (g_filename_from_utf8): g_strlcpy needs the full
443 size, with the extra zero at the end; Fixes the stack trace
446 2006-10-30 Miguel de Icaza <miguel@novell.com>
448 * test/utf8.c (test_utf8_seq): Add new failing test.
450 2006-10-30 Atsushi Enomoto <atsushi@ximian.com>
452 * src/gutf8.c : several fixes:
453 - fixed incorrect mb_size clear and mb_remain computation.
454 - initialize items_written to 0 for error case.
455 - in utf8_to_utf16_len differentiate error messages completely.
456 - in g_utf8_to_utf16 use guchar instead of gchar.
457 * test/utf8.c : added test case string in test_utf8_seq() to
458 both test_utf8_to_utf16() and test_utf16_to_utf8().
460 2006-10-21 Miguel de Icaza <miguel@novell.com>
462 * src/gunicode.c (g_filename_from_utf8): Use g_strlcpy here.
464 * src/gmarkup.c (g_markup_parse_context_parse): Do not dereference
465 null values here. This gets things a little bit further in
466 corlib, but not too far.
468 * src/gdir.c (g_dir_read_name): Do not return . or ..
470 * src/gstr.c (g_ascii_xdigit_value): Make this into a function,
471 thanks to Paolo for pointing the problem with the double macro
474 * src/gmodule.c (g_module_open): Actually return NULL if we fail
475 to load the module (was hiding the real bug in the pinvoke tests).
477 (g_module_build_path): Do not prepend "lib" if the "lib" is part
480 * src/gstr.c (g_strsplit): this routine has some non-expected
481 behavior, if the string begins with the delimiter, it will return
482 an empty first string, unlike strtok
484 * src/gpath.c (g_path_get_dirname): Return "." as a dirname for
485 paths that do not contain a directory.
487 2006-10-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
489 * test/array.c: new test for insertion in the middle of other values.
490 * src/garray.c: fixed destination index.
492 2006-10-18 Miguel de Icaza <miguel@novell.com>
494 * src/gpath.c (g_build_path): Do not append terminator if the next
497 * src/gutf8.c (g_utf8_to_utf16): Include trailing zero as
499 (g_utf16_to_utf8): Include trailing zero as documented.
501 2006-10-17 Miguel de Icaza <miguel@novell.com>
503 * src/gstr.c (g_strdown): Actually move.
505 * src/gmarkup.c (g_markup_parse_context_parse): Accept dots in the
506 sequence, reset the state after a closing element.
508 * src/garray.c (g_array_insert_vals): Shift the elements the
511 (g_array_insert_vals): Should actually use the
512 number of elements to insert.
514 * test/array.c: Add new test case, this was happening in the JIT.
516 * Add _GNU_SOURCE at configure time, remove from sources.
518 * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
520 * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
521 for the support stuff.
523 Move private prototypes elsewhere
525 * src/glib.h (g_thread_init): Adding missing brace
526 (g_list_next): remove ; from the macro definition.
528 2006-10-17 Miguel de Icaza <miguel@novell.com>
530 * src/gutf8.c: internal methods
532 * src/ghashtable.c: internal methods.
534 2006-10-16 Miguel de Icaza <miguel@novell.com>
536 * src/gerror.c (g_propagate_error): Implement.
538 * src/gstr.c (g_strjoinv, g_ascii_strncasecmp): implement.
540 * test/string-util.c (test_ascii_strncasecmp): test
542 2006-10-15 Miguel de Icaza <miguel@novell.com>
544 * configure.in: Fix detection of platforms the [3456] stuff does
545 not work inside autoconf.
547 * src/eglib-config.h.in: Make G_BREAKPOINT into a function-macro
549 * src/glib.h (offsetof): Mono sources depend on this, bring this
550 from the standard definition. Redefine G_STRUCT_OFFSET in terms
553 * src/glib.h (G_STRUCT_OFFSET): fix macro definition.
556 * src/sizes.c: Add test.
558 * src/gshell.c: Make it build
560 2006-10-14 Miguel de Icaza <miguel@novell.com>
562 * src/glib.h: add various _TO_LE and _FROM_LE macros.
564 * test/endian.c: tests for endian conversion macros.
566 2006-10-09 Miguel de Icaza <miguel@novell.com>
568 * src/gmodule.h: Move definitions of gmodule to gmodule.h because
569 Mono expects it there.
571 Mon Oct 9 12:59:16 CEST 2006 Paolo Molaro <lupus@ximian.com>
573 * src/ghashtable.c: s/to_prime/g_spaced_primes_closest/g
574 and put the array in readonly memory.
575 * src/gstr.c: fixed the build and made array const.
576 * src/gmodule.c: fixed thinko.
578 2006-10-08 Miguel de Icaza <miguel@novell.com>
580 * src/gstr.c (g_strdup): should allow NULL as an argument.
582 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
584 * test/string-util.c:
587 * src/glib.h: implemented g_strescape.
589 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
591 * test/string-util.c:
595 * src/glib.h: implemented g_strlcpy.
597 2006-10-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
599 * test/string-util.c:
602 * src/glib.h: implemented g_strdelimit.
604 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
606 * test/spawn.c: add search path flag when running ls.
607 * src/gspawn.c: g_spawn_command_line_sync searches the program in the
608 PATH if it's not an absolute path.
610 2006-10-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
612 * test/string-util.c:
613 * src/glib.h: implement g_ascii_xdigit_value and tests.
615 2006-10-06 Miguel de Icaza <miguel@novell.com>
617 * src/gstr.c (g_ascii_strdown): Implement.
619 * str/glib.c (g_log_set_handler): empty.
621 (GMemVTable): define, empty, ignored.
624 * src/gunicode.c (g_convert): Add bytes_read, bytes_written
625 support; Small fixes to avoid valgrind errors.
627 (g_utf8_validate): Add, based on the libxml code.
629 gstr.c: implement g_strdown.
631 2006-10-05 Miguel de Icaza <miguel@novell.com>
633 * src/gunicode.c: Some work in progress to implement g_convert
634 (which is needed by g_locale_to_utf8).
636 2006-09-18 Miguel de Icaza <miguel@novell.com>
638 * test/string-util.c (test_filename_from_uri): tests for new
641 * src/gstr.c (g_filename_to_uri, g_filename_from_uri): implement.
643 2006-09-14 Atsushi Enomoto <atsushi@ximian.com>
645 * src/gutf8.c, test/utf8.c : EOL fix.
647 2006-09-04 Miguel de Icaza <miguel@novell.com>
649 * src/gmarkup.c: The leak fixing commit.
651 * src/gmarkup.c (g_markup_parse_context_end_parse): Add missing
653 (g_markup_parse_context_free): Implement.
654 (parse_attributes): Store the value, not the attribute name
656 Properly check the /> section.
657 (g_markup_parse_context_parse): When checking for error, use the
658 "error!=NULL && *error != NULL" upon return from callbacks,
659 it is only then that its valid to check for *error for error
661 (g_markup_parse_context_parse): Add comment processing.
663 Only release one element of the list.
665 * test/markup.c: Incorporate the kind of code that is used in Mono
666 for domain loading; Will test the rest later.
668 2006-09-01 Miguel de Icaza <miguel@novell.com>
670 * src/gmarkup.c (g_markup_parse_context_parse): Add text parsing
671 support, and end-element support; not tested yet.
673 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
675 * gutf8.c : bad allocation size. multiply sizeof gchar/gunichar2.
677 2006-09-01 Atsushi Enomoto <atsushi@ximian.com>
679 * gutf8.c : when error is null, utf8_to_utf16_len() and
680 utf16_to_utf8_len() could return -1, so return NULL for those
681 cases in g_utf8_to_utf16() and g_utf16_to_utf8().
683 2006-09-01 Miguel de Icaza <miguel@novell.com>
685 * src/gmarkup.c: Builds and does minimal parsing.
687 * test/markup.c: Sample test cases I have been using
689 2006-08-31 Atsushi Enomoto <atsushi@ximian.com>
692 src/gerror.c : added g_set_error().
694 g_utf8_to_utf16() and g_utf16_to_utf8() implementation.
695 * src/glib.h : added all above, and some dependent bits.
696 * src/Makefile.am : added gutf8.c.
697 * TODO: removed above.
699 test/tests.h : added utf8 tests.
700 * test/utf8.c : test for g_utf8_to_utf16 and g_utf16_to_utf8.
701 It still needs more tests e.g. for multibytes.
703 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
705 * src/gspawn.c: small touch-ups and make read/write EINTR-proof.
707 2006-08-31 Gonzalo Paniagua Javier <gonzalo@ximian.com>
709 * test/file.c: remove useless test.
711 * test/spawn.c: new g_spawn_async_with_pipes test.
712 * src/glib.h: Modified file.
713 * src/gspawn.c: implemented g_spawn_async_with_pipes. Needs fine tuning.
715 2006-08-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
717 * TODO: Modified file.
725 * src/gfile.c: implemented g_dir_*, unix version.
727 2006-08-27 Gonzalo Paniagua Javier <gonzalo@ximian.com>
730 * test/Makefile.am: Modified file.
732 * src/Makefile.am: Modified file.
734 * src/gpattern.c: implemented the 3 pattern matching functions used.
736 * test/ptrarray.c: fix the compare function to work with qsort.
741 * src/gpath.c: made valgrind happy.
743 2006-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
747 * src/gfile.c: implemented g_file_test. Changed the default mask to
750 2006-08-26 Raja R Harinath <rharinath@novell.com>
752 * src/sort.frag.h (digit): Declare here based on externally
753 provided typedef 'list_node'.
754 (MAX_DIGITS): Use 'sizeof (list_node)'.
755 * src/gslist.c (list_node): Declare instead of 'digit'.
756 * src/glist.c: Likewise.
758 * test/slist.c (verify_sort): Verify the length of the list too.
759 (test_slist_sort): Free the correct list.
760 * test/list.c: Likewise.
761 * src/sort.frag.h (MAX_DIGITS): Rename from N_DIGITS.
762 (combine_sort): Change 'max_pos' argument to more natural
764 (increment): Likewise. Use 'n_digits' to avoid reading at an
765 offset that hasn't been initialized.
766 (do_sort): Remove memset.
768 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
773 * src/gfile.c: implement g_file_open_tmp.
775 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
779 * src/gdate.c: New file.
780 * src/gfile.c: New file.
781 * src/Makefile.am: implemented g_file_get_contents and
785 * test/file.c: New file.
786 * test/Makefile.am: tests for the above.
788 2006-08-26 Raja R Harinath <rharinath@novell.com>
790 * src/sort.frag.h: Add copyright notice and some explanation.
791 (increment): Remove null check.
792 (combine_digits): Add 'list' argument to seed the summation.
793 (do_sort): Use the empty or singleton tail as the seed, rather
794 than calling 'increment'.
796 2006-08-25 Raja R Harinath <rharinath@novell.com>
798 * TODO: Remove 'List' entries.
799 * src/Makefile.am (libeglib_la_SOURCES): Add sort.frag.h.
800 * src/sort.frag.h: New. Implements a "generic" bottom-up "counting"
801 mergesort that works both on singly- and doubly-linked lists.
802 * src/gslist.c (g_slist_sort): Use it.
803 * src/glist.c (g_list_sort): Likewise.
804 * src/glib.h (g_slist_sort, g_list_sort): Declare.
805 * test/slist.c, test/list.c: Add basic testcases.
807 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
809 * src/gspawn.c: propagate errors from reads.
810 * src/gpath.c: an empty PATH is like a NULL one.
812 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
820 * src/Makefile.am: implemented GTimer.
822 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
829 * src/Makefile.am: initial implentation of g_spawn_command_line_sync.
830 Still need better error handling, but works for the most part.
832 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
834 * src/garray.c: grow faster so that the 'big' test does not crawl.
836 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
839 * src/gqueue.c: plugged leaks.
841 2006-08-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
844 * src/gpath.c: when PATH is not defined, the current dir is used.
847 2006-08-25 Alp Toker <alp@atoker.com>
849 * src/gstr.c: g_strv_length() should return guint, not gint
850 * src/glib.h: Add g_strv_length() prototype
852 2006-08-24 Miguel de Icaza <miguel@novell.com>
854 * src/gpath.c (g_get_home_dir, g_get_tmp_dir, g_get_user_name,
855 g_get_prgname, g_set_prgname): implemented.
859 * src/gpath.c (g_get_current_dir): Implement.
861 (g_find_program_in_path, g_path_is_absolute): implement.
863 Add g_path_get_dirname, g_path_get_basename
865 * src/gpath.c: Path routines
867 2006-08-23 Miguel de Icaza <miguel@novell.com>
869 * src/gerror.c: Implement.
871 * src/glist.c (g_list_sort): Remove routine instead of hoping that
872 it wont crash when we run it.
874 2006-08-23 Raja R Harinath <rharinath@novell.com>
876 * src/glist.c (g_list_insert_before): Avoid non-head declaration.
878 * test/slist.c (test_slist_insert_before): Add.
879 * src/gslist.c (g_slist_insert_before): Append if 'sibling' is null.
881 * test/list.c (test_list_insert_before): Add test for return value
882 of g_list_insert_before.
883 * test/Makefile.am (test_eglib_LDADD): Refer to the .la file so as
884 to rebuild test if eglib changes.
885 * src/glist.c (new_node, disconnect_node): New helpers that
886 maintain doubly-linked list invariants.
887 (g_list_prepend, g_list_append): Express in terms of new_node.
888 (g_list_insert_before): Likewise. Fix return value when inserting
889 in the middle of the list.
890 (g_list_concat): Reorganize to make more compact.
891 (g_list_nth): Likewise.
892 (g_list_nth_data): Don't segfault if 'n' is too large.
893 (g_list_remove): Rewrite using _find and disconnect_node.
894 (g_list_remove_link): Don't traverse list: use disconnect_node.
895 (g_list_insert_sorted): Rewrite to make more compact. Use new_node.
896 (g_list_copy): Likewise.
897 (_prepend, _concat): Remove.
898 * src/gslist.c (insert_after, find_prev, find_prev_link):
900 (g_slist_copy): Simplify slightly, using insert_after.
901 (g_slist_concat): Reorganize to make more compact.
902 (g_slist_find): Likewise.
903 (g_slist_insert_sorted): Likewise.
904 (g_slist_remove): Rewrite using find_prev.
905 (g_slist_remove_link): Rewrite using find_prev_link.
906 (g_slist_remove_all, g_slist_insert_before): New.
908 2006-08-21 Duncan Mak <duncan@a-chinaman.com>
910 * src/gqueue.c: GQueue implementation.
911 * src/glib.h: Add prototypes.
912 * src/Makefile.am (libeglib_la_SOURCES): Include gqueue.c.
915 * test/Makefile.am (SOURCES):
916 * test/tests.h (DEFINE_TEST_GROUP_INIT_H): add tests for GQueue.
918 2006-08-21 Aaron Bockover <abockover@novell.com>
920 * src/gstr.c: fixed bug/invalid read/write on malloc-only case (no
921 realloc/delimiter token not found); use memcpy instead of strncpy for
924 * test/test.c (run_group): allow running specific tests under a group;
925 added copied g_strsplit/g_strfreev from EGlib source as eg_strsplit
926 and eg_strfreev to avoid performance skews in the driver
928 * test/driver.c: allow user-specified group name to contain specific
929 test to run under the group as 'group_name:test1,test2,...testN'
931 * test/string-util.c: Added more g_strsplit tests
939 * test/hashtable.c: make test names shorter (no need to prefix with
940 the group since it runs under the group)
942 2006-08-21 Miguel de Icaza <miguel@novell.com>
944 * src/glib.h (g_hash_table_new_full): Add missing prototype.
945 Replace g_free(x) with plain free, so it can be used as a function
949 * src/ghashtable.c: Add rehashing.
951 * test/hashtable.c: Add a bunch of extra tests.
953 * src/goutput.c: Fix g_log so it actually formats the data.
955 * src/ghashtable.c (g_hash_table_new): The glib test suite
956 uncovered a bunch of bugs, the g_hash_table_new should actually
959 (g_hash_table_remove, g_hash_table_foreach_remove): Fixed bugs
962 2006-08-20 Aaron Bockover <abockover@novell.com>
964 * src/gmisc.c: added g_setenv, g_getenv, g_unsetenv
966 * src/gstr.c: added g_snprintf, g_sprintf, g_fprintf, g_printf
968 * src/glib.h: added macros for above va_args printf functions
970 * src/Makefile.am: added gmisc.c
972 * test/whats-implemented: script to see what needs to be implemented
974 2006-08-20 Chris Toshok <toshok@ximian.com>
976 * test/array.c (test_array_big): add a test from the glib
979 2006-08-20 Chris Toshok <toshok@ximian.com>
981 * test/tests.h: add array tests to the mix.
983 * test/array.c: a few array tests.
985 * src/glib.h: add array prototypes.
987 * src/garray.c: initial array foo.
989 * test/Makefile.am (SOURCES): add array.c
991 * src/Makefile.am (libeglib_la_SOURCES): add garray.c
993 2006-08-19 Aaron Bockover <abockover@novell.com>
995 * src/gstring.c: optimize and generalize reallocation by providing
996 a GROW_IF_NECESSARY macro, do not use strcpy/strcat as they are
997 very, very slow; GString is now much closer to GLib's implementation
998 in terms of performance
1000 * test/string.c: added speed-specific tests to beat on reallocation code
1002 * test/test-both: run make if the test drivers don't exist
1004 2006-08-19 Jonathan Chambers <jonathan.chambers@gmail.com>
1006 * src/gmodule.c: Add gmodule support for windows and fix
1007 windows build. Contribution is licensed as MIT/X11.
1009 2006-08-19 Aaron Bockover <abockover@novell.com>
1011 * test/driver.c: Added --debug mode that allows for testing all paths
1012 of the driver without actually running real tests; runs only the 'fake'
1013 test, which does nothing; useful for running the driver through valgrind
1017 * test/fake.c: Added fake test for valgrinding the driver
1019 * test/ptrarray.c: update sort test
1021 2006-08-19 Aaron Bockover <abockover@novell.com>
1023 * test/test-both: added --help
1025 2006-08-19 Aaron Bockover <abockover@novell.com>
1027 * test/driver.c: added -n mode to show only raw global run times,
1028 which is useful for scripts (test-both --speed-compare)
1030 * test/test-both: added --speed-compare mode
1032 * test/README: updated with information on --speed-compare
1034 2006-08-19 Aaron Bockover <abockover@novell.com>
1036 * test/test.c: do not print times if -t is not passed
1038 * test/driver.c: removed use of GList from the driver to avoid skews due
1039 to performance differences between GLib and EGLib
1041 2006-08-19 Aaron Bockover <abockover@novell.com>
1043 * test/test.c: Perform iterations at the test level, only output one
1044 report for all iterations of tests in a group to produce more usable
1045 output; add timing for the tests and group; added get_timestamp for
1048 * test/test.h: Removed run_test as it should only be called from
1049 run_group, added get_timestamp
1051 * test/Makefile.am: Added -DDRIVER_NAME
1053 * test/test-both: simple script to run both drivers with the same options
1055 * test/driver.c: Iterations are now run at the test level, show a global
1056 status (OK/FAIL) indicator
1058 * test/README: Updated
1060 * configure.ac: Renamed from configure.in as configure.in naming
1061 convention is deprecated in favor of configure.ac
1063 * autogen.sh: s/configure.in/configure.ac/
1065 2006-08-19 Miguel de Icaza <miguel@novell.com>
1067 * Makefile.am: Removed MAINTAINERCLEANFILES that was too
1068 aggresive, it failed make distcheck and the resulting tarball was
1071 * src/glib.h: remove the various GPOINTER_TO_*, G*_TO_POINTER,
1072 GSIZE_FORMAT macros, and move them into src/eglib-config.h
1074 Moved also gssize and gsize to be arch specific. This should fix
1075 the 32/64 problems that Jon Chambers reported.
1077 * configure.in: test for pointer size, define the various values
1078 depending on 32 vs 32/64 worlds, might need further porting in the
1081 Change package name to eglib
1083 * test/slist.c, test/list.c, test/hashtable.c: Update tests to use
1086 * test/string-util.c: fix leak for valgrind tests.
1088 * test/tests.h: New size test, for testing datatypes.
1090 * test/sizes.c: New tests.
1092 2006-08-19 Aaron Bockover <abockover@novell.com>
1094 * test/README: Added quick guide on adding new tests/groups to the
1095 driver and some examples on how to perform various tests with the driver
1097 2006-08-18 Aaron Bockover <abockover@novell.com>
1099 * test/driver.c: Added getopt support and code timing, among other
1100 nice features to make testing/profiling easier
1102 * test/test.c: Add support for suppressing output (quiet) and
1103 define RESULT, FAILED, and OK
1106 * src/glist.c: Added g_list_nth_data implementation
1109 * test/string-util.c:
1113 * test/list.c: Use RESULT, FAILURE, and OK for tests
1115 2006-08-18 Miguel de Icaza <miguel@novell.com>
1117 * src/gstring.c (g_string_truncate): Implement truncate.
1118 (g_string_prepend): implement.
1120 Fix various bugs uncovered by new tests.
1122 * src/glib.h: introduce gssize type, the signed one. Important.
1124 * src/eglib-config.h (G_OS_): Add the G_OS_UNIX and G_OS_WIN32
1125 defines that we can use to check on the host OS.
1127 2006-08-18 Aaron Bockover <abockover@novell.com>
1130 * test/driver.c: Support pass/fail logging on tests to show group report
1132 2006-08-18 Aaron Bockover <abockover@novell.com>
1135 * test/test.h: Added result() to be used in place of g_strdup_printf(),
1136 it's shorter to write and allows the duped string to be freed safely;
1137 added license header to file
1139 * test/driver.c: Added license header to file
1141 * test/string-util.c:
1144 * test/list.c: Use result() in place of g_strdup_printf(), it's nicer
1146 2006-08-18 Aaron Bockover <abockover@novell.com>
1148 * src/gptrarray.c: Implemented g_ptr_array_sort
1150 * test/ptrarray.c: Added sort test
1152 * test/driver.c: Added --help; support running N iterations and allow
1153 selecting which test groups to run; uses the test group table in tests.h
1155 * test/tests.h: Added group table
1158 * test/test.c: Using a Group structure and table, removed run_groups
1159 as we only need run_group now
1161 * test/slist.h: Removed, not needed, tests/groups defined in tests.h
1163 2006-08-18 Miguel de Icaza <miguel@novell.com>
1165 * src/unicode.c: New file, to host unicode code, it will throw as
1166 this code is no longer used in the Mono runtime anyways.
1168 * src/glib.h: Use stdint.h types, a lot of the good stuff is
1171 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
1173 * src/glist.c (g_list_remove, g_list_remove_link): Implemented.
1175 * src/gslist.c (g_slist_remove): Remember to set the next pointer
1176 to NULL when the item to remove is the first item in the list.
1178 2006-08-18 Duncan Mak <duncan@a-chinaman.com>
1180 * src/glist.c: Implemented. Missing remove,
1181 remove_link and insert_before.
1183 * test/list.c: Tests for GList.
1185 2006-08-17 Aaron Bockover <abockover@novell.com>
1187 * src/gptrarray.c: Implemented g_ptr_array_remove and
1188 g_ptr_array_remove_index
1190 * test/other: Removed, rewritten in Makefile.am
1192 * test/Makefile.am: Build test-eglib against local eglib and
1193 test-glib against GLib 2.0 (replaces 'other')
1195 * test/ptrarray.c: Added tests for g_ptr_array_remove and
1196 g_ptr_array_remove_index
1198 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1200 * src/gslist.c: Added MIT license.
1201 (g_slist_insert_sorted): Forgot the case where the data is
1202 appended to the end of the list.
1204 * test/slist.c (test_slist_insert_sorted): Fix the test.
1206 2006-08-17 Aaron Bockover <abockover@novell.com>
1208 * src/gptrarray.c: Added g_ptr_array_set_size implementation
1210 * test/ptrarray.c: Added test for g_ptr_array_set_size
1212 2006-08-17 Miguel de Icaza <miguel@novell.com>
1214 * src/glib.h: A handful of extra macros
1216 * configure.in, src/eglib-config.h.in: Set some system-specific
1217 settings that are probed at configure time.
1219 2006-08-17 Aaron Bockover <abockover@novell.com>
1221 * src/gptrarray.c: Added beginnings of GPtrArray (alloc, free, add, iterate)
1223 * src/glib.h: Added GPtrArray signatures
1225 * src/Makefile.am: Added gptrarray.c to build
1230 * test/Makefile.am: Add ptrarray tests for available functionality
1232 2006-08-17 Aaron Bockover <abockover@novell.com>
1235 * test/test.c: Added group iterator/test driver functionality
1237 * test/driver.c: Added groups to run using new test functionality
1241 * test/string-util.h: Test group definitions for string util/hashtable
1245 * test/hash.c: Added test definition table
1247 * test/Makefile.am: Added -Wall -Werror -D_FORTIFY_SOURCE=2
1249 * src/gstr.c: Added implementation for g_str_has_prefix, g_str_has_suffix
1251 * src/glib.h: Added missing function signatures
1253 * src/Makefile.am: added -D_FORTIFY_SOURCE=2
1255 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1257 * src/gslist.c (g_slist_remove_link): I misread the function
1258 signature. Re-implemented.
1259 (g_slist_delete_link): Implemented.
1260 (g_slist_reverse): Implemented.
1261 (g_slist_insert_sorted): Implemented.
1263 2006-08-17 Duncan Mak <duncan@a-chinaman.com>
1265 * src/gslist.c (g_slist_find):
1268 (g_slist_remove_link): Implemented.
1270 * test/slist.c: Tests for GSList.
1272 2006-08-17 Raja R Harinath <harinath@gmail.com>
1274 * src/gslist.c (g_slist_free_1): New. Free a single list node.
1275 (g_slist_free): Use it to free the list nodes. Don't free the
1276 data, since the list doesn't own it.
1277 (g_slist_append): Convert into a one-liner.
1278 (g_slist_foreach): Remove redundant null check.
1279 (g_slist_last): Actually return the last node.
1280 (g_slist_copy): Simplify.
1281 * src/gslist.h (g_slist_free_1): Add.
1283 2006-08-16 Duncan Mak <duncan@a-chinaman.com>
1287 * src/gslist.h: First attempt at implementing GSList, incomplete.
1289 * src/Makefile.am (libeglib_la_SOURCES): add gslist.c
1290 * src/glib.h: Add GFunc definition. #include the new gslist.h.
1292 2006-08-16 Miguel de Icaza <miguel@novell.com>
1294 * src/Makefile.am: Added -Wall,-Werror, corrected lots of
1297 * src/gstring.c: Gstring implementation.
1299 * test/str.c (test_gstring): string tests.
1301 2006-08-16 Aaron Bockover <abockover@novell.com>
1303 * src/gstr.c: Added g_strsplit implementation
1305 * test/driver.c: Run the split test
1307 * test/str.c: Added a test for g_strsplit
1311 * test/Makefile.am: Added MAINTAINERCLEANFILES
1313 2006-08-16 Miguel de Icaza <miguel@novell.com>
1315 * src/gouput.c: Implement some output routines, update missing
1318 * test: Add test driver, and initial tests.
1320 2006-08-15 Miguel de Icaza <miguel@novell.com>
1322 * src/ghashtable.c: Implement most of this, it is completely
1323 untested at this point.