Commit Graph

25 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
0d31d3d686 drop rcsid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24356 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:30:37 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
1d7cce4014 make max_sz int since it will passed to %*s
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 09:58:29 +00:00
Love Hörnquist Åstrand
5cd0815781 use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21005 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:54:35 +00:00
Love Hörnquist Åstrand
9df9f6a9da revert 21003
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21004 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:53:10 +00:00
Love Hörnquist Åstrand
12df8538af use "roken.h" consitantly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21003 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-08 01:42:05 +00:00
Love Hörnquist Åstrand
709aa58c74 define ROKEN_LIB_FUNCTION on all exported functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-12 11:29:18 +00:00
Love Hörnquist Åstrand
3eeb75e552 make previous commit really work
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14699 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-30 16:53:19 +00:00
Love Hörnquist Åstrand
dbba0be7b2 avoid shadowing div
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14696 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-30 16:43:52 +00:00
Love Hörnquist Åstrand
78e5e11b1a Change the behavior of the parse_unit code to return the number of
bytes needed to print the whole string (minus the trailing '\0'), just
like snprintf.  Idea from bugreport from Gabriel Kihlman <gk@stacken.kth.se>.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14324 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-30 22:33:08 +00:00
Assar Westerlund
0a5f6ffdd9 use int instead of size_t as return values to be compatible with snprintf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-09-04 09:56:00 +00:00
Assar Westerlund
75ffa984b1 (parse_something): do not check the return value from strtod, it might
return != 0.0 when the string has no digits.  just testing if it
consumed any characters is enough and more resilient


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-03-26 00:47:06 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
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