Changeset 65c753e for tester.c


Ignore:
Timestamp:
Feb 4, 2011, 3:49:44 PM (10 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
fc7481a
Parents:
d3941a0
git-author:
David Benjamin <davidben@mit.edu> (01/24/11 19:38:53)
git-committer:
David Benjamin <davidben@mit.edu> (02/04/11 15:49:44)
Message:
Use a GPtrArray to manage the growing list in owl_parseline

It's much nicer than dealing with piles of owl_realloc. Also ensure that
our argvs are NULL-terminated so we may used the various *v glib
functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    rf47696f r65c753e  
    186186      __argv = owl_parseline(__quoted, &__argc);        \
    187187      FAIL_UNLESS(desc " - arg count", __argc == 1);    \
     188      FAIL_UNLESS(desc " - null-terminated",            \
     189                  __argv[__argc] == NULL);              \
    188190      FAIL_UNLESS(desc " - parsed",                     \
    189191                  !strcmp(__argv[0], unquoted));        \
Note: See TracChangeset for help on using the changeset viewer.