Commit Graph

11 Commits

Author SHA1 Message Date
Assar Westerlund
a17faa3b99 (parse_something): try to handle the case of no value specified a
little bit better


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7322 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-07 11:10:03 +00:00
Assar Westerlund
2dbeee4ddc (acc_units): move the special case of 0 -> 1 to parse_something to
avoid having it happen at the end of the string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6358 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:41:35 +00:00
Assar Westerlund
fb8d7e5910 unsigned char-correctness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5269 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-12-20 15:36:03 +00:00
Assar Westerlund
617e2be4a3 (parse_something): func is called with val == 0 if no unit was given
(acc_flags, acc_units): update to new standard


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5263 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-12-06 18:52:09 +00:00
Assar Westerlund
66b3034e8e more braces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5226 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-22 09:45:42 +00:00
Assar Westerlund
a42a349ed6 (unparse_units_approx): new function that will only print the first unit.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4442 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-20 07:51:04 +00:00
Assar Westerlund
c696f60eb3 (print_flags_table, print_units_table): new functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4217 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-17 03:21:31 +00:00
Johan Danielsson
2e46dd73d2 Change the list of separating characters (between units) to comma,
space, and tab, removing digits. Having digits in this list makes a
flag like `T42 generate a parse error. This change makes `17m3s' an
invalid time-spec (you need a space).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3932 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:12:02 +00:00
Assar Westerlund
076ee4208c (parse_something): ignore white-space and ','
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3828 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 01:00:06 +00:00
Assar Westerlund
fa382cbd3f generalised parse_units' and unparse_units' and added new functions
`parse_flags' and `unparse_flags' that use these


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3237 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 22:12:30 +00:00
Assar Westerlund
8cae578cb0 new files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2621 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-24 11:31:43 +00:00