mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-03 20:46:53 +02:00
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.
This commit is contained in:
parent
5495142560
commit
430ae18e5b
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2000-11-29 Havoc Pennington <hp@redhat.com>
|
2000-11-29 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
* gunidecomp.c (COMBINING_CLASS): s/UNICODE_LAST_CHAR/G_UNICODE_LAST_CHAR/
|
||||||
|
@ -175,4 +175,14 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Allow the app programmer to select whether or not return values
|
||||||
|
* (usually char*) are const or not. Don't try using this feature for
|
||||||
|
* functions with C++ linkage.
|
||||||
|
*/
|
||||||
|
#ifdef G_DISABLE_CONST_RETURNS
|
||||||
|
#define G_CONST_RETURN
|
||||||
|
#else
|
||||||
|
#define G_CONST_RETURN const
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __G_MACROS_H__ */
|
#endif /* __G_MACROS_H__ */
|
||||||
|
10
gmacros.h
10
gmacros.h
@ -175,4 +175,14 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Allow the app programmer to select whether or not return values
|
||||||
|
* (usually char*) are const or not. Don't try using this feature for
|
||||||
|
* functions with C++ linkage.
|
||||||
|
*/
|
||||||
|
#ifdef G_DISABLE_CONST_RETURNS
|
||||||
|
#define G_CONST_RETURN
|
||||||
|
#else
|
||||||
|
#define G_CONST_RETURN const
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __G_MACROS_H__ */
|
#endif /* __G_MACROS_H__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user