Changeset d427f08 for functions.c
- Timestamp:
- Jun 22, 2011, 3:40:50 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- b343c2c
- Parents:
- 84a071f
- git-author:
- Jason Gross <jgross@mit.edu> (06/06/11 05:24:30)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (06/22/11 15:40:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
functions.c
r58f4fb2 rd427f08 14 14 #include "filterproc.h" 15 15 16 char *owl_function_command(const char *cmdbuff)16 G_GNUC_WARN_UNUSED_RESULT char *owl_function_command(const char *cmdbuff) 17 17 { 18 18 owl_function_debugmsg("executing command: %s", cmdbuff); … … 21 21 } 22 22 23 char *owl_function_command_argv(const char *const *argv, int argc)23 G_GNUC_WARN_UNUSED_RESULT 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 char *owl_function_style_describe(const char *name) { 97 G_GNUC_WARN_UNUSED_RESULT char *owl_function_style_describe(const char *name) 98 { 98 99 const char *desc; 99 100 char *s; … … 111 112 } 112 113 113 char *owl_function_cmd_describe(const char *name)114 G_GNUC_WARN_UNUSED_RESULT char *owl_function_cmd_describe(const char *name) 114 115 { 115 116 const owl_cmd *cmd = owl_cmddict_find(owl_global_get_cmddict(&g), name); … … 249 250 * owl_global_messagequeue_addmsg() for that. 250 251 */ 251 owl_message *owl_function_make_outgoing_aim(const char *body, const char *to)252 G_GNUC_WARN_UNUSED_RESULT owl_message *owl_function_make_outgoing_aim(const char *body, const char *to) 252 253 { 253 254 owl_message *m; … … 270 271 * owl_global_messagequeue_addmsg() for that. 271 272 */ 272 owl_message *owl_function_make_outgoing_loopback(const char *body)273 G_GNUC_WARN_UNUSED_RESULT owl_message *owl_function_make_outgoing_loopback(const char *body) 273 274 { 274 275 owl_message *m; … … 1899 1900 } 1900 1901 1901 owl_editwin *owl_function_start_question(const char *line)1902 G_GNUC_WARN_UNUSED_RESULT owl_editwin *owl_function_start_question(const char *line) 1902 1903 { 1903 1904 owl_editwin *tw; … … 1914 1915 } 1915 1916 1916 owl_editwin *owl_function_start_password(const char *line)1917 G_GNUC_WARN_UNUSED_RESULT owl_editwin *owl_function_start_password(const char *line) 1917 1918 { 1918 1919 owl_editwin *tw; … … 1931 1932 } 1932 1933 1933 char *owl_function_exec(int argc, const char *const *argv, const char *buff, int type)1934 G_GNUC_WARN_UNUSED_RESULT char *owl_function_exec(int argc, const char *const *argv, const char *buff, int type) 1934 1935 { 1935 1936 /* if type == 1 display in a popup … … 1974 1975 } 1975 1976 1976 char *owl_function_perl(int argc, const char *const *argv, const char *buff, int type)1977 G_GNUC_WARN_UNUSED_RESULT char *owl_function_perl(int argc, const char *const *argv, const char *buff, int type) 1977 1978 { 1978 1979 /* if type == 1 display in a popup … … 2144 2145 * Returns the name of the negated filter, which the caller must free. 2145 2146 */ 2146 char *owl_function_create_negative_filter(const char *filtername)2147 G_GNUC_WARN_UNUSED_RESULT char *owl_function_create_negative_filter(const char *filtername) 2147 2148 { 2148 2149 char *newname; … … 2241 2242 * If 'related' is nonzero, encompass unclasses and .d classes as well. 2242 2243 */ 2243 char *owl_function_classinstfilt(const char *c, const char *i, int related)2244 G_GNUC_WARN_UNUSED_RESULT char *owl_function_classinstfilt(const char *c, const char *i, int related) 2244 2245 { 2245 2246 owl_filter *f; … … 2328 2329 * the filter, which the caller must free. 2329 2330 */ 2330 char *owl_function_zuserfilt(const char *longuser)2331 G_GNUC_WARN_UNUSED_RESULT char *owl_function_zuserfilt(const char *longuser) 2331 2332 { 2332 2333 owl_filter *f; … … 2374 2375 * Returns the name of the filter, which the caller must free. 2375 2376 */ 2376 char *owl_function_aimuserfilt(const char *user)2377 G_GNUC_WARN_UNUSED_RESULT char *owl_function_aimuserfilt(const char *user) 2377 2378 { 2378 2379 owl_filter *f; … … 2412 2413 } 2413 2414 2414 char *owl_function_typefilt(const char *type)2415 G_GNUC_WARN_UNUSED_RESULT char *owl_function_typefilt(const char *type) 2415 2416 { 2416 2417 owl_filter *f; … … 2468 2469 } 2469 2470 2470 static char *owl_function_smartfilter_cc(const owl_message *m) { 2471 static G_GNUC_WARN_UNUSED_RESULT char *owl_function_smartfilter_cc(const owl_message *m) 2472 { 2471 2473 const char *ccs; 2472 2474 char *ccs_quoted; … … 2519 2521 * name to the AIM conversation with that user 2520 2522 */ 2521 char *owl_function_smartfilter(int type, int invert_related)2523 G_GNUC_WARN_UNUSED_RESULT char *owl_function_smartfilter(int type, int invert_related) 2522 2524 { 2523 2525 const owl_view *v; … … 2858 2860 } 2859 2861 2860 char *owl_function_keymap_summary(const char *name)2862 G_GNUC_WARN_UNUSED_RESULT char *owl_function_keymap_summary(const char *name) 2861 2863 { 2862 2864 const owl_keymap *km … … 2972 2974 /* strips formatting from ztext and returns the unformatted text. 2973 2975 * caller is responsible for freeing. */ 2974 char *owl_function_ztext_stylestrip(const char *zt)2976 G_GNUC_WARN_UNUSED_RESULT char *owl_function_ztext_stylestrip(const char *zt) 2975 2977 { 2976 2978 owl_fmtext fm;
Note: See TracChangeset
for help on using the changeset viewer.