Merge branch '1.37'
[geany-mirror.git] / ctags / main / flags.h
blobaf436368279e655c64e649a4fbd5022c3f427b12
1 /*
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 {
18 char shortChar;
19 const char *longStr;
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;
24 } flagDefinition;
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 */