Commit Graph

11 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
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07: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
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
71e0f0157d Do recursive call to rk_fnmatch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-10 17:13:34 +00:00
Love Hörnquist Åstrand
3fa3fa004c Prefix strvis functions with rk_ and do symbol renaming.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-12-11 18:58:15 +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
cd6d1bcf87 In 1997, the University of California, Berkeley issued a statement
retroactively relicensing all code held under their copyright from a
4-clause 'traditional' BSD license to a new 3-clause 'revised' BSD
license, which removed the advertising clause.

From NetBSD, via Joel Baker, and Alistair G. Crooks


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-02 22:57:46 +00:00
Johan Danielsson
a55845cbca fnmatch from NetBSD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3853 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 03:48:39 +00:00