History log of /external/bluetooth/glib/glib/gmacros.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ed6c7f0e3226a6e6ead09a672c67fef55743e073 18-Jan-2009 Matthias Clasen <matthiasc@src.gnome.org> Use offsetof instead of __builtin_offsetof, for icc's sake. Proposed by

* glib/gmacros.h (G_STRUCT_OFFSETOF): Use offsetof instead of
__builtin_offsetof, for icc's sake. Proposed by Hrvoje Niksic.



svn path=/trunk/; revision=7811
/external/bluetooth/glib/glib/gmacros.h
0ffa76b9e9d703f926cf5495bdacb17d3b21f9aa 29-Oct-2008 16:11:14 Tim Janik <timj@gtk.org> added G_PASTE() and G_STATIC_ASSERT(), based on patches by Christian

2008-10-29 16:11:14 Tim Janik <timj@gtk.org>

* glib/gmacros.h: added G_PASTE() and G_STATIC_ASSERT(), based on
patches by Christian Persch and Christian Dywan. Fixes:
Bug 558381 - Add support for compile time assertions


svn path=/trunk/; revision=7633
/external/bluetooth/glib/glib/gmacros.h
0b890c62986c23345de43882062c557bc1471fef 10-Sep-2008 Matthias Clasen <mclasen@redhat.com> Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to

2008-09-09 Matthias Clasen <mclasen@redhat.com>

Bug 551228 – G_STRFUNC on recent Sun compiler should be expanded to
__func__ rather than '???'

* glib/gmacros.h: Don't use glibconfig.h defines in gmacros.h,
as the comment up top says. Instead look at __STDC_VERSION__.
Problem reported by Lin Ma.


svn path=/trunk/; revision=7451
/external/bluetooth/glib/glib/gmacros.h
8013b215cdcc5d3bd77083a3c8427418e27f396e 11-Jun-2008 Sebastian Dröge <sdroege@src.gnome.org> Bug 531900 – Use __builtin_offsetof for G_STRUCT_OFFSET if building
with gcc 4.0 or newer
* glib/gmacros.h: Use __builtin_offsetof for G_STRUCT_OFFSET if
building with gcc 4.0 or newer.

svn path=/trunk/; revision=6996
/external/bluetooth/glib/glib/gmacros.h
0782d697e5b2809f754b4416ffa7c1ae3a82c686 22-May-2008 10:49:37 Tim Janik <timj@imendio.com> implement G_STMT_START and G_STMT_END with do{}while(0), which is believed

2008-05-22 10:49:37 Tim Janik <timj@imendio.com>

* glib/gmacros.h: implement G_STMT_START and G_STMT_END with
do{}while(0), which is believed to be widely portable, fixes:
Bug 519026 - G_STMT_START/G_STMT_END test a non-existent preprocessor symbol



svn path=/trunk/; revision=6922
/external/bluetooth/glib/glib/gmacros.h
e0aa9d8a6135d404fe1ff60ba6858599e85edf98 05-May-2008 Michael Natterer <mitch@imendio.com> #define __GLIB_H_INSIDE__ around including everything.

2008-05-05 Michael Natterer <mitch@imendio.com>

* glib/glib.h: #define __GLIB_H_INSIDE__ around including
everything.

* glib/*.h: check for that define instead of __G_LIB_H__ if
G_DISABLE_SINGLE_INCLUDES is defined.

* glib/gdatasetprivate.h: #include <glib.h> instead of
<glib/gdataset.h>


svn path=/trunk/; revision=6875
/external/bluetooth/glib/glib/gmacros.h
2af49e60a13b8d2a7aba47cd6af70217d0e263e5 31-Mar-2008 Matthias Clasen <mclasen@redhat.com> Add macros wrapping the gcc alloc_size function attribute. (#523019,

2008-03-30 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h: Add macros wrapping the gcc alloc_size
function attribute. (#523019, Rodrigo Moya)

* glib/gmem.h:
* glib/gslice.h:
* glib/gstrfuncs.h: Use the new attribute where appropriate.



svn path=/trunk/; revision=6781
/external/bluetooth/glib/glib/gmacros.h
f4bb21aa1d405fd11043a03e0962358eb0f42a5e 14-Mar-2008 Michael Natterer <mitch@imendio.com> make it possible to disable single-file includes by defining

2008-03-14 Michael Natterer <mitch@imendio.com>

* glib/*.h: make it possible to disable single-file includes by
defining G_DISABLE_SINGLE_INCLUDES when building against GLib.
Approved by Tim Janik.

* glib/glib.h: include <glib/gslice.h>.

* glib/gi18n.h
* glib/gi18n-lib.h
* glib/gprintf.h: include <glib.h> so the above works when these
files are included without including <glib.h> first.


svn path=/trunk/; revision=6713
/external/bluetooth/glib/glib/gmacros.h
7bfc60de2e83b263c35e645d4251bc55eaefec00 28-Jan-2008 Matthias Clasen <mclasen@redhat.com> Deprecate G_GNUC_(PRETTY)_FUNCTION.

2008-01-27 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h: Deprecate G_GNUC_(PRETTY)_FUNCTION.



svn path=/trunk/; revision=6389
/external/bluetooth/glib/glib/gmacros.h
6cf97938ec13b7bad389b98b1d2440679d774d3d 22-Nov-2006 Tim Janik <timj@gtk.org> added G_GNUC_MAY_ALIAS, suggested by Mathias Hasselmann in bug #335341,

Wed Nov 22 16:09:13 2006 Tim Janik <timj@gtk.org>

* glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias
Hasselmann in bug #335341, fixes bug #335853.
/external/bluetooth/glib/glib/gmacros.h
00f952f8e85527988a6171a7d9617af14c0ff5a2 04-Dec-2005 Matthias Clasen <mclasen@redhat.com> Add a macro to make gcc warn if a function result is ignored. (#145466,

2005-12-04 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h (G_GNUC_WARN_UNUSED_RESULT): Add a macro
to make gcc warn if a function result is ignored. (#145466,
Arjan van de Ven, Alex Larsson)

* glib/gmem.h: Add the new attribute to g_realloc and
g_try_realloc.
/external/bluetooth/glib/glib/gmacros.h
6796398522e8f6fdf2019cad1b37a9e5ce1fdecd 30-Nov-2005 Matthias Clasen <mclasen@redhat.com> Fix G_STMT_START / G_STMT_END on Solaris. (#321972, Andrew Paprocki)

2005-11-28 Matthias Clasen <mclasen@redhat.com>

Fix G_STMT_START / G_STMT_END on Solaris. (#321972,
Andrew Paprocki)

* configure.in: Check whether do { } while (0) works.

* glib/gmacros.h: Use do { } while (0) for G_STMT_START /
G_STMT_END if it works.
/external/bluetooth/glib/glib/gmacros.h
6aac5ce82cb8dc18602b2465c07d537e0da9d9a2 08-Mar-2005 Matthias Clasen <mclasen@redhat.com> Define G_GNUC_NULL_TERMINATED. (#164706, Marc Meissner)

2005-03-08 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h: Define G_GNUC_NULL_TERMINATED.
(#164706, Marc Meissner)

* glib/gstrfuncs.h:
* glib/gfileutils.h: Use G_GNUC_NULL_TERMINATED where
appropriate.
/external/bluetooth/glib/glib/gmacros.h
8f0d5d169ea3a667fc7a031b8012e3b9b4cccc1c 29-Nov-2004 Matthias Clasen <mclasen@redhat.com> Define empty for gcc 2.95.

2004-11-29 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h (G_GNUC_MALLOC): Define empty for gcc 2.95.

* glib/gmarkup.c (unescape_text_state_after_charref_hash):
Avoid a strndup() here, noticed by Morten Welinder.
/external/bluetooth/glib/glib/gmacros.h
379e87466d0896050e2dec1db5fc1c71393b08a1 28-Nov-2004 Matthias Clasen <mclasen@redhat.com> Mark functions with G_GNUC_MALLOC when appropriate.

2004-11-28 Matthias Clasen <mclasen@redhat.com>

* glib/gconvert.h:
* glib/gkeyfile.h:
* glib/gmem.h:
* glib/gstrfuncs.h:
* glib/gunicode.h:
* glib/gutils.h: Mark functions with G_GNUC_MALLOC when appropriate.

* glib/glib.symbols: Add G_GNUC_MALLOC annotations.

* glib/gmacros.h (G_GNUC_MALLOC): Add a macro for
__attribute__((__malloc__)). (#61780)
/external/bluetooth/glib/glib/gmacros.h
3156c8e9cf52d1dbeb9fa545a0d32a77e3d45a8c 10-Aug-2004 Matthias Clasen <mclasen@redhat.com> Remove G_GNUC_INTERNAL from here. Check whether the visibility attribute

2004-08-10 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h: Remove G_GNUC_INTERNAL from here.
* configure.in: Check whether the visibility attribute
works and define G_HAVE_GNUC_VISIBILITY and
G_GNUC_INTERNAL in glibconfig.h correspondingly.
/external/bluetooth/glib/glib/gmacros.h
e02c68bef040a6d9fdb2484f9fa25a2a7d51c1c7 09-Aug-2004 Matthias Clasen <maclas@gmx.de> Define empty if gcc is too old.

Mon Aug 9 17:37:56 2004 Matthias Clasen <maclas@gmx.de>

* glib/gmacros.h (G_GNUC_INTERNAL): Define empty if gcc is too old.
/external/bluetooth/glib/glib/gmacros.h
f1024215a4c13971a1778334b5093273f22e53b4 02-Aug-2004 Matthias Clasen <mclasen@redhat.com> Add a G_GNUC_INTERNAL macro to mark function declarations as internal and

2004-08-02 Matthias Clasen <mclasen@redhat.com>

* glib/gmacros.h: Add a G_GNUC_INTERNAL macro to mark function
declarations as internal and avoid PLT indirections for
them. (#145465, Arjan van de Ven)

* glib/gunicodeprivate.h:
* glib/gthreadinit.h:
* glib/gmessages.h:
* glib/gdebug.h:
* glib/gconvert.c: Use G_GNUC_INTERNAL for _g_charset_get_aliases(),
_g_debug_init(), _g_log_fallback_handler(), _g_mem_thread_init(),
_g_messages_thread_init(), _g_convert_thread_init(),
_g_rand_thread_init(), _g_main_thread_init(), _g_atomic_thread_init(),
_g_mem_thread_private_init(), _g_messages_thread_private_init(),
_g_utf8_normalize_wc() and _g_unichar_combining_class().

* glib/gatomic.c: Include gthreadinit.h here to see the declaration
for _g_atomic_thread_init().
/external/bluetooth/glib/glib/gmacros.h
2f11709f3bdeadf9fed1db0bc256936fa6ff283f 14-Mar-2004 Owen Taylor <otaylor@redhat.com> Add __extension__ to G_STMT_START to quite gcc -pedantic. (#131899,

Sat Mar 13 23:30:53 2004 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h (G_STMT_START): Add __extension__
to G_STMT_START to quite gcc -pedantic. (#131899,
Olivier Biot)
/external/bluetooth/glib/glib/gmacros.h
db16c1be2bdb0923405f2bb59ce21ff084691cf1 11-Dec-2003 Manish Singh <yosh@gimp.org> change #elif with no expression to #else in G_STRFUNC definition. Thanks

Thu Dec 11 10:31:21 2003 Manish Singh <yosh@gimp.org>

* glib/gmacros.h: change #elif with no expression to #else in
G_STRFUNC definition. Thanks to Damien Carbery, fixes #129101.
/external/bluetooth/glib/glib/gmacros.h
5d49a7caf7e10a69fb25159f51b3eebdb92f774f 27-Nov-2003 Tim Janik <timj@gtk.org> handle NULL arguments gracefully.

Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>

* glib/gstrfuncs.c (g_strconcat): handle NULL arguments
gracefully.

* glib/gmacros.h: defined G_STRFUNC, which (pretty) prints the
current function (since G_STRLOC and G_GNUC_*FUNCTION became
unusable with gcc-3.0).
/external/bluetooth/glib/glib/gmacros.h
614e5ed63a6ea732ed313f1220f9ef6d34b0cbfb 28-May-2003 Owen Taylor <otaylor@redhat.com> __PRETTY_FUNCTION__ was made a non-token before gcc-3.0.0 for C++. (Fix

Tue May 27 19:56:35 2003 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h: __PRETTY_FUNCTION__ was made a non-token
before gcc-3.0.0 for C++. (Fix from Martin Kretzschmar,
#113797)
/external/bluetooth/glib/glib/gmacros.h
96670b2085ac958b2e5ac9617cab04fb61f053aa 12-Dec-2002 Manish Singh <yosh@gimp.org> pull in trio if host printf doesn't have a known way of printing 64-bit

Thu Dec 12 14:58:55 2002 Manish Singh <yosh@gimp.org>

* configure.in: pull in trio if host printf doesn't have a known
way of printing 64-bit ints.

* glib/gmacros.h: remove extra whitespace at the end

* glib/gscanner.c (g_scanner_unexp_token): use G_GUINT64_FORMAT
instead of hardcoding "%llu"

* tests/testglib.c: remove obsolete conditionals using G_HAVE_GINT64,
we always have it now.

* tests/type-test.c: same as above, and for G_G[U]INT64_FORMAT as
well.
/external/bluetooth/glib/glib/gmacros.h
00a9d30b67ed0e5e4a58201eca85214d5eeeae86 27-Nov-2002 Matthias Clasen <matthiasc@src.gnome.org> Use G_LIKELY without surrounding parentheses in g_assert() and

* glib/gmessages.h: Use G_LIKELY without surrounding parentheses
in g_assert() and g_return_[val]_if_fail() so that we always trigger
the gcc warning about "assignment used as truth value".

* glib/gmacros.h: Always put parentheses in G_LIKELY and G_UNLIKELY.
/external/bluetooth/glib/glib/gmacros.h
b75a34b721862435b4a72cc920eae10d063d019c 26-Nov-2002 Matthias Clasen <matthiasc@src.gnome.org> Fix the non-gcc-3.x definitions of G_LIKELY and G_UNLIKELY. (Reported by

* glib/gmacros.h: Fix the non-gcc-3.x definitions of G_LIKELY
and G_UNLIKELY. (Reported by Dan Mills)
/external/bluetooth/glib/glib/gmacros.h
827f3c4fa495135ce19a0e5ce2f0a0f164805b7c 25-Nov-2002 Matthias Clasen <matthiasc@src.gnome.org> Remove the (no longer effective) empty if-branch.

* glib/gmessages.h (g_assert):
(g_return_if_fail):
(g_return_val_if_fail): Remove the (no longer effective) empty
if-branch.

* glib/gmacros.h: Change the definition of G_LIKELY, so that
g_return_if_fail() and friends still trigger a gcc warning if
the expr is an assignment.
/external/bluetooth/glib/glib/gmacros.h
e62c0f4d3606ba13de5f382d674ef7a55330545b 22-Nov-2002 Owen Taylor <otaylor@redhat.com> Remove broken G_HIDDEN_SYMBOL definition which wasn't supposed to be

Fri Nov 22 09:39:09 2002 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h: Remove broken G_HIDDEN_SYMBOL
definition which wasn't supposed to be committed
at all.
/external/bluetooth/glib/glib/gmacros.h
7d20e0c33ec27f00aea02f38da5151917a13a085 21-Nov-2002 Owen Taylor <otaylor@redhat.com> Add G_GNUC_DEPRECATED. (Tom Tromey, #87969)

Thu Nov 21 14:09:44 2002 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h: Add G_GNUC_DEPRECATED. (Tom Tromey,
#87969)
/external/bluetooth/glib/glib/gmacros.h
dc645ce354f06c93f982a0177951c9f98627d751 20-Nov-2002 Matthias Clasen <matthiasc@src.gnome.org> Use G_LIKELY. (#69022)

* glib/gmessages.h (g_return_if_fail):
(g_return_val_if_fail): Use G_LIKELY. (#69022)

* glib/gmacros.h (G_LIKELY):
(G_UNLIKELY): New macros for hinting the compiler about the
expected result of expressions. For gcc 3.x, define these
using __builtin_expect. (#69022)

* glib/tmpl/macros_misc.sgml: Document G_LIKELY, G_UNLIKELY.

* glib/glib-sections.txt: Add G_LIKELY, G_UNLIKELY.
/external/bluetooth/glib/glib/gmacros.h
b19bcd9604fee9251130d109f068fc97e4198fd5 29-Jan-2002 Havoc Pennington <hp@redhat.com> get rid of warning here

2002-01-28 Havoc Pennington <hp@redhat.com>

* glib/gmacros.h: get rid of warning here
/external/bluetooth/glib/glib/gmacros.h
8fece396e5461cba0d68e611588ec7be23f1df40 29-Jan-2002 Owen Taylor <otaylor@redhat.com> Only use __FUNCTION__, __PRETTY_FUNCTION__ for G_GNUC_FUNCTION,

Mon Jan 28 17:56:10 2002 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h: Only use __FUNCTION__, __PRETTY_FUNCTION__ for
G_GNUC_FUNCTION, G_GNUC_PRETTY_FUNCTION, G_STRLOC when __GNUC__ <
3, since in 3.0.3 the semantics of these functions were changed in
an incompatible way. (#69097)
/external/bluetooth/glib/glib/gmacros.h
8c613d7d0910c5294e9a04682300e784b59f2298 06-Dec-2001 Darin Adler <darin@src.gnome.org> Do the same for "pure".

* glib/gmacros.h: Do the same for "pure".
/external/bluetooth/glib/glib/gmacros.h
39e4c5afe8a4f4953e3a2905a51aeaa41a91b598 06-Dec-2001 Matthias Clasen <matthiasc@src.gnome.org> The following patch corrects some function attributes. (#61780)


The following patch corrects some function attributes. (#61780)

* glib/ghash.h (g_int_equal, g_int_hash): These are not const.

* glib/glibintl.h (_glib_gettext): Add G_GNUC_FORMAT(1).

* glib/gmacros.h: Use reserved symbols in function attribute macros.

The following patch avoids manual printf()-format parsing
if a C99-conforming vsnprintf() is available. (#55106)

* acinclude.m4 (AC_FUNC_VSNPRINTF_C99): New macro to test for a
C99 conforming vsnprintf.

* configure.in: Use AC_FUNC_VSNPRINTF_C99.

* glib/gmessages.c (g_printf_string_upper_bound): Use C99 vsnprintf().
/external/bluetooth/glib/glib/gmacros.h
3b6fd34af77405f08633586387c7b27f87ae2a36 23-Aug-2001 Tim Janik <timj@gtk.org> new macro.

Thu Aug 23 16:14:17 2001 Tim Janik <timj@gtk.org>

* glib/gmacros.h (G_GNUC_NO_INSTRUMENT): new macro.
/external/bluetooth/glib/glib/gmacros.h
f94802c2991384a1c0ffe8272139fad7073d637e 05-Aug-2001 Owen Taylor <otaylor@redhat.com> Include stddef.h so that we use the system's definition of NULL. (#54730)

Sun Aug 5 08:25:30 2001 Owen Taylor <otaylor@redhat.com>

* glib/gmacros.h: Include stddef.h so that we use
the system's definition of NULL. (#54730)
/external/bluetooth/glib/glib/gmacros.h
f5c28ce4ab8e8015a1432060b6cfe547183b2f9e 23-Jun-2001 Owen Taylor <otaylor@redhat.com> Changes for 64-bit cleanliness, loosely based on patch from Mark Murnane.

Wed Jun 20 12:00:54 2001 Owen Taylor <otaylor@redhat.com>

Changes for 64-bit cleanliness, loosely based on patch
from Mark Murnane.

* gconvert.c (g_convert/g_convert_with_fallback): Remove
workarounds for since-fixed GNU libc bugs. Minor
doc fix.

* gconvert.[ch]: Change gint to gsize/gssize as
appropriate.

* gconvert.c (g_locale/filename_to/from_utf8): Fix incorrect
computation of bytes_read / bytes_written.

* gfileutils.[ch] (g_file_get_contents): Make length
out parameter 'gsize *len'.

* ghook.c (g_hook_compare_ids): Don't compare a
and b as 'a - b'.

* gmacros.h (GSIZE_TO_POINTER): Add GPOINTER_TO_SIZE,
GSIZE_TO_POINTER.

* gmain.c (g_timeout_prepare): Rewrite to avoid
overflows. (Fixes bug when system clock skews
backwards more than 24 days.)

* gmarkup.[ch]: Make lengths passed to callbacks
gsize, length for g_markup_parse-context_parse(),
g_markup_escape_text() gssize.

* gmessages.[ch] (g_printf_string_upper_bound): Change
return value to gsize.

* gmessages.c (printf_string_upper_bound): Remove
a ridiculous use of 'inline' on a 300 line function.

* gstring.[ch]: Represent size of string as a gsize,
not gint. Make parameters to functions take gsize,
or gssize where -1 is allowed.

* gstring.c (g_string_erase): Make
g_string_erase (string, pos, -1) a synonym for
g_string_truncate for consistency with other G*
APIs.

* gstrfuncs.[ch]: Make all functions taking a string
length, take a gsize, or gssize if -1 is allowed.
(g_strstr_len, g_strrstr_len). Also fix some boundary
conditions in g_str[r]str[_len].

* gutf8.c tests/unicode-encoding.c: Make parameters that
are byte lengths gsize, gssize as appropriate. Make
character offsets, other counts, glong.

* gasyncqueue.c gcompletion.c
timeloop.c timeloop-basic.c gutils.c gspawn.c.
Small 64 bit cleanliness fixups.

* glist.c (g_list_sort2, g_list_sort_real): Fix functions
that should have been static.

* gdate.c (g_date_fill_parse_tokens): Fix extra
declaration that was shadowing another.

* tests/module-test.c: Include string.h

Mon Jun 18 15:43:29 2001 Owen Taylor <otaylor@redhat.com>

* gutf8.c (g_get_charset): Make argument
G_CONST_RETURN char **.
/external/bluetooth/glib/glib/gmacros.h
430ae18e5be4267c00ea38542d885642f35e6714 01-Dec-2000 Havoc Pennington <hp@pobox.com> Provide G_CONST_RETURN which is 'const' by default, and nothing when

2000-11-21 Havoc Pennington <hp@pobox.com>

* gmacros.h: Provide G_CONST_RETURN which is 'const' by default,
and nothing when G_DISABLE_CONST_RETURNS is defined.
/external/bluetooth/glib/glib/gmacros.h
b1d15587479deaacb9bd983fd28c6f3d3e27142e 12-Oct-2000 Sebastian Wilhelmi <wilhelmi@ira.uka.de> Split glib.h into many header files mostly according to the resp.


2000-10-12 Sebastian Wilhelmi <wilhelmi@ira.uka.de>

* glib.h, galloca.h, garray.h, gasyncqueue.h, gbacktrace.h,
gcache.h, gcompletion.h, gconvert.h, gdataset.h, gdate.h, ghash.h,
ghook.h, giochannel.h, glist.h , gmacros.h, gmain.h, gmem.h,
gmessages.h, gnode.h, gprimes.h, gquark.h, gqueue.h, grand.h,
grel.h, gscanner.h, gslist.h, gstrfuncs.h, gstring.h, gthread.h,
gthreadpool.h, gtimer.h, gtree.h, gtypes.h, gutils.h: Split glib.h
into many header files mostly according to the resp. *.c-files.

* gmacros.h: Added G_BEGIN_DECLS and G_END_DECLS to mean: 'in case
of C++: extern "C" { ... }' analogous to glibc __BEGIN_DECLS and
__END_DECLS.

* configure.in, gerror.h, gfileutils.h, gshell.h, gspawn.h,
gunicode.h, : Changed guard-macro names to something more
consistent.

* configure.in, *.h: Use G_BEGIN_DECLS and G_END_DECLS.
/external/bluetooth/glib/glib/gmacros.h