diff options
| author | root <root@dc13.lemmi> | 2020-07-21 10:00:46 +0200 |
|---|---|---|
| committer | root <root@dc13.lemmi> | 2020-07-21 10:00:46 +0200 |
| commit | 1192c4575ea7afdf38e3fa0df4587a08620af11e (patch) | |
| tree | 6910a62487c282d0840d2e668aa7eb40b7c8a3fd /project/src/ui/ui-wpatt.h | |
| parent | 76de8a89f7c1d1b4522eb66e8f89d248e8c1781f (diff) | |
SZS v2.18a
Diffstat (limited to '')
| -rw-r--r-- | project/src/ui/ui-wpatt.h | 324 |
1 files changed, 324 insertions, 0 deletions
diff --git a/project/src/ui/ui-wpatt.h b/project/src/ui/ui-wpatt.h new file mode 100644 index 0000000..89befd5 --- /dev/null +++ b/project/src/ui/ui-wpatt.h @@ -0,0 +1,324 @@ + +/*************************************************************************** + * _______ _______ _______ * + * | ___ |____ | ___ | * + * | | |_| / /| | |_| * + * | |_____ / / | |_____ * + * |_____ | / / |_____ | * + * _ | | / / _ | | * + * | |___| |/ /____| |___| | * + * |_______|_______|_______| * + * * + * Wiimms SZS Tools * + * * + *************************************************************************** + * * + * This file is part of the SZS project. * + * Visit https://szs.wiimm.de/ for project details and sources. * + * * + * Copyright (c) 2011-2020 by Dirk Clemens <wiimm@wiimm.de> * + * * + *************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * See file gpl-2.0.txt or http://www.gnu.org/licenses/gpl-2.0.txt * + * * + *************************************************************************** + * * + * >>> This file is automatically generated by './src/gen-ui.c'. <<< * + * >>> Do not edit this file! <<< * + * * + ***************************************************************************/ + + +#ifndef SZS_UI_WPATT_H +#define SZS_UI_WPATT_H +#include "dclib-basics.h" +#include "dclib-ui.h" + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// enum enumOptions /////////////// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum enumOptions +{ + OPT_NONE, + + //----- command specific options ----- + + OPT_ROUND, + OPT_LONG, + OPT_NO_HEADER, + OPT_BRIEF, + OPT_NO_PARAM, + OPT_NO_ECHO, + OPT_NO_CHECK, + OPT_DEST, + OPT_DEST2, + OPT_ESC, + OPT_OVERWRITE, + OPT_NUMBER, + OPT_REMOVE_DEST, + OPT_UPDATE, + OPT_PRESERVE, + OPT_IGNORE, + OPT_SECTIONS, + + OPT__N_SPECIFIC, // == 18 + + //----- global options ----- + + OPT_VERSION, + OPT_HELP, + OPT_XHELP, + OPT_ALLOW_ALL, + OPT_COMPATIBLE, + OPT_WIDTH, + OPT_QUIET, + OPT_VERBOSE, + OPT_LOGGING, + OPT_DE, + OPT_COLORS, + OPT_NO_COLORS, + OPT_CT_CODE, + OPT_LE_CODE, + OPT_CHDIR, + OPT_CONST, + OPT_MAX_FILE_SIZE, + OPT_TRACKS, + OPT_ARENAS, + OPT_PAT, + OPT_UTF_8, + OPT_NO_UTF_8, + OPT_TEST, + OPT_FORCE, + OPT_REPAIR_MAGICS, + OPT_OLD, + OPT_STD, + OPT_NEW, + OPT_EXTRACT, + + OPT__N_TOTAL // == 47 + +} enumOptions; + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// enum enumOptionsBit /////////////// +/////////////////////////////////////////////////////////////////////////////// + +// ***** only for verification ***** + +//typedef enum enumOptionsBit +//{ +// //----- command specific options ----- +// +// OB_ROUND = 1llu << OPT_ROUND, +// OB_LONG = 1llu << OPT_LONG, +// OB_NO_HEADER = 1llu << OPT_NO_HEADER, +// OB_BRIEF = 1llu << OPT_BRIEF, +// OB_NO_PARAM = 1llu << OPT_NO_PARAM, +// OB_NO_ECHO = 1llu << OPT_NO_ECHO, +// OB_NO_CHECK = 1llu << OPT_NO_CHECK, +// OB_DEST = 1llu << OPT_DEST, +// OB_DEST2 = 1llu << OPT_DEST2, +// OB_ESC = 1llu << OPT_ESC, +// OB_OVERWRITE = 1llu << OPT_OVERWRITE, +// OB_NUMBER = 1llu << OPT_NUMBER, +// OB_REMOVE_DEST = 1llu << OPT_REMOVE_DEST, +// OB_UPDATE = 1llu << OPT_UPDATE, +// OB_PRESERVE = 1llu << OPT_PRESERVE, +// OB_IGNORE = 1llu << OPT_IGNORE, +// OB_SECTIONS = 1llu << OPT_SECTIONS, +// +// //----- group & command options ----- +// +// OB_GRP_DEST = OB_DEST +// | OB_DEST2 +// | OB_ESC +// | OB_OVERWRITE +// | OB_NUMBER +// | OB_REMOVE_DEST +// | OB_UPDATE +// | OB_PRESERVE, +// +// OB_GRP_TEXTOUT = OB_IGNORE +// | OB_NO_HEADER +// | OB_BRIEF, +// +// OB_CMD_VERSION = OB_BRIEF +// | OB_SECTIONS +// | OB_LONG, +// +// OB_CMD_HELP = ~(u64)0, +// +// OB_CMD_ARGTEST = ~(u64)0, +// +// OB_CMD_TEST = ~(u64)0, +// +// OB_CMD_COLORS = OB_LONG +// | OB_BRIEF, +// +// OB_CMD_ERROR = OB_SECTIONS +// | OB_NO_HEADER +// | OB_LONG +// | OB_BRIEF, +// +// OB_CMD_FILETYPE = OB_LONG +// | OB_IGNORE, +// +// OB_CMD_FILEATTRIB = OB_NO_HEADER, +// +// OB_CMD_SYMBOLS = OB_NO_HEADER, +// +// OB_CMD_FUNCTIONS = OB_NO_HEADER +// | OB_BRIEF +// | OB_LONG, +// +// OB_CMD_CALCULATE = 0, +// +// OB_CMD_FLOAT = OB_ROUND, +// +// OB_CMD_EXPORT = 0, +// +// OB_CMD_CAT = OB_GRP_TEXTOUT +// | OB_NO_ECHO +// | OB_NO_CHECK +// | OB_IGNORE, +// +// OB_CMD_DECODE = OB_GRP_DEST +// | OB_GRP_TEXTOUT +// | OB_NO_ECHO +// | OB_NO_CHECK +// | OB_IGNORE, +// +// OB_CMD_ENCODE = OB_GRP_DEST +// | OB_NO_ECHO +// | OB_NO_CHECK +// | OB_IGNORE, +// +//} enumOptionsBit; + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// enum enumCommands /////////////// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum enumCommands +{ + CMD__NONE, + + CMD_VERSION, + CMD_HELP, + CMD_ARGTEST, + CMD_TEST, + CMD_COLORS, + CMD_ERROR, + CMD_FILETYPE, + CMD_FILEATTRIB, + CMD_SYMBOLS, + CMD_FUNCTIONS, + CMD_CALCULATE, + CMD_FLOAT, + CMD_EXPORT, + + CMD_CAT, + CMD_DECODE, + CMD_ENCODE, + + CMD__N // == 17 + +} enumCommands; + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// enumGetOpt /////////////// +/////////////////////////////////////////////////////////////////////////////// + +typedef enum enumGetOpt +{ + GO__ERR = '?', + + GO_ARENAS = 'A', + GO_BRIEF = 'B', + GO_DEST2 = 'D', + GO_ESC = 'E', + GO_NO_HEADER = 'H', + GO_LOGGING = 'L', + GO_MAX_FILE_SIZE = 'M', + GO_NO_CHECK = 'N', + GO_NO_PARAM = 'P', + GO_TRACKS = 'T', + GO_VERSION = 'V', + + GO_CONST = 'c', + GO_DEST = 'd', + GO_HELP = 'h', + GO_IGNORE = 'i', + GO_LONG = 'l', + GO_OVERWRITE = 'o', + GO_PRESERVE = 'p', + GO_QUIET = 'q', + GO_REMOVE_DEST = 'r', + GO_TEST = 't', + GO_UPDATE = 'u', + GO_VERBOSE = 'v', + + GO_XHELP = 0x80, + GO_ALLOW_ALL, + GO_COMPATIBLE, + GO_WIDTH, + GO_DE, + GO_COLORS, + GO_NO_COLORS, + GO_CT_CODE, + GO_LE_CODE, + GO_CHDIR, + GO_ROUND, + GO_NO_ECHO, + GO_PAT, + GO_UTF_8, + GO_NO_UTF_8, + GO_FORCE, + GO_REPAIR_MAGICS, + GO_OLD, + GO_STD, + GO_NEW, + GO_EXTRACT, + GO_NUMBER, + GO_SECTIONS, + +} enumGetOpt; + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// external vars /////////////// +/////////////////////////////////////////////////////////////////////////////// + +//extern const InfoOption_t OptionInfo[OPT__N_TOTAL+1]; +//extern const KeywordTab_t CommandTab[]; +//extern const char OptionShort[]; +//extern const struct option OptionLong[]; +//extern u8 OptionUsed[OPT__N_TOTAL+1]; +//extern const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE]; +//UIOPT_INDEX_SIZE := 0x12c = 300 +//extern const InfoCommand_t CommandInfo[CMD__N+1]; +extern const InfoUI_t InfoUI_wpatt; + +// +/////////////////////////////////////////////////////////////////////////////// +/////////////// END /////////////// +/////////////////////////////////////////////////////////////////////////////// + +#endif // SZS_UI_WPATT_H + |
