Grab uctags ctags.h and add repoinfo.c/h

This commit is contained in:
Jiří Techet 2016-10-06 21:34:16 +02:00
parent 2b8c7ae5ad
commit c6294e37c9
5 changed files with 31 additions and 7 deletions

View File

@ -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 \

View File

@ -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 */

View File

@ -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
View 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
View File

@ -0,0 +1 @@
#define CTAGS_REPOINFO "ff6491f"