Changeset 2560529 for owl.h


Ignore:
Timestamp:
Jun 25, 2011, 4:09:25 AM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
bc932fd, f2a96c0, d8e2f07
Parents:
c266281
Message:
Consistently place function annotation at the beginning

char CALLER_OWN * doesn't make a whole lot of sense.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    rc266281 r2560529  
    255255                                 * WARNING:  this approach is hard to make
    256256                                 * thread-safe... */
    257   char CALLER_OWN *(*get_tostring_fn)(const struct _owl_variable *v, const void *val);
     257  CALLER_OWN char *(*get_tostring_fn)(const struct _owl_variable *v, const void *val);
    258258                                /* converts val to a string;
    259259                                 * caller must free the result */
     
    311311 
    312312  /* These don't take any context */
    313   char CALLER_OWN *(*cmd_args_fn)(int argc, const char *const *argv, const char *buff);
     313  CALLER_OWN char *(*cmd_args_fn)(int argc, const char *const *argv, const char *buff);
    314314                                /* takes argv and the full command as buff.
    315315                                 * caller must free return value if !NULL */
     
    318318
    319319  /* The following also take the active context if it's valid */
    320   char CALLER_OWN *(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff);
     320  CALLER_OWN char *(*cmd_ctxargs_fn)(void *ctx, int argc, const char *const *argv, const char *buff);
    321321                                /* takes argv and the full command as buff.
    322322                                 * caller must free return value if !NULL */
Note: See TracChangeset for help on using the changeset viewer.