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