diff options
Diffstat (limited to 'glib')
-rw-r--r-- | glib/deprecated/gthread-deprecated.c | 12 | ||||
-rw-r--r-- | glib/docs.c | 88 | ||||
-rw-r--r-- | glib/gbookmarkfile.c | 64 | ||||
-rw-r--r-- | glib/gconvert.c | 4 | ||||
-rw-r--r-- | glib/gdate.c | 4 | ||||
-rw-r--r-- | glib/gerror.h | 2 | ||||
-rw-r--r-- | glib/gfileutils.c | 4 | ||||
-rw-r--r-- | glib/giochannel.c | 6 | ||||
-rw-r--r-- | glib/gkeyfile.c | 42 | ||||
-rw-r--r-- | glib/glib-unix.c | 4 | ||||
-rw-r--r-- | glib/glib-unix.h | 2 | ||||
-rw-r--r-- | glib/gmain.h | 12 | ||||
-rw-r--r-- | glib/gmappedfile.c | 2 | ||||
-rw-r--r-- | glib/gmessages.c | 2 | ||||
-rw-r--r-- | glib/goption.c | 2 | ||||
-rw-r--r-- | glib/goption.h | 2 | ||||
-rw-r--r-- | glib/gqueue.c | 4 | ||||
-rw-r--r-- | glib/gregex.c | 44 | ||||
-rw-r--r-- | glib/gregex.h | 16 | ||||
-rw-r--r-- | glib/gscanner.c | 8 | ||||
-rw-r--r-- | glib/gspawn.c | 2 | ||||
-rw-r--r-- | glib/gstdio.h | 2 | ||||
-rw-r--r-- | glib/gstrfuncs.c | 4 | ||||
-rw-r--r-- | glib/gtimer.c | 2 |
24 files changed, 167 insertions, 167 deletions
diff --git a/glib/deprecated/gthread-deprecated.c b/glib/deprecated/gthread-deprecated.c index e7e68fbd6..be98a74b6 100644 --- a/glib/deprecated/gthread-deprecated.c +++ b/glib/deprecated/gthread-deprecated.c @@ -97,7 +97,7 @@ * This macro is defined if POSIX style threads are used. * * Deprecated:2.32:POSIX threads are in use on all non-Windows systems. - * Use G_OS_WIN32 to detect Windows. + * Use %G_OS_WIN32 to detect Windows. */ /** @@ -105,7 +105,7 @@ * * This macro is defined if Windows style threads are used. * - * Deprecated:2.32:Use G_OS_WIN32 to detect Windows. + * Deprecated:2.32:Use %G_OS_WIN32 to detect Windows. */ @@ -463,7 +463,7 @@ g_once_init_enter_impl (volatile gsize *location) * @mutex: a #GStaticMutex to be initialized. * * Initializes @mutex. - * Alternatively you can initialize it with #G_STATIC_MUTEX_INIT. + * Alternatively you can initialize it with %G_STATIC_MUTEX_INIT. * * Deprecated: 2.32: Use g_mutex_init() */ @@ -649,7 +649,7 @@ g_static_mutex_free (GStaticMutex* mutex) * * A #GStaticRecMutex must be initialized with this function before it * can be used. Alternatively you can initialize it with - * #G_STATIC_REC_MUTEX_INIT. + * %G_STATIC_REC_MUTEX_INIT. * * Deprecated: 2.32: Use g_rec_mutex_init() */ @@ -949,7 +949,7 @@ g_static_rec_mutex_free (GStaticRecMutex *mutex) * * A #GStaticRWLock must be initialized with this function before it * can be used. Alternatively you can initialize it with - * #G_STATIC_RW_LOCK_INIT. + * %G_STATIC_RW_LOCK_INIT. * * Deprecated: 2.32: Use g_rw_lock_init() instead */ @@ -1295,7 +1295,7 @@ GPrivate static_private_private = G_PRIVATE_INIT (g_static_private_cleanup); * @private_key: a #GStaticPrivate to be initialized * * Initializes @private_key. Alternatively you can initialize it with - * #G_STATIC_PRIVATE_INIT. + * %G_STATIC_PRIVATE_INIT. */ void g_static_private_init (GStaticPrivate *private_key) diff --git a/glib/docs.c b/glib/docs.c index 1194a2dcd..9d6321b8a 100644 --- a/glib/docs.c +++ b/glib/docs.c @@ -108,7 +108,7 @@ * gint: * * Corresponds to the standard C int type. - * Values of this type can range from #G_MININT to #G_MAXINT. + * Values of this type can range from %G_MININT to %G_MAXINT. */ /** @@ -127,7 +127,7 @@ * guint: * * Corresponds to the standard C unsigned int type. - * Values of this type can range from 0 to #G_MAXUINT. + * Values of this type can range from 0 to %G_MAXUINT. */ /** @@ -140,7 +140,7 @@ * gshort: * * Corresponds to the standard C short type. - * Values of this type can range from #G_MINSHORT to #G_MAXSHORT. + * Values of this type can range from %G_MINSHORT to %G_MAXSHORT. */ /** @@ -159,7 +159,7 @@ * gushort: * * Corresponds to the standard C unsigned short type. - * Values of this type can range from 0 to #G_MAXUSHORT. + * Values of this type can range from 0 to %G_MAXUSHORT. */ /** @@ -172,7 +172,7 @@ * glong: * * Corresponds to the standard C long type. - * Values of this type can range from #G_MINLONG to #G_MAXLONG. + * Values of this type can range from %G_MINLONG to %G_MAXLONG. */ /** @@ -191,7 +191,7 @@ * gulong: * * Corresponds to the standard C unsigned long type. - * Values of this type can range from 0 to #G_MAXULONG. + * Values of this type can range from 0 to %G_MAXULONG. */ /** @@ -204,8 +204,8 @@ * gint8: * * A signed integer guaranteed to be 8 bits on all platforms. - * Values of this type can range from #G_MININT8 (= -128) to - * #G_MAXINT8 (= 127). + * Values of this type can range from %G_MININT8 (= -128) to + * %G_MAXINT8 (= 127). */ /** @@ -220,7 +220,7 @@ * guint8: * * An unsigned integer guaranteed to be 8 bits on all platforms. - * Values of this type can range from 0 to #G_MAXUINT8 (= 255). + * Values of this type can range from 0 to %G_MAXUINT8 (= 255). */ /** @@ -235,8 +235,8 @@ * gint16: * * A signed integer guaranteed to be 16 bits on all platforms. - * Values of this type can range from #G_MININT16 (= -32,768) to - * #G_MAXINT16 (= 32,767). + * Values of this type can range from %G_MININT16 (= -32,768) to + * %G_MAXINT16 (= 32,767). * * To print or scan values of this type, use * %G_GINT16_MODIFIER and/or %G_GINT16_FORMAT. @@ -289,7 +289,7 @@ * guint16: * * An unsigned integer guaranteed to be 16 bits on all platforms. - * Values of this type can range from 0 to #G_MAXUINT16 (= 65,535). + * Values of this type can range from 0 to %G_MAXUINT16 (= 65,535). * * To print or scan values of this type, use * %G_GINT16_MODIFIER and/or %G_GUINT16_FORMAT. @@ -307,15 +307,15 @@ * G_GUINT16_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #guint16. See also #G_GINT16_FORMAT + * and printing values of type #guint16. See also %G_GINT16_FORMAT */ /** * gint32: * * A signed integer guaranteed to be 32 bits on all platforms. - * Values of this type can range from #G_MININT32 (= -2,147,483,648) - * to #G_MAXINT32 (= 2,147,483,647). + * Values of this type can range from %G_MININT32 (= -2,147,483,648) + * to %G_MAXINT32 (= 2,147,483,647). * * To print or scan values of this type, use * %G_GINT32_MODIFIER and/or %G_GINT32_FORMAT. @@ -334,7 +334,7 @@ * * The platform dependent length modifier for conversion specifiers * for scanning and printing values of type #gint32 or #guint32. It - * is a string literal. See also #G_GINT16_MODIFIER. + * is a string literal. See also %G_GINT16_MODIFIER. * * Since: 2.4 */ @@ -343,14 +343,14 @@ * G_GINT32_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #gint32. See also #G_GINT16_FORMAT. + * and printing values of type #gint32. See also %G_GINT16_FORMAT. */ /** * guint32: * * An unsigned integer guaranteed to be 32 bits on all platforms. - * Values of this type can range from 0 to #G_MAXUINT32 (= 4,294,967,295). + * Values of this type can range from 0 to %G_MAXUINT32 (= 4,294,967,295). * * To print or scan values of this type, use * %G_GINT32_MODIFIER and/or %G_GUINT32_FORMAT. @@ -368,15 +368,15 @@ * G_GUINT32_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #guint32. See also #G_GINT16_FORMAT. + * and printing values of type #guint32. See also %G_GINT16_FORMAT. */ /** * gint64: * * A signed integer guaranteed to be 64 bits on all platforms. - * Values of this type can range from #G_MININT64 - * (= -9,223,372,036,854,775,808) to #G_MAXINT64 + * Values of this type can range from %G_MININT64 + * (= -9,223,372,036,854,775,808) to %G_MAXINT64 * (= 9,223,372,036,854,775,807). * * To print or scan values of this type, use @@ -407,7 +407,7 @@ * G_GINT64_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #gint64. See also #G_GINT16_FORMAT. + * and printing values of type #gint64. See also %G_GINT16_FORMAT. * * Some platforms do not support scanning and printing 64-bit integers, * even though the types are supported. On such platforms %G_GINT64_FORMAT @@ -421,7 +421,7 @@ * guint64: * * An unsigned integer guaranteed to be 64-bits on all platforms. - * Values of this type can range from 0 to #G_MAXUINT64 + * Values of this type can range from 0 to %G_MAXUINT64 * (= 18,446,744,073,709,551,615). * * To print or scan values of this type, use @@ -438,7 +438,7 @@ * G_GUINT64_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #guint64. See also #G_GINT16_FORMAT. + * and printing values of type #guint64. See also %G_GINT16_FORMAT. * * Some platforms do not support scanning and printing 64-bit integers, * even though the types are supported. On such platforms %G_GUINT64_FORMAT @@ -470,7 +470,7 @@ * gfloat: * * Corresponds to the standard C float type. - * Values of this type can range from -#G_MAXFLOAT to #G_MAXFLOAT. + * Values of this type can range from -%G_MAXFLOAT to %G_MAXFLOAT. */ /** @@ -492,7 +492,7 @@ * gdouble: * * Corresponds to the standard C double type. - * Values of this type can range from -#G_MAXDOUBLE to #G_MAXDOUBLE. + * Values of this type can range from -%G_MAXDOUBLE to %G_MAXDOUBLE. */ /** @@ -518,7 +518,7 @@ * This type is wide enough to hold the numeric value of a pointer, * so it is usually 32 bit wide on a 32-bit platform and 64 bit wide * on a 64-bit platform. Values of this type can range from 0 to - * #G_MAXSIZE. + * %G_MAXSIZE. * * To print or scan values of this type, use * %G_GSIZE_MODIFIER and/or %G_GSIZE_FORMAT. @@ -546,7 +546,7 @@ * G_GSIZE_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #gsize. See also #G_GINT16_FORMAT. + * and printing values of type #gsize. See also %G_GINT16_FORMAT. * * Since: 2.6 */ @@ -556,8 +556,8 @@ * * A signed variant of #gsize, corresponding to the * ssize_t defined on most platforms. - * Values of this type can range from #G_MINSSIZE - * to #G_MAXSSIZE. + * Values of this type can range from %G_MINSSIZE + * to %G_MAXSSIZE. * * To print or scan values of this type, use * %G_GSSIZE_MODIFIER and/or %G_GSSIZE_FORMAT. @@ -583,7 +583,7 @@ * G_GSSIZE_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #gssize. See also #G_GINT16_FORMAT. + * and printing values of type #gssize. See also %G_GINT16_FORMAT. * * Since: 2.6 */ @@ -605,8 +605,8 @@ * corresponding to the POSIX type `off_t` as if compiling with * `_FILE_OFFSET_BITS` set to 64. #goffset is always 64 bits wide, even on * 32-bit architectures. - * Values of this type can range from #G_MINOFFSET to - * #G_MAXOFFSET. + * Values of this type can range from %G_MINOFFSET to + * %G_MAXOFFSET. * * To print or scan values of this type, use * %G_GOFFSET_MODIFIER and/or %G_GOFFSET_FORMAT. @@ -631,7 +631,7 @@ * * The platform dependent length modifier for conversion specifiers * for scanning and printing values of type #goffset. It is a string - * literal. See also #G_GINT64_MODIFIER. + * literal. See also %G_GINT64_MODIFIER. * * Since: 2.20 */ @@ -640,7 +640,7 @@ * G_GOFFSET_FORMAT: * * This is the platform dependent conversion specifier for scanning - * and printing values of type #goffset. See also #G_GINT64_FORMAT. + * and printing values of type #goffset. See also %G_GINT64_FORMAT. * * Since: 2.20 */ @@ -652,7 +652,7 @@ * This macro is used to insert #goffset 64-bit integer literals * into the source code. * - * See also #G_GINT64_CONSTANT. + * See also G_GINT64_CONSTANT(). * * Since: 2.20 */ @@ -849,29 +849,29 @@ * G_BYTE_ORDER: * * The host byte order. - * This can be either #G_LITTLE_ENDIAN or #G_BIG_ENDIAN (support for - * #G_PDP_ENDIAN may be added in future.) + * This can be either %G_LITTLE_ENDIAN or %G_BIG_ENDIAN (support for + * %G_PDP_ENDIAN may be added in future.) */ /** * G_LITTLE_ENDIAN: * * Specifies one of the possible types of byte order. - * See #G_BYTE_ORDER. + * See %G_BYTE_ORDER. */ /** * G_BIG_ENDIAN: * * Specifies one of the possible types of byte order. - * See #G_BYTE_ORDER. + * See %G_BYTE_ORDER. */ /** * G_PDP_ENDIAN: * * Specifies one of the possible types of byte order - * (currently unused). See #G_BYTE_ORDER. + * (currently unused). See %G_BYTE_ORDER. */ /** @@ -1543,7 +1543,7 @@ * @title: Numerical Definitions * @short_description: mathematical constants, and floating point decomposition * - * GLib offers mathematical constants such as #G_PI for the value of pi; + * GLib offers mathematical constants such as %G_PI for the value of pi; * many platforms have these in the C library, but some don't, the GLib * versions always exist. * @@ -1857,7 +1857,7 @@ /** * G_BEGIN_DECLS: * - * Used (along with #G_END_DECLS) to bracket header files. If the + * Used (along with %G_END_DECLS) to bracket header files. If the * compiler in use is a C++ compiler, adds extern "C" * around the header. */ @@ -1865,7 +1865,7 @@ /** * G_END_DECLS: * - * Used (along with #G_BEGIN_DECLS) to bracket header files. If the + * Used (along with %G_BEGIN_DECLS) to bracket header files. If the * compiler in use is a C++ compiler, adds extern "C" * around the header. */ diff --git a/glib/gbookmarkfile.c b/glib/gbookmarkfile.c index 14536ec9b..51dfa23d3 100644 --- a/glib/gbookmarkfile.c +++ b/glib/gbookmarkfile.c @@ -2217,7 +2217,7 @@ g_bookmark_file_set_title (GBookmarkFile *bookmark, * If @uri is %NULL, the title of @bookmark is returned. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (transfer full): a newly allocated string or %NULL if the specified * URI cannot be found. @@ -2302,7 +2302,7 @@ g_bookmark_file_set_description (GBookmarkFile *bookmark, * Retrieves the description of the bookmark for @uri. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (transfer full): a newly allocated string or %NULL if the specified * URI cannot be found. @@ -2382,9 +2382,9 @@ g_bookmark_file_set_mime_type (GBookmarkFile *bookmark, * Retrieves the MIME type of the resource pointed by @uri. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the * event that the MIME type cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. + * @error is set to %G_BOOKMARK_FILE_ERROR_INVALID_VALUE. * * Returns: (transfer full): a newly allocated string or %NULL if the specified * URI cannot be found. @@ -2468,9 +2468,9 @@ g_bookmark_file_set_is_private (GBookmarkFile *bookmark, * Gets whether the private flag of the bookmark for @uri is set. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the * event that the private flag cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. + * @error is set to %G_BOOKMARK_FILE_ERROR_INVALID_VALUE. * * Returns: %TRUE if the private flag is set, %FALSE otherwise. * @@ -2577,7 +2577,7 @@ g_bookmark_file_set_added_date_time (GBookmarkFile *bookmark, * Gets the time the bookmark for @uri was added to @bookmark * * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: a timestamp * @@ -2603,7 +2603,7 @@ g_bookmark_file_get_added (GBookmarkFile *bookmark, * Gets the time the bookmark for @uri was added to @bookmark * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (transfer none): a #GDateTime * @@ -2710,7 +2710,7 @@ g_bookmark_file_set_modified_date_time (GBookmarkFile *bookmark, * Gets the time when the bookmark for @uri was last modified. * * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: a timestamp * @@ -2736,7 +2736,7 @@ g_bookmark_file_get_modified (GBookmarkFile *bookmark, * Gets the time when the bookmark for @uri was last modified. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (transfer none): a #GDateTime * @@ -2845,7 +2845,7 @@ g_bookmark_file_set_visited_date_time (GBookmarkFile *bookmark, * Gets the time the bookmark for @uri was last visited. * * In the event the URI cannot be found, -1 is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: a timestamp. * @@ -2871,7 +2871,7 @@ g_bookmark_file_get_visited (GBookmarkFile *bookmark, * Gets the time the bookmark for @uri was last visited. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (transfer none): a #GDateTime * @@ -2912,7 +2912,7 @@ g_bookmark_file_get_visited_date_time (GBookmarkFile *bookmark, * the bookmark for @uri belongs to. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: %TRUE if @group was found. * @@ -3007,9 +3007,9 @@ g_bookmark_file_add_group (GBookmarkFile *bookmark, * for @uri belongs to. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * In the event no group was defined, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_INVALID_VALUE. + * @error is set to %G_BOOKMARK_FILE_ERROR_INVALID_VALUE. * * Returns: %TRUE if @group was successfully removed. * @@ -3124,7 +3124,7 @@ g_bookmark_file_set_groups (GBookmarkFile *bookmark, * Retrieves the list of group names of the bookmark for @uri. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * The returned array is %NULL terminated, so @length may optionally * be %NULL. @@ -3274,10 +3274,10 @@ g_bookmark_file_add_application (GBookmarkFile *bookmark, * that have registered a bookmark for @uri inside @bookmark. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * In the event that no application with name @app_name has registered * a bookmark for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. + * %G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. * * Returns: %TRUE if the application was successfully removed. * @@ -3324,7 +3324,7 @@ g_bookmark_file_remove_application (GBookmarkFile *bookmark, * registered by application @name. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: %TRUE if the application @name was found * @@ -3388,10 +3388,10 @@ g_bookmark_file_has_application (GBookmarkFile *bookmark, * * If you try to remove an application by setting its registration count to * zero, and no bookmark for @uri is found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, * in the event that no application @name has registered a bookmark * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark + * %G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark * for @uri is found, one is created. * * Returns: %TRUE if the application's meta-data was successfully @@ -3451,10 +3451,10 @@ g_bookmark_file_set_app_info (GBookmarkFile *bookmark, * * If you try to remove an application by setting its registration count to * zero, and no bookmark for @uri is found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND; similarly, * in the event that no application @name has registered a bookmark * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark + * %G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. Otherwise, if no bookmark * for @uri is found, one is created. * * Returns: %TRUE if the application's meta-data was successfully @@ -3622,11 +3622,11 @@ expand_exec_line (const gchar *exec_fmt, * The string returned in @app_exec must be freed. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the * event that no application with name @app_name has registered a bookmark * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting - * the command line fails, an error of the #G_SHELL_ERROR domain is + * %G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting + * the command line fails, an error of the %G_SHELL_ERROR domain is * set and %FALSE is returned. * * Returns: %TRUE on success. @@ -3674,11 +3674,11 @@ g_bookmark_file_get_app_info (GBookmarkFile *bookmark, * The string returned in @app_exec must be freed. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. In the * event that no application with name @app_name has registered a bookmark * for @uri, %FALSE is returned and error is set to - * #G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting - * the command line fails, an error of the #G_SHELL_ERROR domain is + * %G_BOOKMARK_FILE_ERROR_APP_NOT_REGISTERED. In the event that unquoting + * the command line fails, an error of the %G_SHELL_ERROR domain is * set and %FALSE is returned. * * Returns: %TRUE on success. @@ -3770,7 +3770,7 @@ g_bookmark_file_get_application_info (GBookmarkFile *bookmark, * bookmark for @uri. * * In the event the URI cannot be found, %NULL is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: (array length=length) (transfer full): a newly allocated %NULL-terminated array of strings. * Use g_strfreev() to free it. @@ -3863,7 +3863,7 @@ g_bookmark_file_get_size (GBookmarkFile *bookmark) * %NULL, then the bookmark is removed. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: %TRUE if the URI was successfully changed * @@ -3980,7 +3980,7 @@ g_bookmark_file_set_icon (GBookmarkFile *bookmark, * Gets the icon of the bookmark for @uri. * * In the event the URI cannot be found, %FALSE is returned and - * @error is set to #G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. + * @error is set to %G_BOOKMARK_FILE_ERROR_URI_NOT_FOUND. * * Returns: %TRUE if the icon for the bookmark for the URI was found. * You should free the returned strings. diff --git a/glib/gconvert.c b/glib/gconvert.c index e51537881..052f019e2 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -354,7 +354,7 @@ close_converter (GIConv cd) * Even if the conversion was successful, this may be * less than @len if there were partial characters * at the end of the input. If the error - * #G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value + * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value * stored will be the byte offset after the last valid * input sequence. * @bytes_written: (out) (optional): the number of bytes stored in @@ -525,7 +525,7 @@ g_convert_with_iconv (const gchar *str, * Even if the conversion was successful, this may be * less than @len if there were partial characters * at the end of the input. If the error - * #G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value + * %G_CONVERT_ERROR_ILLEGAL_SEQUENCE occurs, the value * stored will be the byte offset after the last valid * input sequence. * @bytes_written: (out) (optional): the number of bytes stored in diff --git a/glib/gdate.c b/glib/gdate.c index 8759cb4cd..73a732df3 100644 --- a/glib/gdate.c +++ b/glib/gdate.c @@ -242,8 +242,8 @@ * @G_DATE_SATURDAY: Saturday * @G_DATE_SUNDAY: Sunday * - * Enumeration representing a day of the week; #G_DATE_MONDAY, - * #G_DATE_TUESDAY, etc. #G_DATE_BAD_WEEKDAY is an invalid weekday. + * Enumeration representing a day of the week; %G_DATE_MONDAY, + * %G_DATE_TUESDAY, etc. %G_DATE_BAD_WEEKDAY is an invalid weekday. */ /** diff --git a/glib/gerror.h b/glib/gerror.h index bc9c03a91..33e1d5aa5 100644 --- a/glib/gerror.h +++ b/glib/gerror.h @@ -31,7 +31,7 @@ G_BEGIN_DECLS /** * GError: - * @domain: error domain, e.g. #G_FILE_ERROR + * @domain: error domain, e.g. %G_FILE_ERROR * @code: error code, e.g. %G_FILE_ERROR_NOENT * @message: human-readable informative error message * diff --git a/glib/gfileutils.c b/glib/gfileutils.c index 389414cd4..dbbd12011 100644 --- a/glib/gfileutils.c +++ b/glib/gfileutils.c @@ -1000,7 +1000,7 @@ get_contents_win32 (const gchar *filename, * contents and @length to the length of the file contents in bytes. The string * stored in @contents will be nul-terminated, so for text files you can pass * %NULL for the @length argument. If the call was not successful, it returns - * %FALSE and sets @error. The error domain is #G_FILE_ERROR. Possible error + * %FALSE and sets @error. The error domain is %G_FILE_ERROR. Possible error * codes are those in the #GFileError enumeration. In the error case, * @contents is set to %NULL and @length is set to zero. * @@ -1271,7 +1271,7 @@ g_file_set_contents (const gchar *filename, * @filename already exists and is open. * * If the call was successful, it returns %TRUE. If the call was not successful, - * it returns %FALSE and sets @error. The error domain is #G_FILE_ERROR. + * it returns %FALSE and sets @error. The error domain is %G_FILE_ERROR. * Possible error codes are those in the #GFileError enumeration. * * Note that the name for the temporary file is constructed by appending up diff --git a/glib/giochannel.c b/glib/giochannel.c index e93c4b458..12ca051ad 100644 --- a/glib/giochannel.c +++ b/glib/giochannel.c @@ -593,7 +593,7 @@ g_io_channel_purge (GIOChannel *channel) * @condition: conditions to watch for * * Creates a #GSource that's dispatched when @condition is met for the - * given @channel. For example, if condition is #G_IO_IN, the source will + * given @channel. For example, if condition is %G_IO_IN, the source will * be dispatched when there's data available for reading. * * The callback function invoked by the #GSource should be added with @@ -1180,8 +1180,8 @@ g_io_channel_seek_position (GIOChannel *channel, * Flushes the write buffer for the GIOChannel. * * Returns: the status of the operation: One of - * #G_IO_STATUS_NORMAL, #G_IO_STATUS_AGAIN, or - * #G_IO_STATUS_ERROR. + * %G_IO_STATUS_NORMAL, %G_IO_STATUS_AGAIN, or + * %G_IO_STATUS_ERROR. **/ GIOStatus g_io_channel_flush (GIOChannel *channel, diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index 05329543a..646097044 100644 --- a/glib/gkeyfile.c +++ b/glib/gkeyfile.c @@ -1647,7 +1647,7 @@ g_key_file_to_data (GKeyFile *key_file, * returned keys will be %NULL-terminated, so @length may * optionally be %NULL. In the event that the @group_name cannot * be found, %NULL is returned and @error is set to - * #G_KEY_FILE_ERROR_GROUP_NOT_FOUND. + * %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. * * Returns: (array zero-terminated=1) (transfer full): a newly-allocated %NULL-terminated array of strings. * Use g_strfreev() to free it. @@ -1817,9 +1817,9 @@ set_not_found_key_error (const char *group_name, * Use g_key_file_get_string() to retrieve an unescaped UTF-8 string. * * In the event the key cannot be found, %NULL is returned and - * @error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the + * @error is set to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the * event that the @group_name cannot be found, %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND. + * and @error is set to %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. * * * Returns: a newly allocated string or %NULL if the specified @@ -1927,9 +1927,9 @@ g_key_file_set_value (GKeyFile *key_file, * like \s. * * In the event the key cannot be found, %NULL is returned and - * @error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the + * @error is set to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the * event that the @group_name cannot be found, %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND. + * and @error is set to %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. * * Returns: a newly allocated string or %NULL if the specified * key cannot be found. @@ -2038,9 +2038,9 @@ g_key_file_set_string (GKeyFile *key_file, * Returns the values associated with @key under @group_name. * * In the event the key cannot be found, %NULL is returned and - * @error is set to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the + * @error is set to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the * event that the @group_name cannot be found, %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_GROUP_NOT_FOUND. + * and @error is set to %G_KEY_FILE_ERROR_GROUP_NOT_FOUND. * * Returns: (array zero-terminated=1 length=length) (element-type utf8) (transfer full): * a %NULL-terminated string array or %NULL if the specified @@ -2220,7 +2220,7 @@ g_key_file_set_locale_string (GKeyFile *key_file, * %G_KEY_FILE_KEEP_TRANSLATIONS in order to load strings for all locales. * * If @key cannot be found then %NULL is returned and @error is set - * to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. If the value associated + * to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. If the value associated * with @key cannot be interpreted or no suitable translation can * be found then the untranslated value is returned. * @@ -2374,7 +2374,7 @@ g_key_file_get_locale_for_key (GKeyFile *key_file, * %G_KEY_FILE_KEEP_TRANSLATIONS in order to load strings for all locales. * * If @key cannot be found then %NULL is returned and @error is set - * to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. If the values associated + * to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. If the values associated * with @key cannot be interpreted or no suitable translations * can be found then the untranslated values are returned. The * returned array is %NULL-terminated, so @length may optionally @@ -2496,9 +2496,9 @@ g_key_file_set_locale_string_list (GKeyFile *key_file, * boolean. * * If @key cannot be found then %FALSE is returned and @error is set - * to #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value + * to %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value * associated with @key cannot be interpreted as a boolean then %FALSE - * is returned and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * is returned and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: the value associated with the key as a boolean, * or %FALSE if the key was not found or could not be parsed. @@ -2589,9 +2589,9 @@ g_key_file_set_boolean (GKeyFile *key_file, * booleans. * * If @key cannot be found then %NULL is returned and @error is set to - * #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated + * %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated * with @key cannot be interpreted as booleans then %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: (array length=length) (element-type gboolean) (transfer container): * the values associated with the key as a list of booleans, or %NULL if the @@ -2708,10 +2708,10 @@ g_key_file_set_boolean_list (GKeyFile *key_file, * integer. * * If @key cannot be found then 0 is returned and @error is set to - * #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value associated + * %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value associated * with @key cannot be interpreted as an integer, or is out of range * for a #gint, then 0 is returned - * and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: the value associated with the key as an integer, or * 0 if the key was not found or could not be parsed. @@ -2959,10 +2959,10 @@ g_key_file_set_uint64 (GKeyFile *key_file, * integers. * * If @key cannot be found then %NULL is returned and @error is set to - * #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated + * %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated * with @key cannot be interpreted as integers, or are out of range for * #gint, then %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: (array length=length) (element-type gint) (transfer container): * the values associated with the key as a list of integers, or %NULL if @@ -3078,9 +3078,9 @@ g_key_file_set_integer_list (GKeyFile *key_file, * double. If @group_name is %NULL, the start_group is used. * * If @key cannot be found then 0.0 is returned and @error is set to - * #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value associated + * %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the value associated * with @key cannot be interpreted as a double then 0.0 is returned - * and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: the value associated with the key as a double, or * 0.0 if the key was not found or could not be parsed. @@ -3173,9 +3173,9 @@ g_key_file_set_double (GKeyFile *key_file, * doubles. * * If @key cannot be found then %NULL is returned and @error is set to - * #G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated + * %G_KEY_FILE_ERROR_KEY_NOT_FOUND. Likewise, if the values associated * with @key cannot be interpreted as doubles then %NULL is returned - * and @error is set to #G_KEY_FILE_ERROR_INVALID_VALUE. + * and @error is set to %G_KEY_FILE_ERROR_INVALID_VALUE. * * Returns: (array length=length) (element-type gdouble) (transfer container): * the values associated with the key as a list of doubles, or %NULL if the diff --git a/glib/glib-unix.c b/glib/glib-unix.c index 83726da73..fd799eaf7 100644 --- a/glib/glib-unix.c +++ b/glib/glib-unix.c @@ -48,7 +48,7 @@ G_STATIC_ASSERT (G_ALIGNOF (GPid) == G_ALIGNOF (pid_t)); * Most of GLib is intended to be portable; in contrast, this set of * functions is designed for programs which explicitly target UNIX, * or are using it to build higher level abstractions which would be - * conditionally compiled if the platform matches G_OS_UNIX. + * conditionally compiled if the platform matches %G_OS_UNIX. * * To use these functions, you must explicitly include the * "glib-unix.h" header. @@ -233,7 +233,7 @@ g_unix_signal_source_new (int signum) /** * g_unix_signal_add_full: (rename-to g_unix_signal_add) * @priority: the priority of the signal source. Typically this will be in - * the range between #G_PRIORITY_DEFAULT and #G_PRIORITY_HIGH. + * the range between %G_PRIORITY_DEFAULT and %G_PRIORITY_HIGH. * @signum: Signal number * @handler: Callback * @user_data: Data for @handler diff --git a/glib/glib-unix.h b/glib/glib-unix.h index a5ea9a1c5..53f193b87 100644 --- a/glib/glib-unix.h +++ b/glib/glib-unix.h @@ -43,7 +43,7 @@ G_BEGIN_DECLS * * Error domain for API in the g_unix_ namespace. Note that there is no * exported enumeration mapping %errno. Instead, all functions ensure that - * %errno is relevant. The code for all #G_UNIX_ERROR is always 0, and the + * %errno is relevant. The code for all %G_UNIX_ERROR is always 0, and the * error message is always generated via g_strerror(). * * It is expected that most code will not look at %errno from these APIs. diff --git a/glib/gmain.h b/glib/gmain.h index 22103414c..895814a9c 100644 --- a/glib/gmain.h +++ b/glib/gmain.h @@ -122,8 +122,8 @@ typedef struct _GSourceCallbackFuncs GSourceCallbackFuncs; * connected to a callback using g_source_set_callback(). The @dispatch * function should call the callback function with @user_data and whatever * additional parameters are needed for this type of event source. The - * return value of the @dispatch function should be #G_SOURCE_REMOVE if the - * source should be removed or #G_SOURCE_CONTINUE to keep it. + * return value of the @dispatch function should be %G_SOURCE_REMOVE if the + * source should be removed or %G_SOURCE_CONTINUE to keep it. * @finalize: Called when the source is finalized. At this point, the source * will have been destroyed, had its callback cleared, and have been removed * from its #GMainContext, but it will still have its final reference count, @@ -187,8 +187,8 @@ typedef struct _GSourceFuncs GSourceFuncs; * different type to this type. Use G_SOURCE_FUNC() to avoid warnings about * incompatible function types. * - * Returns: %FALSE if the source should be removed. #G_SOURCE_CONTINUE and - * #G_SOURCE_REMOVE are more memorable names for the return value. + * Returns: %FALSE if the source should be removed. %G_SOURCE_CONTINUE and + * %G_SOURCE_REMOVE are more memorable names for the return value. */ typedef gboolean (*GSourceFunc) (gpointer user_data); @@ -328,8 +328,8 @@ struct _GSourceFuncs * * Use this for high priority idle functions. * - * GTK+ uses #G_PRIORITY_HIGH_IDLE + 10 for resizing operations, - * and #G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is + * GTK+ uses %G_PRIORITY_HIGH_IDLE + 10 for resizing operations, + * and %G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is * done to ensure that any pending resizes are processed before any * pending redraws, so that widgets are not redrawn twice unnecessarily.) */ diff --git a/glib/gmappedfile.c b/glib/gmappedfile.c index 36e7ca5a8..fb42011b5 100644 --- a/glib/gmappedfile.c +++ b/glib/gmappedfile.c @@ -232,7 +232,7 @@ mapped_file_new_from_fd (int fd, * If @filename is the name of an empty, regular file, the function * will successfully return an empty #GMappedFile. In other cases of * size 0 (e.g. device files such as /dev/null), @error will be set - * to the #GFileError value #G_FILE_ERROR_INVAL. + * to the #GFileError value %G_FILE_ERROR_INVAL. * * Returns: a newly allocated #GMappedFile which must be unref'd * with g_mapped_file_unref(), or %NULL if the mapping failed. diff --git a/glib/gmessages.c b/glib/gmessages.c index 9480384cf..008bf5c13 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -1820,7 +1820,7 @@ g_log_structured (const gchar *log_domain, * contain the text shown to the user. * * The values in the @fields dictionary are likely to be of type String - * (#G_VARIANT_TYPE_STRING). Array of bytes (#G_VARIANT_TYPE_BYTESTRING) is also + * (%G_VARIANT_TYPE_STRING). Array of bytes (%G_VARIANT_TYPE_BYTESTRING) is also * supported. In this case the message is handled as binary and will be forwarded * to the log writer as such. The size of the array should not be higher than * %G_MAXSSIZE. Otherwise it will be truncated to this size. For other types diff --git a/glib/goption.c b/glib/goption.c index 50812ea35..6806013a2 100644 --- a/glib/goption.c +++ b/glib/goption.c @@ -336,7 +336,7 @@ G_DEFINE_QUARK (g-option-context-error-quark, g_option_error) * The @parameter_string can serve multiple purposes. It can be used * to add descriptions for "rest" arguments, which are not parsed by * the #GOptionContext, typically something like "FILES" or - * "FILE1 FILE2...". If you are using #G_OPTION_REMAINING for + * "FILE1 FILE2...". If you are using %G_OPTION_REMAINING for * collecting "rest" arguments, GLib handles this automatically by * using the @arg_description of the corresponding #GOptionEntry in * the usage summary. diff --git a/glib/goption.h b/glib/goption.h index 44815a77d..7e9c1a3f1 100644 --- a/glib/goption.h +++ b/glib/goption.h @@ -278,7 +278,7 @@ struct _GOptionEntry * or %G_OPTION_ARG_FILENAME_ARRAY. * * - * Using #G_OPTION_REMAINING instead of simply scanning `argv` + * Using %G_OPTION_REMAINING instead of simply scanning `argv` * for leftover arguments has the advantage that GOption takes care of * necessary encoding conversions for strings or filenames. * diff --git a/glib/gqueue.c b/glib/gqueue.c index f7acb945a..d53af7ded 100644 --- a/glib/gqueue.c +++ b/glib/gqueue.c @@ -41,7 +41,7 @@ * * To create a new GQueue, use g_queue_new(). * - * To initialize a statically-allocated GQueue, use #G_QUEUE_INIT or + * To initialize a statically-allocated GQueue, use %G_QUEUE_INIT or * g_queue_init(). * * To add elements, use g_queue_push_head(), g_queue_push_head_link(), @@ -118,7 +118,7 @@ g_queue_free_full (GQueue *queue, * * A statically-allocated #GQueue must be initialized with this function * before it can be used. Alternatively you can initialize it with - * #G_QUEUE_INIT. It is not necessary to initialize queues created with + * %G_QUEUE_INIT. It is not necessary to initialize queues created with * g_queue_new(). * * Since: 2.14 diff --git a/glib/gregex.c b/glib/gregex.c index a8a35a424..1aa8416ff 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -45,7 +45,7 @@ * Perl regular expression. * * Some functions accept a @start_position argument, setting it differs - * from just passing over a shortened string and setting #G_REGEX_MATCH_NOTBOL + * from just passing over a shortened string and setting %G_REGEX_MATCH_NOTBOL * in the case of a pattern that begins with any kind of lookbehind assertion. * For example, consider the pattern "\Biss\B" which finds occurrences of "iss" * in the middle of words. ("\B" matches only if the current position in the @@ -57,11 +57,11 @@ * it is able to look behind the starting point to discover that it is * preceded by a letter. * - * Note that, unless you set the #G_REGEX_RAW flag, all the strings passed + * Note that, unless you set the %G_REGEX_RAW flag, all the strings passed * to these functions must be encoded in UTF-8. The lengths and the positions * inside the strings are in bytes and not in characters, so, for instance, * "\xc3\xa0" (i.e. "à") is two bytes long but it is treated as a - * single character. If you set #G_REGEX_RAW the strings can be non-valid + * single character. If you set %G_REGEX_RAW the strings can be non-valid * UTF-8 strings and a byte is treated as a character, so "\xc3\xa0" is two * bytes and two characters long. * @@ -76,11 +76,11 @@ * The behaviour of the dot, circumflex, and dollar metacharacters are * affected by newline characters, the default is to recognize any newline * character (the same characters recognized by "\R"). This can be changed - * with #G_REGEX_NEWLINE_CR, #G_REGEX_NEWLINE_LF and #G_REGEX_NEWLINE_CRLF - * compile options, and with #G_REGEX_MATCH_NEWLINE_ANY, - * #G_REGEX_MATCH_NEWLINE_CR, #G_REGEX_MATCH_NEWLINE_LF and - * #G_REGEX_MATCH_NEWLINE_CRLF match options. These settings are also - * relevant when compiling a pattern if #G_REGEX_EXTENDED is set, and an + * with %G_REGEX_NEWLINE_CR, %G_REGEX_NEWLINE_LF and %G_REGEX_NEWLINE_CRLF + * compile options, and with %G_REGEX_MATCH_NEWLINE_ANY, + * %G_REGEX_MATCH_NEWLINE_CR, %G_REGEX_MATCH_NEWLINE_LF and + * %G_REGEX_MATCH_NEWLINE_CRLF match options. These settings are also + * relevant when compiling a pattern if %G_REGEX_EXTENDED is set, and an * unescaped "#" outside a character class is encountered. This indicates * a comment that lasts until after the next newline. * @@ -860,19 +860,19 @@ g_match_info_get_match_count (const GMatchInfo *match_info) * able to raise an error as soon as a mistake is made. * * GRegex supports the concept of partial matching by means of the - * #G_REGEX_MATCH_PARTIAL_SOFT and #G_REGEX_MATCH_PARTIAL_HARD flags. + * %G_REGEX_MATCH_PARTIAL_SOFT and %G_REGEX_MATCH_PARTIAL_HARD flags. * When they are used, the return code for * g_regex_match() or g_regex_match_full() is, as usual, %TRUE * for a complete match, %FALSE otherwise. But, when these functions * return %FALSE, you can check if the match was partial calling * g_match_info_is_partial_match(). * - * The difference between #G_REGEX_MATCH_PARTIAL_SOFT and - * #G_REGEX_MATCH_PARTIAL_HARD is that when a partial match is encountered - * with #G_REGEX_MATCH_PARTIAL_SOFT, matching continues to search for a - * possible complete match, while with #G_REGEX_MATCH_PARTIAL_HARD matching + * The difference between %G_REGEX_MATCH_PARTIAL_SOFT and + * %G_REGEX_MATCH_PARTIAL_HARD is that when a partial match is encountered + * with %G_REGEX_MATCH_PARTIAL_SOFT, matching continues to search for a + * possible complete match, while with %G_REGEX_MATCH_PARTIAL_HARD matching * stops at the partial match. - * When both #G_REGEX_MATCH_PARTIAL_SOFT and #G_REGEX_MATCH_PARTIAL_HARD + * When both %G_REGEX_MATCH_PARTIAL_SOFT and %G_REGEX_MATCH_PARTIAL_HARD * are set, the latter takes precedence. * * There were formerly some restrictions on the pattern for partial matching. @@ -903,7 +903,7 @@ g_match_info_is_partial_match (const GMatchInfo *match_info) * match done with @string against @regex and have the same syntax used by * g_regex_replace(). * - * The @string_to_expand must be UTF-8 encoded even if #G_REGEX_RAW was + * The @string_to_expand must be UTF-8 encoded even if %G_REGEX_RAW was * passed to g_regex_new(). * * The backreferences are extracted from the string passed to the match @@ -1739,7 +1739,7 @@ g_regex_match (const GRegex *regex, * flexibility in reusing #GRegex structures. * * Setting @start_position differs from just passing over a shortened - * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern + * string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern * that begins with any kind of lookbehind assertion, such as "\b". * * Unless %G_REGEX_RAW is specified in the options, @string must be valid UTF-8. @@ -1890,7 +1890,7 @@ g_regex_match_all (const GRegex *regex, * is not able to capture substrings, so backreferences do not work. * * Setting @start_position differs from just passing over a shortened - * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern + * string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern * that begins with any kind of lookbehind assertion, such as "\b". * * Unless %G_REGEX_RAW is specified in the options, @string must be valid UTF-8. @@ -2163,7 +2163,7 @@ g_regex_split (const GRegex *regex, * "a", "b" and "c". * * Setting @start_position differs from just passing over a shortened - * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern + * string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern * that begins with any kind of lookbehind assertion, such as "\b". * * Returns: (transfer full): a %NULL-terminated gchar ** array. Free @@ -2792,12 +2792,12 @@ interpolation_list_needs_match (GList *list) * * If you do not need to use backreferences use g_regex_replace_literal(). * - * The @replacement string must be UTF-8 encoded even if #G_REGEX_RAW was + * The @replacement string must be UTF-8 encoded even if %G_REGEX_RAW was * passed to g_regex_new(). If you want to use not UTF-8 encoded strings * you can use g_regex_replace_literal(). * * Setting @start_position differs from just passing over a shortened - * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern that + * string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern that * begins with any kind of lookbehind assertion, such as "\b". * * Returns: a newly allocated string containing the replacements @@ -2869,7 +2869,7 @@ literal_replacement (const GMatchInfo *match_info, * include backreferences use g_regex_replace(). * * Setting @start_position differs from just passing over a - * shortened string and setting #G_REGEX_MATCH_NOTBOL in the + * shortened string and setting %G_REGEX_MATCH_NOTBOL in the * case of a pattern that begins with any kind of lookbehind * assertion, such as "\b". * @@ -2912,7 +2912,7 @@ g_regex_replace_literal (const GRegex *regex, * @eval for that occurrence. * * Setting @start_position differs from just passing over a shortened - * string and setting #G_REGEX_MATCH_NOTBOL in the case of a pattern + * string and setting %G_REGEX_MATCH_NOTBOL in the case of a pattern * that begins with any kind of lookbehind assertion, such as "\b". * * The following example uses g_regex_replace_eval() to replace multiple diff --git a/glib/gregex.h b/glib/gregex.h index 45e198df6..b982f6931 100644 --- a/glib/gregex.h +++ b/glib/gregex.h @@ -224,8 +224,8 @@ GQuark g_regex_error_quark (void); * newlines). The "start of line" metacharacter ("^") matches only * at the start of the string, while the "end of line" metacharacter * ("$") matches only at the end of the string, or before a terminating - * newline (unless #G_REGEX_DOLLAR_ENDONLY is set). When - * #G_REGEX_MULTILINE is set, the "start of line" and "end of line" + * newline (unless %G_REGEX_DOLLAR_ENDONLY is set). When + * %G_REGEX_MULTILINE is set, the "start of line" and "end of line" * constructs match immediately following or immediately before any * newline in the string, respectively, as well as at the very start * and end. This can be changed within a pattern by a "(?m)" option @@ -248,7 +248,7 @@ GQuark g_regex_error_quark (void); * matches only at the end of the string. Without this option, a * dollar also matches immediately before the final character if * it is a newline (but not before any other newlines). This option - * is ignored if #G_REGEX_MULTILINE is set. + * is ignored if %G_REGEX_MULTILINE is set. * @G_REGEX_UNGREEDY: Inverts the "greediness" of the quantifiers so that * they are not greedy by default, but become greedy if followed by "?". * It can also be set by a "(?U)" option setting within the pattern. @@ -324,14 +324,14 @@ typedef enum * metacharacter. * @G_REGEX_MATCH_NOTBOL: Specifies that first character of the string is * not the beginning of a line, so the circumflex metacharacter should - * not match before it. Setting this without #G_REGEX_MULTILINE (at + * not match before it. Setting this without %G_REGEX_MULTILINE (at * compile time) causes circumflex never to match. This option affects * only the behaviour of the circumflex metacharacter, it does not * affect "\A". * @G_REGEX_MATCH_NOTEOL: Specifies that the end of the subject string is * not the end of a line, so the dollar metacharacter should not match * it nor (except in multiline mode) a newline immediately before it. - * Setting this without #G_REGEX_MULTILINE (at compile time) causes + * Setting this without %G_REGEX_MULTILINE (at compile time) causes * dollar never to match. This option affects only the behaviour of * the dollar metacharacter, it does not affect "\Z" or "\z". * @G_REGEX_MATCH_NOTEMPTY: An empty string is not considered to be a valid @@ -368,12 +368,12 @@ typedef enum * single characters U+000B LINE TABULATION, U+000C FORM FEED (FF), * U+0085 NEXT LINE (NEL), U+2028 LINE SEPARATOR and * U+2029 PARAGRAPH SEPARATOR. Since: 2.34 - * @G_REGEX_MATCH_PARTIAL_SOFT: An alias for #G_REGEX_MATCH_PARTIAL. Since: 2.34 + * @G_REGEX_MATCH_PARTIAL_SOFT: An alias for %G_REGEX_MATCH_PARTIAL. Since: 2.34 * @G_REGEX_MATCH_PARTIAL_HARD: Turns on the partial matching feature. In contrast to - * to #G_REGEX_MATCH_PARTIAL_SOFT, this stops matching as soon as a partial match + * to %G_REGEX_MATCH_PARTIAL_SOFT, this stops matching as soon as a partial match * is found, without continuing to search for a possible complete match. See * g_match_info_is_partial_match() for more information. Since: 2.34 - * @G_REGEX_MATCH_NOTEMPTY_ATSTART: Like #G_REGEX_MATCH_NOTEMPTY, but only applied to + * @G_REGEX_MATCH_NOTEMPTY_ATSTART: Like %G_REGEX_MATCH_NOTEMPTY, but only applied to * the start of the matched string. For anchored * patterns this can only happen for pattern containing "\K". Since: 2.34 * diff --git a/glib/gscanner.c b/glib/gscanner.c index 9102b3a92..5f342183c 100644 --- a/glib/gscanner.c +++ b/glib/gscanner.c @@ -216,11 +216,11 @@ * by the scanner (the default is the whitespace characters: space, * tab, carriage-return and line-feed). * @cset_identifier_first: specifies the characters which can start - * identifiers (the default is #G_CSET_a_2_z, "_", and #G_CSET_A_2_Z). + * identifiers (the default is %G_CSET_a_2_z, "_", and %G_CSET_A_2_Z). * @cset_identifier_nth: specifies the characters which can be used * in identifiers, after the first character (the default is - * #G_CSET_a_2_z, "_0123456789", #G_CSET_A_2_Z, #G_CSET_LATINS, - * #G_CSET_LATINC). + * %G_CSET_a_2_z, "_0123456789", %G_CSET_A_2_Z, %G_CSET_LATINS, + * %G_CSET_LATINC). * @cpair_comment_single: specifies the characters at the start and * end of single-line comments. The default is "#\n" which means * that single-line comments start with a '#' and continue until @@ -256,7 +256,7 @@ * @scan_string_dq: specifies if strings can be enclosed in double * quotes (the default is %TRUE). * @numbers_2_int: specifies if binary, octal and hexadecimal numbers - * are reported as #G_TOKEN_INT (the default is %TRUE). + * are reported as %G_TOKEN_INT (the default is %TRUE). * @int_2_float: specifies if all numbers are reported as %G_TOKEN_FLOAT * (the default is %FALSE). * @identifier_2_string: specifies if identifiers are reported as strings diff --git a/glib/gspawn.c b/glib/gspawn.c index cce03f81d..0a2cbe54a 100644 --- a/glib/gspawn.c +++ b/glib/gspawn.c @@ -828,7 +828,7 @@ g_spawn_async_with_pipes (const gchar *working_directory, * even if they occur in the child (for example if the executable in * `@argv[0]` is not found). Typically the `message` field of returned * errors should be displayed to users. Possible errors are those from - * the #G_SPAWN_ERROR domain. + * the %G_SPAWN_ERROR domain. * * If an error occurs, @child_pid, @stdin_pipe_out, @stdout_pipe_out, * and @stderr_pipe_out will not be filled with valid values. diff --git a/glib/gstdio.h b/glib/gstdio.h index 7ed9c5dfa..4af0efdb6 100644 --- a/glib/gstdio.h +++ b/glib/gstdio.h @@ -61,7 +61,7 @@ typedef struct stat GStatBuf; * A few functions can't be handled in this way, since they are not defined * in a portable system header that we could include here. * - * #G_STDIO_WRAP_ON_UNIX is not public API and its behaviour is not guaranteed + * G_STDIO_WRAP_ON_UNIX is not public API and its behaviour is not guaranteed * in future. */ diff --git a/glib/gstrfuncs.c b/glib/gstrfuncs.c index 07d0dcd5a..927353309 100644 --- a/glib/gstrfuncs.c +++ b/glib/gstrfuncs.c @@ -906,7 +906,7 @@ g_ascii_strtod (const gchar *nptr, * the string back using g_ascii_strtod() gives the same machine-number * (on machines with IEEE compatible 64bit doubles). It is * guaranteed that the size of the resulting string will never - * be larger than @G_ASCII_DTOSTR_BUF_SIZE bytes, including the terminating + * be larger than %G_ASCII_DTOSTR_BUF_SIZE bytes, including the terminating * nul character, which is always added. * * Returns: The pointer to the buffer with the converted string. @@ -2030,7 +2030,7 @@ g_strncasecmp (const gchar *s1, * g_strdelimit: * @string: the string to convert * @delimiters: (nullable): a string containing the current delimiters, - * or %NULL to use the standard delimiters defined in #G_STR_DELIMITERS + * or %NULL to use the standard delimiters defined in %G_STR_DELIMITERS * @new_delimiter: the new delimiter character * * Converts any delimiter characters in @string to @new_delimiter. diff --git a/glib/gtimer.c b/glib/gtimer.c index 1e7cad4d7..c6a11409d 100644 --- a/glib/gtimer.c +++ b/glib/gtimer.c @@ -260,7 +260,7 @@ g_timer_is_active (GTimer *timer) * Pauses the current thread for the given number of microseconds. * * There are 1 million microseconds per second (represented by the - * #G_USEC_PER_SEC macro). g_usleep() may have limited precision, + * %G_USEC_PER_SEC macro). g_usleep() may have limited precision, * depending on hardware and operating system; don't rely on the exact * length of the sleep. */ |