diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-04-12 08:23:31 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-04-12 08:23:31 +0000 |
commit | d168187781096ebce8875465a1ac0d8ef42bdef8 (patch) | |
tree | 16ed20858dec9d8349da6c6d839bb2bb8526fc6e /usr.bin/spell | |
parent | d9349acd8c7813ac3bc17ef771803b40fdf1bcbc (diff) |
Clean up <rev> handling. Whenever a revision is specified after a
flag, it calls one of two new functions: rcs_setrevstr() or
rcs_setrevstr2(). rcs_setrevstr() sets a string to another string,
and complains if it was set more than once. rcs_setrevstr2() takes
two strings, sets one after the other, and fatal()s if more than
two strings were given.
All <rev> handling is now done in the loop that goes through each
argv. This is necessary for parsing symbols, which will be much
easier after this.
Along the way a lot of memory leaks were cleaned up. There is one
area where rcs_set_rev() is called, which allocates a RCSNUM and
stores it in pb.newrev, but it segfaults whenever I try to rcsnum_free()
it. I put an /* XXX */ comment there for now.
Passes regression tests and the code is less complicated in some
ways (to me).
Suggestions and OK xsa@
Diffstat (limited to 'usr.bin/spell')
0 files changed, 0 insertions, 0 deletions