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