Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync ctags main part #1263

Merged
merged 102 commits into from Dec 17, 2018
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
227b808
Grab the complete uctags vString implementation
techee Oct 6, 2016
992306a
Add generic pointer array
techee Oct 6, 2016
d88a9dd
Eliminate uses of g_stat()
techee Oct 6, 2016
5601078
Drop some more unused functions from routines.c/h
techee Oct 8, 2016
2f1ad02
Remove most uses of glib calls
techee Oct 6, 2016
ed6d24b
Remove unused functions from options.c/h
techee Oct 6, 2016
a52137f
Grab uctags implementation of strlist
techee Oct 6, 2016
ed01b7e
Grab uctags keyword.c/h and add types.h with type declarations
techee Oct 6, 2016
fb4fc07
Make tempFile() return MIO
techee Oct 6, 2016
f0e7af2
Make combinePathAndFile() return char * instead of vString
techee Oct 6, 2016
9e7eade
Use parse separator utilities in routines.c
techee Oct 6, 2016
3219d97
Make sure that file extension is taken from file (not preceding direc…
techee Oct 6, 2016
d5b60d2
Use uctags implementation of strstr()
techee Oct 6, 2016
65f782b
Don't initialize ExecutableProgram and ExecutableName
techee Oct 6, 2016
2b8c7ae
Sync the rest of routines.c/h
techee Oct 6, 2016
c6294e3
Grab uctags ctags.h and add repoinfo.c/h
techee Oct 6, 2016
85a894b
Grab args.c/h uctags implementation
techee Oct 6, 2016
7ebcfb7
Define gcc attributes inside gcc-attr.h
techee Oct 6, 2016
ded5ea3
Move debug related code to debug.c/h
techee Oct 6, 2016
580beba
Remove all unused code from main.c
techee Oct 6, 2016
a5dea80
Grab all MIO changes from uctags
techee Oct 6, 2016
37f015d
Implement iFileGetLine() using gets()
techee Oct 6, 2016
88cbe38
Grab ctags version of general.h and make related changes
techee Oct 7, 2016
f1dbf2c
Grab ctags implementation of sort.c/h
techee Oct 7, 2016
0a0ed51
Create geany.c/h and put isIgnoreToken()
techee Oct 7, 2016
2a9f473
Sync options.c/h (and introduce a lot of new garbage)
techee Oct 8, 2016
1a43ee2
Grab uctags kind.c/h
techee Oct 8, 2016
e685d95
Some sync of lcpp.c/h
techee Oct 9, 2016
848fa0d
Move eTagFile from entry.h to entry.c
techee Oct 9, 2016
4cde630
Sync the beginning of entry.c/h
techee Oct 9, 2016
3f52bfb
entry: Take over uctags tag writing code
techee Oct 9, 2016
6ce628d
entry: Some more or less formal changes
techee Oct 9, 2016
f23b56b
entry: make makeTakEntry() implementation closer to uctags
techee Oct 9, 2016
0092036
entry: Sync initTagEntry() code
techee Oct 9, 2016
8e804b3
entry: Add the remaining code from uctags
techee Oct 9, 2016
b36c5c5
read: change macros into functions and move them into c
techee Oct 9, 2016
63fbe2f
c.c, lcpp.c: Avoid using File.mio
techee Oct 10, 2016
c1acde7
read: move sInputFileInfo, sInputFile and File to read.c
techee Oct 10, 2016
eecfff0
read: Add some extra data structures
techee Oct 10, 2016
dac3afb
read: use makeFileTag()
techee Oct 10, 2016
2f4d43a
read: Some function renaming
techee Oct 10, 2016
aafb127
read: implement openBuffer() using openInputFile()
techee Oct 11, 2016
f89e9f8
read: Add function to initialize common parts of input/source files a…
techee Oct 11, 2016
ed03c20
read: introduce langStack for source files
techee Oct 11, 2016
53f83e7
read: add lineFposMap
techee Oct 11, 2016
8436b97
read: add the remaining stuff from uctags
techee Oct 11, 2016
2f83d0d
parse: remove things unused by Geany for simpler merge
techee Oct 11, 2016
051b780
parse: some simple syncs and include syncs
techee Oct 11, 2016
b6ca387
parse: other small syncs
techee Oct 11, 2016
59d6375
lregex: sync includes
techee Oct 12, 2016
ca16224
lregex: replace regexBroken with regexAvailable
techee Oct 12, 2016
380a662
lregex: some simple syncs
techee Oct 12, 2016
8c4c570
lregex: remove unused functions
techee Oct 12, 2016
501ebe9
lregex: Initialize lregex structures the universal-ctags way
techee Oct 12, 2016
017e1be
lregex: Add missing fields to regexPattern
techee Oct 12, 2016
ca19e6e
lregex: sync some function prototypes
techee Oct 12, 2016
112f136
lregex: introduce findRegexTagsMainloop()
techee Oct 12, 2016
56936a8
lregex: some harmless syncs
techee Oct 12, 2016
73be5c6
lregex: add new flag processing
techee Oct 12, 2016
fb432c8
lregex: sync the remaining parts of the existing code
techee Oct 12, 2016
40d023d
lregex: Add the remaining missing functions from uctags
techee Oct 12, 2016
829ea7d
Grab uctags version of parse.c/h and nestlevel.c/h plus additional fa…
techee Oct 14, 2016
97bf03c
grab uctags debug.c/h
techee Oct 14, 2016
bbdd3a1
Add typeRef to sTagEntryInfo
techee Oct 14, 2016
de21494
read: backport patch from uctags
techee Oct 14, 2016
c56047b
Some minor syncs
techee Oct 14, 2016
f82218a
Sync error.c completely and create a custom error printer
techee Oct 14, 2016
29d801a
tmp
techee Oct 14, 2016
32dfa28
Some initial work on ctags as a library
techee Oct 14, 2016
3390e2a
Move ctags "API" from Geany to ctags
techee Oct 15, 2016
06f1a19
Make LanguageTable variable private in parse.c
techee Oct 15, 2016
e1b4d14
Add the remaining missing files from uctags
techee Oct 15, 2016
38403d1
Annotate geany-specific diffs
techee Oct 15, 2016
0633a28
Remove -Werror=aggregate-return from travis flags
techee Oct 15, 2016
09e13d5
Don't compile bigger part of main for CTAGS_LIB
techee Oct 15, 2016
0dd9f3a
Eliminate use of regex from read.c
techee Oct 15, 2016
b8df6e0
Eliminate use of fnmatch() which isn't present on MINGW
techee Oct 15, 2016
40ed52c
Remove output writer implementations
techee Oct 24, 2016
efc40f4
#if 0 most of options.c
techee Oct 24, 2016
0a6acff
Remove mbcs.c/h
techee Oct 24, 2016
8455f8e
lcpp, c: Fix signature collection
techee Feb 14, 2017
d5823ce
c.c: Reinitialize rescan variable in case longjmp() happens
techee Feb 14, 2017
634719a
c.c: Eliminate useless kind_for_define variable
techee Feb 14, 2017
cf6653a
Don't check if kind is enabled for library
techee Feb 15, 2017
6176846
Remove unnecessary use of AH_TEMPLATE
techee Feb 15, 2017
3e8365c
asciidoc, rest: Remove unnecessary scope assignments
techee Feb 15, 2017
e5b5326
python: Rename corkPair struct to corkInfo
techee Feb 15, 2017
df0ae9b
python: minor cleanups
techee Feb 15, 2017
bf4eb8f
lcpp: use eStrdup() instead of strdup()
techee Feb 15, 2017
9b44e9f
Fix parsing with sub-parsers
techee Oct 13, 2018
25e8ebc
Fix indent
techee Oct 13, 2018
248c970
Add missing void
techee Oct 13, 2018
99e0f20
Merge branch 'master' into ctags_sync_main
techee Oct 13, 2018
33a102e
Add dummy definitions to Assert* macros for suppressing compiler warn…
masatake Jun 7, 2017
749ab56
main: remove duplicated declarations
masatake Apr 12, 2017
f93aa14
Remove an unused function that was removed upstream
b4n Dec 8, 2018
f61bd54
Remove two unused variables
b4n Dec 8, 2018
e792d4f
Don't export some local functions
b4n Dec 8, 2018
89a934e
Guard some more code for non-library builds only
b4n Dec 8, 2018
1c3634e
Update functions and declarations checks for current ctags
b4n Dec 8, 2018
66a08f6
Remove an unused variable and fix a related comment
b4n Dec 8, 2018
457658d
Avoid warnings about unused variables in rest and asciidoc parsers
techee Dec 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions ctags/Makefile.am
Expand Up @@ -88,8 +88,6 @@ libctags_la_SOURCES = \
main/lxpath.c \
main/main.c \
main/main.h \
main/mbcs.c \
main/mbcs.h \
main/mio.c \
main/mio.h \
main/nestlevel.c \
Expand All @@ -99,9 +97,6 @@ libctags_la_SOURCES = \
main/options.c \
main/options.h \
main/output-ctags.c \
main/output-etags.c \
main/output-json.c \
main/output-xref.c \
main/output.h \
main/parse.c \
main/parse.h \
Expand Down
112 changes: 0 additions & 112 deletions ctags/main/mbcs.c

This file was deleted.

22 changes: 0 additions & 22 deletions ctags/main/mbcs.h

This file was deleted.

40 changes: 37 additions & 3 deletions ctags/main/options.c
Expand Up @@ -198,6 +198,7 @@ char **c_tags_ignore = NULL;
- Locally used only
*/

#ifndef CTAGS_LIB
static optionDescription LongOptionDescription [] = {
{1," -a Append the tags to an existing tag file."},
#ifdef DEBUG
Expand Down Expand Up @@ -635,6 +636,7 @@ static void freeString (char **const pString)
*pString = NULL;
}
}
#endif

extern void freeList (stringList** const pList)
{
Expand All @@ -645,6 +647,7 @@ extern void freeList (stringList** const pList)
}
}

#ifndef CTAGS_LIB
extern void setDefaultTagFileName (void)
{
if (Option.tagFileName != NULL)
Expand Down Expand Up @@ -2137,17 +2140,16 @@ static void processHeaderListOption (const int option, const char *parameter)

/* Determines whether or not "name" should be ignored, per the ignore list.
*/
/* GEANY DIFF */
/*
extern const ignoredTokenInfo * isIgnoreToken(const char * name)
{
if(!Option.ignore)
return NULL;

return (const ignoredTokenInfo *)hashTableGetItem(Option.ignore,(char *)name);
}
*/
#endif

/* GEANY DIFF */
/* Determines whether or not "name" should be ignored, per the ignore list.
*/
extern bool isIgnoreToken (const char *const name,
Expand Down Expand Up @@ -2211,6 +2213,7 @@ extern bool isIgnoreToken (const char *const name,
}
/* GEANY DIFF END */

#ifndef CTAGS_LIB
static void freeIgnoredTokenInfo(ignoredTokenInfo * info)
{
if(!info)
Expand Down Expand Up @@ -3446,3 +3449,34 @@ extern void freeOptionResources (void)

freeList (&OptionFiles);
}
#endif

/* GEANY DIFF */
/* Dummy implementations of unused functions */
extern void setDefaultTagFileName (void)
{
}

extern void initOptions (void)
{
}

extern void freeOptionResources (void)
{
}

extern langType getLanguageComponentInOption (const char *const option,
const char *const prefix)
{
return LANG_IGNORE;
}

extern bool isIncludeFile (const char *const fileName)
{
return false;
}

extern void verbose (const char *const format, ...)
{
}
/* GEANY DIFF END */