mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
Add G_GNUC_PURE macro (but don't use it anywhere).
Add G_GNUC_PURE macro (but don't use it anywhere).
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
Tue Sep 26 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
|
* glib.h: Add G_GNUC_PURE macro (but don't use it anywhere).
|
||||||
|
|
||||||
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
Mon Sep 25 2000 Elliot Lee <sopwith@redhat.com>
|
||||||
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
* garray.c, glib.h, gmem.c: Add a few missing G_GNUC_CONST's.
|
||||||
|
|
||||||
|
7
glib.h
7
glib.h
@@ -271,6 +271,13 @@ extern "C" {
|
|||||||
|
|
||||||
/* Provide macros to feature the GCC function attribute.
|
/* Provide macros to feature the GCC function attribute.
|
||||||
*/
|
*/
|
||||||
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
||||||
|
#define G_GNUC_PURE \
|
||||||
|
__attribute__((pure))
|
||||||
|
#else
|
||||||
|
#define G_GNUC_PURE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||||
#define G_GNUC_PRINTF( format_idx, arg_idx ) \
|
#define G_GNUC_PRINTF( format_idx, arg_idx ) \
|
||||||
__attribute__((format (printf, format_idx, arg_idx)))
|
__attribute__((format (printf, format_idx, arg_idx)))
|
||||||
|
@@ -271,6 +271,13 @@ extern "C" {
|
|||||||
|
|
||||||
/* Provide macros to feature the GCC function attribute.
|
/* Provide macros to feature the GCC function attribute.
|
||||||
*/
|
*/
|
||||||
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
|
||||||
|
#define G_GNUC_PURE \
|
||||||
|
__attribute__((pure))
|
||||||
|
#else
|
||||||
|
#define G_GNUC_PURE
|
||||||
|
#endif
|
||||||
|
|
||||||
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4)
|
||||||
#define G_GNUC_PRINTF( format_idx, arg_idx ) \
|
#define G_GNUC_PRINTF( format_idx, arg_idx ) \
|
||||||
__attribute__((format (printf, format_idx, arg_idx)))
|
__attribute__((format (printf, format_idx, arg_idx)))
|
||||||
|
Reference in New Issue
Block a user