Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Mon, 10 Oct 2016 22:22:48 UTC Commit: eecfff0da799e6c399a53fe1e5b4dc8072fb4ca2 https://github.com/geany/geany/commit/eecfff0da799e6c399a53fe1e5b4dc8072fb4c...
Log Message: ----------- read: Add some extra data structures
Modified Paths: -------------- ctags/main/read.c
Modified: ctags/main/read.c 34 lines changed, 34 insertions(+), 0 deletions(-) =================================================================== @@ -38,9 +38,19 @@ * DATA DECLARATIONS */
+typedef struct sLangStack { + langType *languages; + unsigned int count; + unsigned int size; +} langStack;
/* Maintains the state of the current input file. */ +typedef union sInputLangInfo { + langStack stack; + langType type; +} inputLangInfo; + typedef struct sInputFileInfo { vString *name; /* name to report for input file */ vString *tagPath; /* path of input file relative to tag file */ @@ -53,6 +63,19 @@ typedef struct sInputFileInfo { langType language; /* language of input file */ } inputFileInfo;
+typedef struct sInputLineFposMap { + MIOPos *pos; + unsigned int count; + unsigned int size; +} inputLineFposMap; + +typedef struct sNestedInputStreamInfo { + unsigned long startLine; + int startCharOffset; + unsigned long endLine; + int endCharOffset; +} nestedInputStreamInfo; + typedef struct sInputFile { vString *path; /* path of input file (if any) */ vString *line; /* last line read from file */ @@ -68,6 +91,17 @@ typedef struct sInputFile { */ inputFileInfo input; /* name, lineNumber */ inputFileInfo source; + + nestedInputStreamInfo nestedInputStreamInfo; + + /* sourceTagPathHolder is a kind of trash box. + The buffer pointed by tagPath field of source field can + be referred from tagsEntryInfo instances. sourceTagPathHolder + is used keeping the buffer till all processing about the current + input file is done. After all processing is done, the buffers + in sourceTagPathHolder are destroied. */ + stringList * sourceTagPathHolder; + inputLineFposMap lineFposMap; } inputFile;
/*
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).