Changeset 2560529


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.
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r6829afc r2560529  
    200200
    201201
    202 char CALLER_OWN *owl_filter_print(const owl_filter *f)
     202CALLER_OWN char *owl_filter_print(const owl_filter *f)
    203203{
    204204  GString *out = g_string_new("");
  • fmtext.c

    rce68f23 r2560529  
    171171 * freeing the return
    172172 */
    173 char CALLER_OWN *owl_fmtext_print_plain(const owl_fmtext *f)
     173CALLER_OWN char *owl_fmtext_print_plain(const owl_fmtext *f)
    174174{
    175175  return owl_strip_format_chars(f->buff->str);
  • global.c

    rce68f23 r2560529  
    724724 * necessary.
    725725 */
    726 owl_message CALLER_OWN *owl_global_messagequeue_popmsg(owl_global *g)
     726CALLER_OWN owl_message *owl_global_messagequeue_popmsg(owl_global *g)
    727727{
    728728  owl_message *out;
  • keypress.c

    r6829afc r2560529  
    129129/* OWL_META is definied in owl.h */
    130130
    131 char CALLER_OWN *owl_keypress_tostring(int j, int esc)
     131CALLER_OWN char *owl_keypress_tostring(int j, int esc)
    132132{
    133133  GString *kb;
  • 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.