4 * Copyright (c) 2000-2003, Darren Hiebert
6 * This source code is released for free distribution under the terms of the
7 * GNU General Public License version 2 or (at your option) any later version.
9 * Defines external interface to option processing.
11 #ifndef CTAGS_MAIN_FLAGS_H
12 #define CTAGS_MAIN_FLAGS_H
14 #define LONG_FLAGS_OPEN '{'
15 #define LONG_FLAGS_CLOSE '}'
17 typedef struct sFlagDefinition
{
20 void (* shortProc
) (char c
, void *data
);
21 void (* longProc
) (const char* const s
, const char* const param
, void *data
);
22 const char *paramName
;
23 const char *description
;
26 extern void flagsEval (const char* flags
, flagDefinition
* defs
, unsigned int ndefs
, void* data
);
27 extern void flagPrintHelp (flagDefinition
* def
, unsigned int ndefs
);
29 #endif /* CTAGS_MAIN_FLAGS_H */