geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

options_p.h File Reference
#include "general.h"
#include "args_p.h"
#include "field.h"
#include "fmt_p.h"
#include "options.h"
#include "parse.h"
#include "strlist.h"
#include "vstring.h"
Include dependency graph for options_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sCookedArgs
 
struct  sOptionValues
 

Macros

#define CONST_OPTION   const
 
#define includeExtensionFlags()   (Option.tagFileFormat > 1)
 

Typedefs

typedef struct sCookedArgs cookedArgs
 
typedef enum eLocate exCmd
 
typedef enum sortType sortType
 
typedef enum eTagRelative tagRelative
 
typedef enum eOptionLoadingStage OptionLoadingStage
 
typedef struct sOptionValues optionValues
 
typedef void(* mainLoopFunc) (cookedArgs *args, void *data)
 

Enumerations

enum  optionType { OPTION_NONE , OPTION_SHORT , OPTION_LONG }
 
enum  eLocate { EX_MIX , EX_LINENUM , EX_PATTERN , EX_COMBINE }
 
enum  sortType { SO_UNSORTED , SO_SORTED , SO_FOLDSORTED }
 
enum  eTagRelative { TREL_NO , TREL_YES , TREL_ALWAYS , TREL_NEVER }
 
enum  eOptionLoadingStage {
  OptionLoadingStageNone , OptionLoadingStageCustom , OptionLoadingStageDosCnf , OptionLoadingStageEtc ,
  OptionLoadingStageLocalEtc , OptionLoadingStageXdg , OptionLoadingStageHomeRecursive , OptionLoadingStageCurrentRecursive ,
  OptionLoadingStagePreload , OptionLoadingStageEnvVar , OptionLoadingStageCmdline
}
 

Functions

void freeList (stringList **const pString)
 
void setDefaultTagFileName (void)
 
void checkOptions (void)
 
bool filesRequired (void)
 
void testEtagsInvocation (void)
 
cookedArgscArgNewFromString (const char *string)
 
cookedArgscArgNewFromArgv (char *const *const argv)
 
cookedArgscArgNewFromFile (FILE *const fp)
 
cookedArgscArgNewFromLineFile (FILE *const fp)
 
void cArgDelete (cookedArgs *const current)
 
bool cArgOff (cookedArgs *const current)
 
bool cArgIsOption (cookedArgs *const current)
 
const char * cArgItem (cookedArgs *const current)
 
void cArgForth (cookedArgs *const current)
 
bool isExcludedFile (const char *const name, bool falseIfExceptionsAreDefeind)
 
bool isIncludeFile (const char *const fileName)
 
void parseCmdlineOptions (cookedArgs *const cargs)
 
void previewFirstOption (cookedArgs *const cargs)
 
void readOptionConfiguration (void)
 
void initOptions (void)
 
void freeOptionResources (void)
 
langType getLanguageComponentInOption (const char *const option, const char *const prefix)
 
langType getLanguageComponentInOptionFull (const char *const option, const char *const prefix, bool noPretending)
 
void processLanguageDefineOption (const char *const option, const char *const parameter)
 
bool processMapOption (const char *const option, const char *const parameter)
 
bool processParamOption (const char *const option, const char *const value)
 
bool processKinddefOption (const char *const option, const char *const parameter)
 
bool processKindsOption (const char *const option, const char *const parameter)
 
bool processExtradefOption (const char *const option, const char *const parameter)
 
bool processFielddefOption (const char *const option, const char *const parameter)
 
bool processAliasOption (const char *const option, const char *const parameter)
 
bool processTabledefOption (const char *const option, const char *const parameter)
 
bool processRoledefOption (const char *const option, const char *const parameter)
 
bool processScopesepOption (const char *const option, const char *const parameter)
 
bool processPretendOption (const char *const option, const char *const parameter)
 
bool processRolesOption (const char *const option, const char *const parameter)
 
bool isDestinationStdout (void)
 
void setMainLoop (mainLoopFunc func, void *data)
 
bool ptagMakePatternLengthLimit (ptagDesc *pdesc, langType langType, const void *data)
 

Variables

const optionValues Option
 

Macro Definition Documentation

◆ CONST_OPTION

#define CONST_OPTION   const

Definition at line 15 of file options_p.h.

◆ includeExtensionFlags

#define includeExtensionFlags ( )    (Option.tagFileFormat > 1)

Definition at line 34 of file options_p.h.

Typedef Documentation

◆ cookedArgs

typedef struct sCookedArgs cookedArgs

◆ exCmd

typedef enum eLocate exCmd

◆ mainLoopFunc

typedef void(* mainLoopFunc) (cookedArgs *args, void *data)

Definition at line 136 of file options_p.h.

◆ OptionLoadingStage

◆ optionValues

typedef struct sOptionValues optionValues

◆ sortType

typedef enum sortType sortType

◆ tagRelative

typedef enum eTagRelative tagRelative

Enumeration Type Documentation

◆ eLocate

enum eLocate
Enumerator
EX_MIX 
EX_LINENUM 
EX_PATTERN 
EX_COMBINE 

Definition at line 53 of file options_p.h.

◆ eOptionLoadingStage

Enumerator
OptionLoadingStageNone 
OptionLoadingStageCustom 
OptionLoadingStageDosCnf 
OptionLoadingStageEtc 
OptionLoadingStageLocalEtc 
OptionLoadingStageXdg 
OptionLoadingStageHomeRecursive 
OptionLoadingStageCurrentRecursive 
OptionLoadingStagePreload 
OptionLoadingStageEnvVar 
OptionLoadingStageCmdline 

Definition at line 73 of file options_p.h.

◆ eTagRelative

Enumerator
TREL_NO 
TREL_YES 
TREL_ALWAYS 
TREL_NEVER 

Definition at line 66 of file options_p.h.

◆ optionType

enum optionType
Enumerator
OPTION_NONE 
OPTION_SHORT 
OPTION_LONG 

Definition at line 39 of file options_p.h.

◆ sortType

enum sortType
Enumerator
SO_UNSORTED 
SO_SORTED 
SO_FOLDSORTED 

Definition at line 60 of file options_p.h.

Function Documentation

◆ cArgDelete()

void cArgDelete ( cookedArgs *const  current)

◆ cArgForth()

◆ cArgIsOption()

bool cArgIsOption ( cookedArgs *const  current)

Definition at line 990 of file options.c.

References Assert, sCookedArgs::isOption, and NULL.

Referenced by parseOptions(), and previewFirstOption().

◆ cArgItem()

const char * cArgItem ( cookedArgs *const  current)

Definition at line 996 of file options.c.

References Assert, sCookedArgs::item, and NULL.

Referenced by createTagsForArgs(), and createTagsFromFileInput().

◆ cArgNewFromArgv()

cookedArgs * cArgNewFromArgv ( char *const *const  argv)

Definition at line 938 of file options.c.

References argNewFromArgv(), sCookedArgs::args, cArgRead(), and xMalloc.

Referenced by ctags_cli_main().

◆ cArgNewFromFile()

cookedArgs * cArgNewFromFile ( FILE *const  fp)

Definition at line 947 of file options.c.

References argNewFromFile(), sCookedArgs::args, cArgRead(), and xMalloc.

◆ cArgNewFromLineFile()

cookedArgs * cArgNewFromLineFile ( FILE *const  fp)

Definition at line 956 of file options.c.

References argNewFromLineFile(), sCookedArgs::args, cArgRead(), and xMalloc.

Referenced by createTagsFromFileInput(), and parseFileOptions().

◆ cArgNewFromString()

cookedArgs * cArgNewFromString ( const char *  string)

Definition at line 929 of file options.c.

References argNewFromString(), sCookedArgs::args, cArgRead(), and xMalloc.

Referenced by parseEnvironmentOptions().

◆ cArgOff()

bool cArgOff ( cookedArgs *const  current)

◆ checkOptions()

◆ filesRequired()

bool filesRequired ( void  )

Definition at line 722 of file options.c.

References FilesRequired, Option, and sOptionValues::recurse.

Referenced by batchMakeTags().

◆ freeList()

void freeList ( stringList **const  pString)

Definition at line 697 of file options.c.

References NULL, and stringListDelete().

Referenced by freeOptionResources(), freeParserResources(), and processExcludeOptionCommon().

◆ freeOptionResources()

◆ getLanguageComponentInOption()

◆ getLanguageComponentInOptionFull()

langType getLanguageComponentInOptionFull ( const char *const  option,
const char *const  prefix,
bool  noPretending 
)

◆ initOptions()

◆ isDestinationStdout()

bool isDestinationStdout ( void  )

◆ isExcludedFile()

bool isExcludedFile ( const char *const  name,
bool  falseIfExceptionsAreDefeind 
)

◆ isIncludeFile()

bool isIncludeFile ( const char *const  fileName)

◆ parseCmdlineOptions()

void parseCmdlineOptions ( cookedArgs *const  cargs)

Definition at line 3464 of file options.c.

References ENTER, and parseOptions().

Referenced by createTagsForArgs(), createTagsFromFileInput(), and ctags_cli_main().

◆ previewFirstOption()

void previewFirstOption ( cookedArgs *const  cargs)

◆ processAliasOption()

bool processAliasOption ( const char *const  option,
const char *const  parameter 
)

◆ processExtradefOption()

bool processExtradefOption ( const char *const  option,
const char *const  parameter 
)

Definition at line 3622 of file parse.c.

References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineExtra().

Referenced by processLongOption().

◆ processFielddefOption()

bool processFielddefOption ( const char *const  option,
const char *const  parameter 
)

Definition at line 3693 of file parse.c.

References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineField().

Referenced by processLongOption().

◆ processKinddefOption()

bool processKinddefOption ( const char *const  option,
const char *const  parameter 
)

Definition at line 2640 of file parse.c.

References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineKind().

Referenced by processLongOption().

◆ processKindsOption()

◆ processLanguageDefineOption()

◆ processMapOption()

bool processMapOption ( const char *const  option,
const char *const  parameter 
)

◆ processParamOption()

bool processParamOption ( const char *const  option,
const char *const  value 
)

◆ processPretendOption()

bool processPretendOption ( const char *const  option,
const char *const  parameter 
)

◆ processRoledefOption()

bool processRoledefOption ( const char *const  option,
const char *const  parameter 
)

◆ processRolesOption()

◆ processScopesepOption()

bool processScopesepOption ( const char *const  option,
const char *const  parameter 
)

Definition at line 665 of file parse.c.

References getLanguageComponentInOption(), LANG_IGNORE, and processLangDefineScopesep().

Referenced by processLongOption().

◆ processTabledefOption()

bool processTabledefOption ( const char *const  option,
const char *const  parameter 
)

◆ ptagMakePatternLengthLimit()

bool ptagMakePatternLengthLimit ( ptagDesc pdesc,
langType  langType,
const void *  data 
)

Definition at line 2767 of file options.c.

References NULL, sOptionValues::patternLengthLimit, and writePseudoTag().

◆ readOptionConfiguration()

void readOptionConfiguration ( void  )

Definition at line 3791 of file options.c.

References parseConfigurationFileOptions(), parseEnvironmentOptions(), and SkipConfiguration.

Referenced by ctags_cli_main().

◆ setDefaultTagFileName()

void setDefaultTagFileName ( void  )

◆ setMainLoop()

void setMainLoop ( mainLoopFunc  func,
void *  data 
)

Definition at line 324 of file main.c.

References mainData, and mainLoop.

Referenced by ctags_cli_main().

◆ testEtagsInvocation()

void testEtagsInvocation ( void  )

Definition at line 817 of file options.c.

References eFree(), eStrdup(), ETAGS, getExecutableName(), NULL, setEtagsMode(), strstr(), toLowerString(), and verbose().

Referenced by ctags_cli_main().

Variable Documentation

◆ Option

const optionValues Option
extern

Definition at line 137 of file options.c.

Referenced by addCommonPseudoTags(), appendInputLine(), batchMakeTags(), canUseLineNumberAsLocator(), checkOptions(), closeInputFile(), closeTagFile(), createTagsForEntry(), createTagsFromFileInput(), ctags_cli_main(), Scintilla::OptionSet< T >::DefineProperty(), doesContainAnyCharInInput(), etagsInclude(), fileNewline(), filesRequired(), freeOptionResources(), getFieldName(), getFileLanguageForRequest(), getFileLanguageForRequestInternal(), hasTagEntryTabOrNewlineChar(), iFileGetLine(), initializeParserStats(), initTagEntryFull(), inSandbox(), installHeaderListDefaults(), internalSortTags(), isDestinationStdout(), isIncludeFile(), makeDefineTag(), makePatternStringCommon(), notice(), openTagFile(), parseEnvironmentOptions(), parseFileWithMio(), printGuessedParser(), printOptionDescriptions(), processEtagsInclude(), processExcmdOption(), processFilterTerminatorOption(), processFormatOption(), processHeaderListOption(), processLanguageForceOption(), processMaxRecursionDepthOption(), processPatternLengthLimit(), processShortOption(), processSortOption(), processTagRelative(), processTotals(), processXformatOption(), recurseIntoDirectory(), renderFieldInput(), renderFieldInputNoEscape(), renderFieldLanguage(), renderFieldLineNumber(), setDefaultTagFileName(), setEtagsMode(), setInputFileParametersCommon(), setXrefMode(), sortTagFile(), stderrDefaultErrorPrinter(), updateSortedFlag(), writeCtagsEntry(), writeEtagsEntry(), writeEtagsIncludes(), writeLineNumberEntry(), writeSortedTags(), writeTagEntry(), and writeXrefEntry().