Changeset 78f6c35 for commands.c


Ignore:
Timestamp:
May 24, 2011, 9:36:28 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
697221f
Parents:
2d415cc
git-author:
David Benjamin <davidben@mit.edu> (04/04/11 01:27:16)
git-committer:
David Benjamin <davidben@mit.edu> (05/24/11 21:36:28)
Message:
Don't use skiptokens in punt/unpunt

There was no need for it. This cuts down on one of the more nasty usages
of skiptokens in command parsing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r2d415cc r78f6c35  
    24642464  owl_list * fl;
    24652465  owl_filter * f;
    2466   char * text;
    24672466  int i;
    24682467
     
    24832482      }
    24842483    }
    2485     text = owl_string_build_quoted("filter %q", argv[1]);
    2486     owl_function_punt(text, unpunt);
    2487     g_free(text);
     2484    const char *filter[] = {"filter", argv[1]};
     2485    owl_function_punt(2, filter, unpunt);
    24882486  } else {
    2489     owl_function_punt(skiptokens(buff, 1), unpunt);
     2487    /* Pass in argv[1]..argv[argc-1]. */
     2488    owl_function_punt(argc - 1, argv + 1, unpunt);
    24902489  }
    24912490}
Note: See TracChangeset for help on using the changeset viewer.