Changeset d427f08 for commands.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
-
commands.c
r58f4fb2 rd427f08 41 41 42 42 43 intowl_cmd_add_defaults(owl_cmddict *cd)43 void owl_cmd_add_defaults(owl_cmddict *cd) 44 44 { 45 45 owl_cmd commands_to_init[] = { … … 1040 1040 }; 1041 1041 1042 int ret =owl_cmddict_add_from_list(cd, commands_to_init);1042 owl_cmddict_add_from_list(cd, commands_to_init); 1043 1043 owl_cmd *cmd; 1044 1044 for (cmd = commands_to_init; cmd->name != NULL; cmd++) 1045 1045 owl_cmd_cleanup(cmd); 1046 return ret;1047 1046 } 1048 1047 … … 1374 1373 } 1375 1374 1376 char *owl_command_smartfilter(int argc, const char *const *argv, const char *buff)1375 G_GNUC_WARN_UNUSED_RESULT char *owl_command_smartfilter(int argc, const char *const *argv, const char *buff) 1377 1376 { 1378 1377 char *filtname = NULL; … … 1414 1413 } 1415 1414 1416 char *owl_command_get_shift(int argc, const char *const *argv, const char *buff)1415 G_GNUC_WARN_UNUSED_RESULT char *owl_command_get_shift(int argc, const char *const *argv, const char *buff) 1417 1416 { 1418 1417 if(argc != 1) … … 1645 1644 1646 1645 1647 char *owl_command_exec(int argc, const char *const *argv, const char *buff)1646 G_GNUC_WARN_UNUSED_RESULT char *owl_command_exec(int argc, const char *const *argv, const char *buff) 1648 1647 { 1649 1648 return owl_function_exec(argc, argv, buff, OWL_OUTPUT_RETURN); 1650 1649 } 1651 1650 1652 char *owl_command_pexec(int argc, const char *const *argv, const char *buff)1651 G_GNUC_WARN_UNUSED_RESULT char *owl_command_pexec(int argc, const char *const *argv, const char *buff) 1653 1652 { 1654 1653 return owl_function_exec(argc, argv, buff, OWL_OUTPUT_POPUP); 1655 1654 } 1656 1655 1657 char *owl_command_aexec(int argc, const char *const *argv, const char *buff)1656 G_GNUC_WARN_UNUSED_RESULT char *owl_command_aexec(int argc, const char *const *argv, const char *buff) 1658 1657 { 1659 1658 return owl_function_exec(argc, argv, buff, OWL_OUTPUT_ADMINMSG); 1660 1659 } 1661 1660 1662 char *owl_command_perl(int argc, const char *const *argv, const char *buff)1661 G_GNUC_WARN_UNUSED_RESULT char *owl_command_perl(int argc, const char *const *argv, const char *buff) 1663 1662 { 1664 1663 return owl_function_perl(argc, argv, buff, OWL_OUTPUT_RETURN); 1665 1664 } 1666 1665 1667 char *owl_command_pperl(int argc, const char *const *argv, const char *buff)1666 G_GNUC_WARN_UNUSED_RESULT char *owl_command_pperl(int argc, const char *const *argv, const char *buff) 1668 1667 { 1669 1668 return owl_function_perl(argc, argv, buff, OWL_OUTPUT_POPUP); 1670 1669 } 1671 1670 1672 char *owl_command_aperl(int argc, const char *const *argv, const char *buff)1671 G_GNUC_WARN_UNUSED_RESULT char *owl_command_aperl(int argc, const char *const *argv, const char *buff) 1673 1672 { 1674 1673 return owl_function_perl(argc, argv, buff, OWL_OUTPUT_ADMINMSG); 1675 1674 } 1676 1675 1677 char *owl_command_multi(int argc, const char *const *argv, const char *buff)1676 G_GNUC_WARN_UNUSED_RESULT char *owl_command_multi(int argc, const char *const *argv, const char *buff) 1678 1677 { 1679 1678 char *lastrv = NULL, *newbuff; … … 2595 2594 } 2596 2595 2597 char *owl_command_getstyle(int argc, const char *const *argv, const char *buff)2596 G_GNUC_WARN_UNUSED_RESULT char *owl_command_getstyle(int argc, const char *const *argv, const char *buff) 2598 2597 { 2599 2598 const char *stylename; … … 2639 2638 } 2640 2639 2641 char *owl_command_with_history(int argc, const char *const *argv, const char *buff)2640 G_GNUC_WARN_UNUSED_RESULT char *owl_command_with_history(int argc, const char *const *argv, const char *buff) 2642 2641 { 2643 2642 owl_history *hist;
Note: See TracChangeset
for help on using the changeset viewer.