Commit Graph

16 Commits

Author SHA1 Message Date
Jeffrey Altman
04527412e3 Follow the Linux kernel's lead on "fallthrough"
The pseudo keyword 'fallthrough' is defined such that case statement
blocks must end with any of these keywords:
 * break;
 * fallthrough;
 * continue;
 * goto <label>;
 * return [expression];
 *
 *  gcc: https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html#Statement-Attributes

The macro is defined either as

  __attribute__((__fallthrough__))

or as

  do {} while (0)  /* fallthrough */

not including the semicolon.

This change implements the Linux kernel style and updates several locations
where "/*fallthrough*/ and /* FALLTHROUGH */ were not previously replaced.

Externally imported code such as libedit, libtommath and sqlite are
restored to their unaltered state.

Change-Id: I69db8167b0d5884f55d96d72de3059a0235a1ba3
2022-01-21 10:39:47 -05:00
Nicolas Williams
c607135a03 Use fallthrough statement attribute (moar) 2022-01-14 16:53:34 -06:00
Nicolas Williams
ddc6113610 Use fallthrough statement attribute 2022-01-14 16:32:58 -06:00
Asanka Herath
d00f9984a5 Make roken build on windows
Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
2009-11-24 21:42:02 -08:00
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
4c98f8d34c rewrite str[pf]time for testing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-09 08:45:54 +00:00
Love Hörnquist Åstrand
52ec27616b cast to unsigned char to make sure its not negative when passing it to
is* functions


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16062 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-09-13 20:19:11 +00:00
Love Hörnquist Åstrand
eb738780bf Write a new parse_number function that is possible to limit that
amount of numbers used, with this strptime can handle
strptime("200505", "%Y%m", &tm);


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15500 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-21 18:52:37 +00:00
Love Hörnquist Åstrand
1f37d21729 UNCONST return value from strptime
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15414 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 16:57:08 +00:00
Love Hörnquist Åstrand
5802e5f856 use english spelling of March
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15173 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-18 09:54:53 +00:00
Love Hörnquist Åstrand
0b59fd30dc cast to unsigned char to make sure its not negative when passing it to
to* functions


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14821 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-18 08:07:40 +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
7d3afe0d9b let t and n match zero or more whitespaces
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12964 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-04 05:15:29 +00:00
Assar Westerlund
0d3fc31121 new file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7347 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-12 15:29:55 +00:00