|
92 | 92 | <define name="G_LIKELY(expr)" value="(expr)"/> |
93 | 93 | <define name="G_UNLIKELY(expr)" value="(expr)"/> |
94 | 94 | <define name="G_DEPRECATED" value="__attribute__((__deprecated__))"/> |
| 95 | + <define name="G_DEPRECATED_FOR(f)" value="__attribute__((__deprecated__("Use '" #f "' instead")))"/> |
95 | 96 | <define name="G_STMT_START" value="do"/> |
96 | 97 | <define name="G_STMT_END" value="while (0)"/> |
97 | 98 | <define name="_G_TYPE_CIC(ip, gt, ct)" value="((ct*) ip)"/> |
|
126 | 127 | <define name="g_try_new(struct_type, n_structs)" value="_G_NEW (struct_type, n_structs, try_malloc)"/> |
127 | 128 | <define name="g_try_new0(struct_type, n_structs)" value="_G_NEW (struct_type, n_structs, try_malloc0)"/> |
128 | 129 | <define name="g_try_renew(struct_type, mem, n_structs)" value="_G_RENEW (struct_type, mem, n_structs, try_realloc)"/> |
| 130 | + <define name="G_ENCODE_VERSION(major, minor)" value="((major) << 16 | (minor) << 8)"/> |
129 | 131 | <define name="GTK_BUTTON(obj)" value="((GtkButton*)(obj))"/> |
130 | 132 | <define name="GTK_BOX(obj)" value="((GtkBox*)(obj))"/> |
131 | 133 | <define name="GTK_CONTAINER(obj)" value="((GtkContainer*)(obj))"/> |
|
2251 | 2253 | </function> |
2252 | 2254 | <!-- GList * g_list_find (GList *list, gconstpointer data); --> |
2253 | 2255 | <function name="g_list_find"> |
| 2256 | + <pure/> |
2254 | 2257 | <leak-ignore/> |
2255 | 2258 | <noreturn>false</noreturn> |
2256 | 2259 | <returnValue type="GList"/> |
|
5218 | 5221 | <!-- gboolean g_str_has_prefix (const gchar* str, const gchar* prefix); --> |
5219 | 5222 | <!-- gboolean g_str_has_suffix (const gchar* str, const gchar* prefix); --> |
5220 | 5223 | <function name="g_str_has_prefix,g_str_has_suffix"> |
| 5224 | + <pure/> |
5221 | 5225 | <leak-ignore/> |
5222 | 5226 | <noreturn>false</noreturn> |
5223 | 5227 | <returnValue type="gboolean"/> |
|
6586 | 6590 | </function> |
6587 | 6591 | <!-- gboolean g_error_matches(const GError *error, GQuark domain, gint code); --> |
6588 | 6592 | <function name="g_error_matches"> |
| 6593 | + <pure/> |
6589 | 6594 | <noreturn>false</noreturn> |
6590 | 6595 | <returnValue type="gboolean"/> |
6591 | 6596 | <use-retval/> |
|
0 commit comments