Changeset c79a047 for functions.c


Ignore:
Timestamp:
Sep 28, 2009, 1:14:23 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
de8945b
Parents:
99068d3
git-author:
Anders Kaseorg <andersk@mit.edu> (09/27/09 19:29:43)
git-committer:
Anders Kaseorg <andersk@mit.edu> (09/28/09 13:14:23)
Message:
Correctly prototype functions with no parameters as foo(void), not foo().

foo() is a deprecated old-style prototype for a function that takes
any arguments.  Specifying foo(void) catches more bugs.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r27964fe rc79a047  
    4444}
    4545
    46 void owl_function_show_commands()
     46void owl_function_show_commands(void)
    4747{
    4848  owl_list l;
     
    7878}
    7979
    80 void owl_function_show_styles() {
     80void owl_function_show_styles(void) {
    8181  owl_list l;
    8282  owl_fmtext fm;
     
    120120}
    121121
    122 void owl_function_show_license()
     122void owl_function_show_license(void)
    123123{
    124124  const char *text;
     
    166166}
    167167
    168 void owl_function_show_quickstart()
     168void owl_function_show_quickstart(void)
    169169{
    170170    const char *message =
     
    357357}
    358358
    359 void owl_function_loopwrite_setup()
     359void owl_function_loopwrite_setup(void)
    360360{
    361361  owl_editwin *e;
     
    693693}
    694694
    695 void owl_function_nextmsg()
     695void owl_function_nextmsg(void)
    696696{
    697697  owl_function_nextmsg_full(NULL, 0, 1);
    698698}
    699699
    700 void owl_function_prevmsg()
     700void owl_function_prevmsg(void)
    701701{
    702702  owl_function_prevmsg_full(NULL, 0, 1);
    703703}
    704704
    705 void owl_function_nextmsg_notdeleted()
     705void owl_function_nextmsg_notdeleted(void)
    706706{
    707707  owl_function_nextmsg_full(NULL, 1, 1);
    708708}
    709709
    710 void owl_function_prevmsg_notdeleted()
     710void owl_function_prevmsg_notdeleted(void)
    711711{
    712712  owl_function_prevmsg_full(NULL, 1, 1);
     
    772772}
    773773
    774 void owl_function_expunge()
     774void owl_function_expunge(void)
    775775{
    776776  int curmsg;
     
    808808}
    809809
    810 void owl_function_firstmsg()
     810void owl_function_firstmsg(void)
    811811{
    812812  owl_global_set_curmsg(&g, 0);
     
    816816}
    817817
    818 void owl_function_lastmsg_noredisplay()
     818void owl_function_lastmsg_noredisplay(void)
    819819{
    820820  int oldcurmsg, curmsg;
     
    838838}
    839839
    840 void owl_function_lastmsg()
     840void owl_function_lastmsg(void)
    841841{
    842842  owl_function_lastmsg_noredisplay();
     
    844844}
    845845
    846 void owl_function_shift_right()
     846void owl_function_shift_right(void)
    847847{
    848848  owl_global_set_rightshift(&g, owl_global_get_rightshift(&g)+10);
     
    851851}
    852852
    853 void owl_function_shift_left()
     853void owl_function_shift_left(void)
    854854{
    855855  int shift;
     
    866866}
    867867
    868 void owl_function_unsuball()
     868void owl_function_unsuball(void)
    869869{
    870870  unsuball();
     
    946946}
    947947
    948 void owl_function_suspend()
     948void owl_function_suspend(void)
    949949{
    950950  endwin();
     
    956956}
    957957
    958 void owl_function_zaway_toggle()
     958void owl_function_zaway_toggle(void)
    959959{
    960960  if (!owl_global_is_zaway(&g)) {
     
    966966}
    967967
    968 void owl_function_zaway_on()
     968void owl_function_zaway_on(void)
    969969{
    970970  owl_global_set_zaway_on(&g);
     
    972972}
    973973
    974 void owl_function_zaway_off()
     974void owl_function_zaway_off(void)
    975975{
    976976  owl_global_set_zaway_off(&g);
     
    978978}
    979979
    980 void owl_function_aaway_toggle()
     980void owl_function_aaway_toggle(void)
    981981{
    982982  if (!owl_global_is_aaway(&g)) {
     
    988988}
    989989
    990 void owl_function_aaway_on()
     990void owl_function_aaway_on(void)
    991991{
    992992  owl_global_set_aaway_on(&g);
     
    995995}
    996996
    997 void owl_function_aaway_off()
     997void owl_function_aaway_off(void)
    998998{
    999999  owl_global_set_aaway_off(&g);
     
    10021002}
    10031003
    1004 void owl_function_quit()
     1004void owl_function_quit(void)
    10051005{
    10061006  char *ret;
     
    12271227}
    12281228
    1229 void owl_function_resize()
     1229void owl_function_resize(void)
    12301230{
    12311231  owl_global_set_resize_pending(&g);
    12321232}
    12331233
    1234 void owl_function_run_buffercommand()
     1234void owl_function_run_buffercommand(void)
    12351235{
    12361236  owl_editwin_do_callback(owl_global_get_typwin(&g));
     
    12641264}
    12651265
    1266 void owl_function_beep()
     1266void owl_function_beep(void)
    12671267{
    12681268  if (owl_global_is_bell(&g)) {
     
    13021302}
    13031303
    1304 void owl_function_full_redisplay()
     1304void owl_function_full_redisplay(void)
    13051305{
    13061306  redrawwin(owl_global_get_curs_recwin(&g));
     
    13841384}
    13851385
    1386 void owl_function_about()
     1386void owl_function_about(void)
    13871387{
    13881388  owl_function_popless_text(
     
    14101410}
    14111411
    1412 void owl_function_info()
     1412void owl_function_info(void)
    14131413{
    14141414  const owl_message *m;
     
    15451545 * style the user may be using
    15461546 */
    1547 void owl_function_curmsg_to_popwin()
     1547void owl_function_curmsg_to_popwin(void)
    15481548{
    15491549  const owl_view *v;
     
    16281628}
    16291629
    1630 void owl_function_mainwin_pagedown()
     1630void owl_function_mainwin_pagedown(void)
    16311631{
    16321632  int i;
     
    16431643}
    16441644
    1645 void owl_function_mainwin_pageup()
     1645void owl_function_mainwin_pageup(void)
    16461646{
    16471647  owl_global_set_curmsg(&g, owl_global_get_topmsg(&g));
     
    16491649}
    16501650
    1651 void owl_function_getsubs()
     1651void owl_function_getsubs(void)
    16521652{
    16531653  char *buff;
     
    16641664}
    16651665
    1666 void owl_function_printallvars()
     1666void owl_function_printallvars(void)
    16671667{
    16681668  const char *name;
     
    16911691}
    16921692
    1693 void owl_function_show_variables()
     1693void owl_function_show_variables(void)
    16941694{
    16951695  owl_list varnames;
     
    17451745}
    17461746
    1747 void owl_function_delete_automsgs()
     1747void owl_function_delete_automsgs(void)
    17481748{
    17491749  /* mark for deletion all messages in the current view that match the
     
    17781778}
    17791779
    1780 void owl_function_status()
     1780void owl_function_status(void)
    17811781{
    17821782  char buff[MAXPATHLEN+1];
     
    18581858}
    18591859
    1860 void owl_function_show_term()
     1860void owl_function_show_term(void)
    18611861{
    18621862  owl_fmtext fm;
     
    22712271}
    22722272
    2273 void owl_function_show_filters()
     2273void owl_function_show_filters(void)
    22742274{
    22752275  const owl_list *l;
     
    23162316}
    23172317
    2318 void owl_function_show_zpunts()
     2318void owl_function_show_zpunts(void)
    23192319{
    23202320  const owl_filter *f;
     
    27492749}
    27502750
    2751 void owl_function_show_colors()
     2751void owl_function_show_colors(void)
    27522752{
    27532753  owl_fmtext fm;
     
    28992899}
    29002900
    2901 void owl_function_show_keymaps()
     2901void owl_function_show_keymaps(void)
    29022902{
    29032903  owl_list l;
     
    33793379}
    33803380
    3381 void owl_function_toggleoneline()
     3381void owl_function_toggleoneline(void)
    33823382{
    33833383  owl_view *v;
     
    34383438}
    34393439
    3440 void owl_function_showerrs()
     3440void owl_function_showerrs(void)
    34413441{
    34423442  owl_fmtext fm;
     
    35523552}
    35533553
    3554 int owl_function_get_color_count()
     3554int owl_function_get_color_count(void)
    35553555{
    35563556     return COLORS;
     
    35793579}
    35803580
    3581 void owl_function_mark_message()
     3581void owl_function_mark_message(void)
    35823582{
    35833583  const owl_message *m;
     
    35983598}
    35993599
    3600 void owl_function_swap_cur_marked()
     3600void owl_function_swap_cur_marked(void)
    36013601{
    36023602  int marked_id;
Note: See TracChangeset for help on using the changeset viewer.