style: sort includes in scanners

* src/scan-code.l, src/scan-gram.l, src/scan-skel.l: Reorder includes.
This commit is contained in:
Akim Demaille
2019-01-01 18:02:41 +01:00
parent 86cb2e72fd
commit d05b8f181e
3 changed files with 35 additions and 36 deletions

View File

@@ -21,24 +21,24 @@
%option prefix="code_" outfile="lex.yy.c"
%{
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef code_wrap
#define code_wrap() 1
#include <c-ctype.h>
#include <get-errno.h>
#include <quote.h>
#include <src/complain.h>
#include <src/getargs.h>
#include <src/muscle-tab.h>
#include <src/reader.h>
#include <src/scan-code.h>
#include <src/symlist.h>
#define FLEX_PREFIX(Id) code_ ## Id
#include <src/flex-scanner.h>
#include <src/complain.h>
#include <src/reader.h>
#include <src/getargs.h>
#include <src/muscle-tab.h>
#include <src/scan-code.h>
#include <src/symlist.h>
#include <c-ctype.h>
#include <get-errno.h>
#include <quote.h>
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef code_wrap
#define code_wrap() 1
/* The current calling start condition: SC_RULE_ACTION or
SC_SYMBOL_ACTION. */

View File

@@ -21,27 +21,26 @@
%option prefix="gram_" outfile="lex.yy.c"
%{
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef gram_wrap
#define gram_wrap() 1
#define FLEX_PREFIX(Id) gram_ ## Id
#include <src/flex-scanner.h>
#include <c-ctype.h>
#include <mbswidth.h>
#include <quote.h>
#include <quotearg.h>
#include <src/complain.h>
#include <src/files.h>
#include <src/getargs.h>
#include <src/gram.h>
#include <quotearg.h>
#include <src/reader.h>
#include <src/scan-gram.h>
#include <src/uniqstr.h>
#include <c-ctype.h>
#include <mbswidth.h>
#include <quote.h>
#define FLEX_PREFIX(Id) gram_ ## Id
#include <src/flex-scanner.h>
#include <src/scan-gram.h>
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef gram_wrap
#define gram_wrap() 1
#define YY_DECL GRAM_LEX_DECL

View File

@@ -21,24 +21,24 @@
%option prefix="skel_" outfile="lex.yy.c"
%{
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef skel_wrap
#define skel_wrap() 1
#define FLEX_PREFIX(Id) skel_ ## Id
#include <src/flex-scanner.h>
#include <error.h>
#include <dirname.h>
#include <error.h>
#include <path-join.h>
#include <quotearg.h>
#include <src/complain.h>
#include <src/getargs.h>
#include <src/files.h>
#include <src/getargs.h>
#include <src/scan-skel.h>
#define FLEX_PREFIX(Id) skel_ ## Id
#include <src/flex-scanner.h>
/* Work around a bug in flex 2.5.31. See Debian bug 333231
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */
#undef skel_wrap
#define skel_wrap() 1
#define YY_DECL static int skel_lex (void)
YY_DECL;