Changeset 6829afc for functions.c
- 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
-
functions.c
rb470451 r6829afc 14 14 #include "filterproc.h" 15 15 16 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_command(const char *cmdbuff)16 CALLER_OWN char *owl_function_command(const char *cmdbuff) 17 17 { 18 18 owl_function_debugmsg("executing command: %s", cmdbuff); … … 21 21 } 22 22 23 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_command_argv(const char *const *argv, int argc)23 CALLER_OWN char *owl_function_command_argv(const char *const *argv, int argc) 24 24 { 25 25 return owl_cmddict_execute_argv(owl_global_get_cmddict(&g), … … 95 95 } 96 96 97 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_style_describe(const char *name)97 CALLER_OWN char *owl_function_style_describe(const char *name) 98 98 { 99 99 const char *desc; … … 112 112 } 113 113 114 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_cmd_describe(const char *name)114 CALLER_OWN char *owl_function_cmd_describe(const char *name) 115 115 { 116 116 const owl_cmd *cmd = owl_cmddict_find(owl_global_get_cmddict(&g), name); … … 250 250 * owl_global_messagequeue_addmsg() for that. 251 251 */ 252 G_GNUC_WARN_UNUSED_RESULTowl_message *owl_function_make_outgoing_aim(const char *body, const char *to)252 CALLER_OWN owl_message *owl_function_make_outgoing_aim(const char *body, const char *to) 253 253 { 254 254 owl_message *m; … … 271 271 * owl_global_messagequeue_addmsg() for that. 272 272 */ 273 G_GNUC_WARN_UNUSED_RESULTowl_message *owl_function_make_outgoing_loopback(const char *body)273 CALLER_OWN owl_message *owl_function_make_outgoing_loopback(const char *body) 274 274 { 275 275 owl_message *m; … … 1900 1900 } 1901 1901 1902 G_GNUC_WARN_UNUSED_RESULTowl_editwin *owl_function_start_question(const char *line)1902 CALLER_OWN owl_editwin *owl_function_start_question(const char *line) 1903 1903 { 1904 1904 owl_editwin *tw; … … 1915 1915 } 1916 1916 1917 G_GNUC_WARN_UNUSED_RESULTowl_editwin *owl_function_start_password(const char *line)1917 CALLER_OWN owl_editwin *owl_function_start_password(const char *line) 1918 1918 { 1919 1919 owl_editwin *tw; … … 1932 1932 } 1933 1933 1934 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_exec(int argc, const char *const *argv, const char *buff, int type)1934 CALLER_OWN char *owl_function_exec(int argc, const char *const *argv, const char *buff, int type) 1935 1935 { 1936 1936 /* if type == 1 display in a popup … … 1975 1975 } 1976 1976 1977 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_perl(int argc, const char *const *argv, const char *buff, int type)1977 CALLER_OWN char *owl_function_perl(int argc, const char *const *argv, const char *buff, int type) 1978 1978 { 1979 1979 /* if type == 1 display in a popup … … 2145 2145 * Returns the name of the negated filter, which the caller must free. 2146 2146 */ 2147 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_create_negative_filter(const char *filtername)2147 CALLER_OWN char *owl_function_create_negative_filter(const char *filtername) 2148 2148 { 2149 2149 char *newname; … … 2242 2242 * If 'related' is nonzero, encompass unclasses and .d classes as well. 2243 2243 */ 2244 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_classinstfilt(const char *c, const char *i, int related)2244 CALLER_OWN char *owl_function_classinstfilt(const char *c, const char *i, int related) 2245 2245 { 2246 2246 owl_filter *f; … … 2329 2329 * the filter, which the caller must free. 2330 2330 */ 2331 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_zuserfilt(const char *longuser)2331 CALLER_OWN char *owl_function_zuserfilt(const char *longuser) 2332 2332 { 2333 2333 owl_filter *f; … … 2375 2375 * Returns the name of the filter, which the caller must free. 2376 2376 */ 2377 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_aimuserfilt(const char *user)2377 CALLER_OWN char *owl_function_aimuserfilt(const char *user) 2378 2378 { 2379 2379 owl_filter *f; … … 2413 2413 } 2414 2414 2415 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_typefilt(const char *type)2415 CALLER_OWN char *owl_function_typefilt(const char *type) 2416 2416 { 2417 2417 owl_filter *f; … … 2469 2469 } 2470 2470 2471 static G_GNUC_WARN_UNUSED_RESULTchar *owl_function_smartfilter_cc(const owl_message *m)2471 static CALLER_OWN char *owl_function_smartfilter_cc(const owl_message *m) 2472 2472 { 2473 2473 const char *ccs; … … 2521 2521 * name to the AIM conversation with that user 2522 2522 */ 2523 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_smartfilter(int type, int invert_related)2523 CALLER_OWN char *owl_function_smartfilter(int type, int invert_related) 2524 2524 { 2525 2525 const owl_view *v; … … 2860 2860 } 2861 2861 2862 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_keymap_summary(const char *name)2862 CALLER_OWN char *owl_function_keymap_summary(const char *name) 2863 2863 { 2864 2864 const owl_keymap *km … … 2974 2974 /* strips formatting from ztext and returns the unformatted text. 2975 2975 * caller is responsible for freeing. */ 2976 G_GNUC_WARN_UNUSED_RESULTchar *owl_function_ztext_stylestrip(const char *zt)2976 CALLER_OWN char *owl_function_ztext_stylestrip(const char *zt) 2977 2977 { 2978 2978 owl_fmtext fm;
Note: See TracChangeset
for help on using the changeset viewer.