Grab uctags ctags.h and add repoinfo.c/h
This commit is contained in:
parent
2b8c7ae5ad
commit
c6294e37c9
@ -83,6 +83,8 @@ libctags_la_SOURCES = \
|
||||
main/ptrarray.h \
|
||||
main/read.c \
|
||||
main/read.h \
|
||||
main/repoinfo.c \
|
||||
main/repoinfo.h \
|
||||
main/routines.c \
|
||||
main/routines.h \
|
||||
main/sort.c \
|
||||
|
@ -14,12 +14,21 @@
|
||||
/*
|
||||
* MACROS
|
||||
*/
|
||||
#ifndef PROGRAM_VERSION
|
||||
# define PROGRAM_VERSION "5.0.1"
|
||||
#if defined (HAVE_CONFIG_H)
|
||||
# define PROGRAM_VERSION PACKAGE_VERSION
|
||||
#else
|
||||
# define PROGRAM_VERSION "0.0.0"
|
||||
#endif
|
||||
#define PROGRAM_NAME "Exuberant Ctags"
|
||||
#define PROGRAM_URL "http://ctags.sourceforge.net"
|
||||
#define AUTHOR_NAME "Darren Hiebert"
|
||||
#define AUTHOR_EMAIL "darren@hiebert.com"
|
||||
#define PROGRAM_NAME "Universal Ctags"
|
||||
#define PROGRAM_URL "https://ctags.io/"
|
||||
#define PROGRAM_COPYRIGHT "Copyright (C) 2015"
|
||||
#define AUTHOR_NAME "Universal Ctags Team"
|
||||
|
||||
/*
|
||||
* Constant
|
||||
*/
|
||||
extern const char* ctags_repoinfo;
|
||||
#define CTAGS_FIELD_PREFIX "UCTAGS"
|
||||
|
||||
|
||||
#endif /* CTAGS_MAIN_CTAGS_H */
|
||||
|
@ -149,7 +149,7 @@ static void addPseudoTags (void)
|
||||
writePseudoTag ("TAG_FILE_FORMAT", format, formatComment);
|
||||
writePseudoTag ("TAG_FILE_SORTED", Option.sorted ? "1":"0",
|
||||
"0=unsorted, 1=sorted");
|
||||
writePseudoTag ("TAG_PROGRAM_AUTHOR", AUTHOR_NAME, AUTHOR_EMAIL);
|
||||
writePseudoTag ("TAG_PROGRAM_AUTHOR", AUTHOR_NAME, "");
|
||||
writePseudoTag ("TAG_PROGRAM_NAME", PROGRAM_NAME, "");
|
||||
writePseudoTag ("TAG_PROGRAM_URL", PROGRAM_URL, "official site");
|
||||
writePseudoTag ("TAG_PROGRAM_VERSION", PROGRAM_VERSION, "");
|
||||
|
12
ctags/main/repoinfo.c
Normal file
12
ctags/main/repoinfo.c
Normal file
@ -0,0 +1,12 @@
|
||||
#include "general.h"
|
||||
#include "ctags.h"
|
||||
|
||||
#ifdef HAVE_REPOINFO_H
|
||||
#include "main/repoinfo.h"
|
||||
#endif
|
||||
|
||||
#ifndef CTAGS_REPOINFO
|
||||
#define CTAGS_REPOINFO ((char*)0)
|
||||
#endif
|
||||
|
||||
const char* ctags_repoinfo = CTAGS_REPOINFO;
|
1
ctags/main/repoinfo.h
Normal file
1
ctags/main/repoinfo.h
Normal file
@ -0,0 +1 @@
|
||||
#define CTAGS_REPOINFO "ff6491f"
|
Loading…
x
Reference in New Issue
Block a user