Add macros wrapping the gcc alloc_size function attribute. (#523019,
[platform/upstream/glib.git] / ChangeLog
1 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
2
3         * glib/gmacros.h: Add macros wrapping the gcc alloc_size 
4         function attribute.  (#523019, Rodrigo Moya)
5
6         * glib/gmem.h: 
7         * glib/gslice.h:
8         * glib/gstrfuncs.h: Use the new attribute where appropriate.
9
10 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
11
12         * glib/glibintl.h:
13         * glib/gstrfuncs.c:
14         * glib/gutils.c: Simple fixes to help building GLib on 
15         embedded systems without NLS.  (#524350, Peter Kjellerstedt)
16
17 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
18
19         * glib/ghash.c: Fix the build with -DG_DISABLE_ASSERT.
20         (#525060, Arfrever Frehtes Taifersar Arahesis)
21
22 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
23         
24         * glib/gthread.h: Replace occurrances of G_GNUC_PRETTY_FUNCTION
25         by G_STRFUNC.  (#524344, Peter Kjellerstedt)
26
27 2008-03-30  Matthias Clasen  <mclasen@redhat.com>
28
29         * glib/gtestutils.c: Fix a doc typo. (#524742, Hiroyuki Ikezoe)
30
31 2008-03-22  Claudio Saavedra  <csaavedra@gnome.org>
32
33         Bug 523877 – gbookmarkfile: avoid using g_string_append_printf() and
34         other optimizations
35
36         * glib/gbookmarkfile.c: (bookmark_metadata_dump),
37         (bookmark_item_dump), (g_bookmark_file_dump), (expand_exec_line):
38         Replace all calls to g_string_append_printf with g_strconcat () or
39         g_string_append () where appropriate, to reduce the file creation time.
40         Also, use g_string_sized_new () with an appropriate buffer size instead
41         of g_string_new (NULL), to reduce time spent in memory reallocation.
42         (#523877, Claudio Saavedra, Emmanuele Bassi)
43
44 2008-03-22  Emmanuele Bassi  <ebassi@gnome.org>
45
46         Bug 518160 - replace two g_strdup_printf calls in GBookmarkFile
47
48         * glib/gbookmarkfile.c (is_element_full): Compare the fragments
49         instead of building two strings; this avoids two g_strdup_printf()
50         per namespaced element enountered. (#518160, Felix Riemann)
51
52 2008-03-20  Alexander Larsson  <alexl@redhat.com>
53
54         * configure.in:
55         Final fixes for struct statfs.f_fstypename checks (OpenBSD). (#521045)
56         Patch from ephraim_owns@hotmail.com
57
58 2008-03-19  Tor Lillqvist  <tml@novell.com>
59
60         Bug 523298 - win_iconv can't convert from UTF-8 to GB18030 (or vice versa)
61
62         * glib/win_iconv.c: Fixes for code page 54936 (GB18030)
63         (mbtowc_flags): New function. Check if a code page is one of those
64         for which the dwFlags parameter to MultiByteToWideChar() must be
65         zero. Return 0 or MB_ERR_INVALID_CHARS.
66         (mbcs_mblen): New function for multi-byte (more than two bytes for
67         some characters) code pages. Only handles 54936 for now.
68         (make_csconv): Use it for 54936.
69         (kernel_mbtowc): Use mbtowc_flags().
70
71 2008-03-18  Sebastian Dröge  <slomo@circular-chaos.org>
72
73         Bug 522292 - Gives warnings in glib/gutils.h with GCC in C99 mode
74
75         * glib/gutils.h: Use "__attribute__ ((__gnu_inline__))" for inlining
76         if either __GNUC_STDC_INLINE__ or __GNUC_GNU_INLINE__ are defined. In
77         gcc version prior to 4.3 no correct C99-inline was implemented which
78         has semantic differences to GNU inline.
79
80 2008-03-16  Tor Lillqvist  <tml@novell.com>
81
82         * configure.in: Don't bother defining Autoconf variables for
83         glib.def, gmodule.def, gobject.def and gthread.def when this can
84         be handled easily in */Makefile.am which are the only files that
85         use them. Remove also TESTGMODULE_EXP which isn't used at all.
86
87         * glib/Makefile.am: Corrsponding change.
88         
89 2008-03-14  Michael Natterer  <mitch@imendio.com>
90
91         * glib/*.h: make it possible to disable single-file includes by
92         defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
93         Approved by Tim Janik.
94
95         * glib/glib.h: include <glib/gslice.h>.
96
97         * glib/gi18n.h
98         * glib/gi18n-lib.h
99         * glib/gprintf.h: include <glib.h> so the above works when these
100         files are included without including <glib.h> first.
101
102 2008-03-14  Alexander Larsson  <alexl@redhat.com>
103
104         * configure.in:
105         Add required includes for f_fstypename member check.
106
107 2008-03-14  Alexander Larsson  <alexl@redhat.com>
108
109         * configure.in:
110         Added checks for FEN (Solaris  File Event Notification)
111
112 2008-03-13  Tor Lillqvist  <tml@novell.com>
113
114         * glib-zip.in: Add lib/gio-2.0.lib and lib/gio-2.0.def.
115
116 2008-03-12  Tor Lillqvist  <tml@novell.com>
117
118         * configure.in: Expand gio/win32/Makefile.
119
120 2008-03-12  Matthias Clasen <mclasen@redhat.com>
121
122         * configure.in: Bump version to 2.17.0
123
124         * ChangeLog.pre-2-16: rotate ChangeLog
125         
126         * === branch for 2.16 ===