- Timestamp:
- Jun 25, 2011, 3:26:15 AM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 12294d2
- Parents:
- 95b52d1
- git-author:
- David Benjamin <davidben@mit.edu> (06/24/11 22:56:15)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/25/11 03:26:15)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r95b52d1 r6829afc 199 199 #define OWL_ENABLE_ZCRYPT 1 200 200 #endif 201 202 /* Annotate functions in which the caller owns the return value and is 203 * responsible for ensuring it is freed. */ 204 #define CALLER_OWN G_GNUC_WARN_UNUSED_RESULT 201 205 202 206 #define OWL_META(key) ((key)|010000) … … 251 255 * WARNING: this approach is hard to make 252 256 * thread-safe... */ 253 char G_GNUC_WARN_UNUSED_RESULT*(*get_tostring_fn)(const struct _owl_variable *v, const void *val);257 char CALLER_OWN *(*get_tostring_fn)(const struct _owl_variable *v, const void *val); 254 258 /* converts val to a string; 255 259 * caller must free the result */ … … 313 317 314 318 /* These don't take any context */ 315 char G_GNUC_WARN_UNUSED_RESULT*(*cmd_args_fn)(int argc, const char *const *argv, const char *buff);319 char CALLER_OWN *(*cmd_args_fn)(int argc, const char *const *argv, const char *buff); 316 320 /* takes argv and the full command as buff. 317 321 * caller must free return value if !NULL */ … … 320 324 321 325 /* The following also take the active context if it's valid */ 322 char G_GNUC_WARN_UNUSED_RESULT*(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff);326 char CALLER_OWN *(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff); 323 327 /* takes argv and the full command as buff. 324 328 * caller must free return value if !NULL */
Note: See TracChangeset
for help on using the changeset viewer.