From e7651d0d0f989298308cfd579ca76e294ede722e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 9 Sep 2011 21:01:10 +0200 Subject: conf: add gcc optimization attributes --- src/conf.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf.h') diff --git a/src/conf.h b/src/conf.h index c26ff695..d460fb8d 100644 --- a/src/conf.h +++ b/src/conf.h @@ -111,6 +111,7 @@ struct config_param { * A GQuark for GError instances, resulting from malformed * configuration. */ +G_GNUC_CONST static inline GQuark config_quark(void) { @@ -187,6 +188,7 @@ const char * config_get_block_string(const struct config_param *param, const char *name, const char *default_value); +G_GNUC_MALLOC static inline char * config_dup_block_string(const struct config_param *param, const char *name, const char *default_value) @@ -204,6 +206,7 @@ bool config_get_block_bool(const struct config_param *param, const char *name, bool default_value); +G_GNUC_MALLOC struct config_param * config_new_param(const char *value, int line); -- cgit v1.2.3