[gtk/function-annotations: 5/16] cssparser: Mark some functions as pure and malloc
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/function-annotations: 5/16] cssparser: Mark some functions as pure and malloc
- Date: Tue, 14 Sep 2021 17:17:52 +0000 (UTC)
commit 8c0fe3783382182c92d459d29b64f2e80b60d8e6
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Sep 14 12:23:07 2021 -0400
cssparser: Mark some functions as pure and malloc
gtk/css/gtkcssparserprivate.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/css/gtkcssparserprivate.h b/gtk/css/gtkcssparserprivate.h
index 349ad67999..9a22264a7e 100644
--- a/gtk/css/gtkcssparserprivate.h
+++ b/gtk/css/gtkcssparserprivate.h
@@ -63,13 +63,13 @@ GtkCssParser * gtk_css_parser_new_for_bytes (GBytes
GtkCssParser * gtk_css_parser_ref (GtkCssParser *self);
void gtk_css_parser_unref (GtkCssParser *self);
-GFile * gtk_css_parser_get_file (GtkCssParser *self);
+GFile * gtk_css_parser_get_file (GtkCssParser *self)
G_GNUC_PURE;
GFile * gtk_css_parser_resolve_url (GtkCssParser *self,
const char *url);
-const GtkCssLocation * gtk_css_parser_get_start_location (GtkCssParser *self);
-const GtkCssLocation * gtk_css_parser_get_end_location (GtkCssParser *self);
-const GtkCssLocation * gtk_css_parser_get_block_location (GtkCssParser *self);
+const GtkCssLocation * gtk_css_parser_get_start_location (GtkCssParser *self)
G_GNUC_PURE;
+const GtkCssLocation * gtk_css_parser_get_end_location (GtkCssParser *self)
G_GNUC_PURE;
+const GtkCssLocation * gtk_css_parser_get_block_location (GtkCssParser *self)
G_GNUC_PURE;
const GtkCssToken * gtk_css_parser_peek_token (GtkCssParser *self);
const GtkCssToken * gtk_css_parser_get_token (GtkCssParser *self);
@@ -132,9 +132,9 @@ gboolean gtk_css_parser_try_at_keyword (GtkCssParser
gboolean gtk_css_parser_try_token (GtkCssParser *self,
GtkCssTokenType token_type);
-char * gtk_css_parser_consume_ident (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT;
-char * gtk_css_parser_consume_string (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT;
-char * gtk_css_parser_consume_url (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT;
+char * gtk_css_parser_consume_ident (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+char * gtk_css_parser_consume_string (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+char * gtk_css_parser_consume_url (GtkCssParser *self)
G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
gboolean gtk_css_parser_consume_number (GtkCssParser *self,
double *number);
gboolean gtk_css_parser_consume_integer (GtkCssParser *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]