From e7015811786e457e9a212d70165a897202fb363e Mon Sep 17 00:00:00 2001 From: "Steffen (Daode) Nurpmeso" Date: Tue, 6 May 2014 16:10:10 +0200 Subject: [PATCH] Localize enum ltoken in list.c --- list.c | 22 ++++++++++++++++++++++ nail.h | 22 ---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/list.c b/list.c index 9cf28697..7fe48728 100644 --- a/list.c +++ b/list.c @@ -41,6 +41,28 @@ # include "nail.h" #endif +/* Token values returned by the scanner used for argument lists. + * Also, sizes of scanner-related things */ +enum ltoken { + TEOL = 0, /* End of the command line */ + TNUMBER = 1, /* A message number */ + TDASH = 2, /* A simple dash */ + TSTRING = 3, /* A string (possibly containing -) */ + TDOT = 4, /* A "." */ + TUP = 5, /* A "^" */ + TDOLLAR = 6, /* A "$" */ + TSTAR = 7, /* A "*" */ + TOPEN = 8, /* A '(' */ + TCLOSE = 9, /* A ')' */ + TPLUS = 10, /* A '+' */ + TERROR = 11, /* A lexical error */ + TCOMMA = 12, /* A ',' */ + TSEMI = 13, /* A ';' */ + TBACK = 14 /* A '`' */ +}; + +#define REGDEP 2 /* Maximum regret depth. */ + enum idfield { ID_REFERENCES, ID_IN_REPLY_TO diff --git a/nail.h b/nail.h index 90a2533c..a85c072a 100644 --- a/nail.h +++ b/nail.h @@ -1215,28 +1215,6 @@ struct ignoretab { } *i_head[HSHSIZE]; }; -/* Token values returned by the scanner used for argument lists. - * Also, sizes of scanner-related things */ -enum ltoken { - TEOL = 0, /* End of the command line */ - TNUMBER = 1, /* A message number */ - TDASH = 2, /* A simple dash */ - TSTRING = 3, /* A string (possibly containing -) */ - TDOT = 4, /* A "." */ - TUP = 5, /* An "^" */ - TDOLLAR = 6, /* A "$" */ - TSTAR = 7, /* A "*" */ - TOPEN = 8, /* An '(' */ - TCLOSE = 9, /* A ')' */ - TPLUS = 10, /* A '+' */ - TERROR = 11, /* A lexical error */ - TCOMMA = 12, /* A ',' */ - TSEMI = 13, /* A ';' */ - TBACK = 14 /* A '`' */ -}; - -#define REGDEP 2 /* Maximum regret depth. */ - /* For the 'shortcut' and 'unshortcut' functionality */ struct shortcut { struct shortcut *sh_next; /* next shortcut in list */ -- 2.11.4.GIT