ctags.rb 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +2 -0
- data/Rakefile +23 -0
- data/ctags.rb.gemspec +23 -0
- data/ext/.gitignore +3 -0
- data/ext/extconf.rb +15 -0
- data/ext/vendor/exuberant-ctags/.gitignore +6 -0
- data/ext/vendor/exuberant-ctags/.indent.pro +31 -0
- data/ext/vendor/exuberant-ctags/COPYING +340 -0
- data/ext/vendor/exuberant-ctags/EXTENDING.html +386 -0
- data/ext/vendor/exuberant-ctags/FAQ +371 -0
- data/ext/vendor/exuberant-ctags/INSTALL +215 -0
- data/ext/vendor/exuberant-ctags/INSTALL.oth +73 -0
- data/ext/vendor/exuberant-ctags/MAINTAINERS +88 -0
- data/ext/vendor/exuberant-ctags/Makefile.in +222 -0
- data/ext/vendor/exuberant-ctags/NEWS +871 -0
- data/ext/vendor/exuberant-ctags/README +73 -0
- data/ext/vendor/exuberant-ctags/ant.c +42 -0
- data/ext/vendor/exuberant-ctags/argproc.c +505 -0
- data/ext/vendor/exuberant-ctags/args.c +274 -0
- data/ext/vendor/exuberant-ctags/args.h +63 -0
- data/ext/vendor/exuberant-ctags/asm.c +387 -0
- data/ext/vendor/exuberant-ctags/asp.c +328 -0
- data/ext/vendor/exuberant-ctags/awk.c +81 -0
- data/ext/vendor/exuberant-ctags/basic.c +203 -0
- data/ext/vendor/exuberant-ctags/beta.c +321 -0
- data/ext/vendor/exuberant-ctags/c.c +2932 -0
- data/ext/vendor/exuberant-ctags/cobol.c +50 -0
- data/ext/vendor/exuberant-ctags/config.h.in +277 -0
- data/ext/vendor/exuberant-ctags/configure +7704 -0
- data/ext/vendor/exuberant-ctags/configure.ac +532 -0
- data/ext/vendor/exuberant-ctags/ctags.1 +1186 -0
- data/ext/vendor/exuberant-ctags/ctags.h +28 -0
- data/ext/vendor/exuberant-ctags/ctags.html +2087 -0
- data/ext/vendor/exuberant-ctags/ctags.spec +40 -0
- data/ext/vendor/exuberant-ctags/debug.c +113 -0
- data/ext/vendor/exuberant-ctags/debug.h +70 -0
- data/ext/vendor/exuberant-ctags/descrip.mms +68 -0
- data/ext/vendor/exuberant-ctags/dosbatch.c +42 -0
- data/ext/vendor/exuberant-ctags/e_amiga.h +24 -0
- data/ext/vendor/exuberant-ctags/e_djgpp.h +47 -0
- data/ext/vendor/exuberant-ctags/e_mac.h +143 -0
- data/ext/vendor/exuberant-ctags/e_msoft.h +76 -0
- data/ext/vendor/exuberant-ctags/e_os2.h +37 -0
- data/ext/vendor/exuberant-ctags/e_qdos.h +34 -0
- data/ext/vendor/exuberant-ctags/e_riscos.h +58 -0
- data/ext/vendor/exuberant-ctags/e_vms.h +31 -0
- data/ext/vendor/exuberant-ctags/eiffel.c +1352 -0
- data/ext/vendor/exuberant-ctags/entry.c +847 -0
- data/ext/vendor/exuberant-ctags/entry.h +103 -0
- data/ext/vendor/exuberant-ctags/erlang.c +189 -0
- data/ext/vendor/exuberant-ctags/flex.c +2243 -0
- data/ext/vendor/exuberant-ctags/fortran.c +2197 -0
- data/ext/vendor/exuberant-ctags/general.h +127 -0
- data/ext/vendor/exuberant-ctags/get.c +669 -0
- data/ext/vendor/exuberant-ctags/get.h +50 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/all-wcprops +47 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/entries +112 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/README.txt.svn-base +5 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regcomp.c.svn-base +3818 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.c.svn-base +74 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex.h.svn-base +575 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.c.svn-base +1713 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regex_internal.h.svn-base +773 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/.svn/text-base/regexec.c.svn-base +4338 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/README.txt +5 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regcomp.c +3818 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex.c +74 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex.h +575 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.c +1713 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regex_internal.h +773 -0
- data/ext/vendor/exuberant-ctags/gnu_regex/regexec.c +4338 -0
- data/ext/vendor/exuberant-ctags/html.c +49 -0
- data/ext/vendor/exuberant-ctags/jscript.c +1572 -0
- data/ext/vendor/exuberant-ctags/keyword.c +258 -0
- data/ext/vendor/exuberant-ctags/keyword.h +34 -0
- data/ext/vendor/exuberant-ctags/lisp.c +139 -0
- data/ext/vendor/exuberant-ctags/lregex.c +704 -0
- data/ext/vendor/exuberant-ctags/lua.c +133 -0
- data/ext/vendor/exuberant-ctags/mac.c +273 -0
- data/ext/vendor/exuberant-ctags/magic.diff +21 -0
- data/ext/vendor/exuberant-ctags/main.c +584 -0
- data/ext/vendor/exuberant-ctags/main.h +32 -0
- data/ext/vendor/exuberant-ctags/maintainer.mak +476 -0
- data/ext/vendor/exuberant-ctags/make.c +217 -0
- data/ext/vendor/exuberant-ctags/matlab.c +44 -0
- data/ext/vendor/exuberant-ctags/mk_bc3.mak +46 -0
- data/ext/vendor/exuberant-ctags/mk_bc5.mak +49 -0
- data/ext/vendor/exuberant-ctags/mk_djg.mak +18 -0
- data/ext/vendor/exuberant-ctags/mk_manx.mak +65 -0
- data/ext/vendor/exuberant-ctags/mk_mingw.mak +31 -0
- data/ext/vendor/exuberant-ctags/mk_mpw.mak +130 -0
- data/ext/vendor/exuberant-ctags/mk_mvc.mak +40 -0
- data/ext/vendor/exuberant-ctags/mk_os2.mak +104 -0
- data/ext/vendor/exuberant-ctags/mk_qdos.mak +100 -0
- data/ext/vendor/exuberant-ctags/mk_sas.mak +63 -0
- data/ext/vendor/exuberant-ctags/mkinstalldirs +40 -0
- data/ext/vendor/exuberant-ctags/ocaml.c +1842 -0
- data/ext/vendor/exuberant-ctags/options.c +1842 -0
- data/ext/vendor/exuberant-ctags/options.h +155 -0
- data/ext/vendor/exuberant-ctags/parse.c +677 -0
- data/ext/vendor/exuberant-ctags/parse.h +129 -0
- data/ext/vendor/exuberant-ctags/parsers.h +63 -0
- data/ext/vendor/exuberant-ctags/pascal.c +267 -0
- data/ext/vendor/exuberant-ctags/perl.c +382 -0
- data/ext/vendor/exuberant-ctags/php.c +237 -0
- data/ext/vendor/exuberant-ctags/python.c +771 -0
- data/ext/vendor/exuberant-ctags/qdos.c +106 -0
- data/ext/vendor/exuberant-ctags/read.c +569 -0
- data/ext/vendor/exuberant-ctags/read.h +116 -0
- data/ext/vendor/exuberant-ctags/readtags.c +959 -0
- data/ext/vendor/exuberant-ctags/readtags.h +252 -0
- data/ext/vendor/exuberant-ctags/rexx.c +39 -0
- data/ext/vendor/exuberant-ctags/routines.c +891 -0
- data/ext/vendor/exuberant-ctags/routines.h +134 -0
- data/ext/vendor/exuberant-ctags/ruby.c +408 -0
- data/ext/vendor/exuberant-ctags/scheme.c +111 -0
- data/ext/vendor/exuberant-ctags/sh.c +115 -0
- data/ext/vendor/exuberant-ctags/slang.c +41 -0
- data/ext/vendor/exuberant-ctags/sml.c +212 -0
- data/ext/vendor/exuberant-ctags/sort.c +230 -0
- data/ext/vendor/exuberant-ctags/sort.h +32 -0
- data/ext/vendor/exuberant-ctags/source.mak +122 -0
- data/ext/vendor/exuberant-ctags/sql.c +2112 -0
- data/ext/vendor/exuberant-ctags/strlist.c +281 -0
- data/ext/vendor/exuberant-ctags/strlist.h +54 -0
- data/ext/vendor/exuberant-ctags/tcl.c +116 -0
- data/ext/vendor/exuberant-ctags/tex.c +524 -0
- data/ext/vendor/exuberant-ctags/verilog.c +340 -0
- data/ext/vendor/exuberant-ctags/vhdl.c +835 -0
- data/ext/vendor/exuberant-ctags/vim.c +636 -0
- data/ext/vendor/exuberant-ctags/vstring.c +232 -0
- data/ext/vendor/exuberant-ctags/vstring.h +85 -0
- data/ext/vendor/exuberant-ctags/yacc.c +40 -0
- data/lib/ctags/exuberant.rb +45 -0
- data/lib/ctags/version.rb +3 -0
- data/lib/ctags.rb +6 -0
- data/test/test_ctags.rb +24 -0
- metadata +233 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id: general.h 508 2007-05-03 03:20:59Z dhiebert $
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 1998-2003, Darren Hiebert
|
|
5
|
+
*
|
|
6
|
+
* This source code is released for free distribution under the terms of the
|
|
7
|
+
* GNU General Public License.
|
|
8
|
+
*
|
|
9
|
+
* Provides the general (non-ctags-specific) environment assumed by all.
|
|
10
|
+
*/
|
|
11
|
+
#ifndef _GENERAL_H
|
|
12
|
+
#define _GENERAL_H
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* INCLUDE FILES
|
|
16
|
+
*/
|
|
17
|
+
#if defined (HAVE_CONFIG_H)
|
|
18
|
+
# include <config.h>
|
|
19
|
+
#elif defined (AMIGA)
|
|
20
|
+
# include "e_amiga.h"
|
|
21
|
+
#elif defined (DJGPP)
|
|
22
|
+
# include "e_djgpp.h"
|
|
23
|
+
#elif defined (macintosh)
|
|
24
|
+
# include "e_mac.h"
|
|
25
|
+
#elif defined (MSDOS) || defined (WIN32)
|
|
26
|
+
# include "e_msoft.h"
|
|
27
|
+
#elif defined (OS2)
|
|
28
|
+
# include "e_os2.h"
|
|
29
|
+
#elif defined (QDOS)
|
|
30
|
+
# include "e_qdos.h"
|
|
31
|
+
#elif defined (RISCOS)
|
|
32
|
+
# include "e_riscos.h"
|
|
33
|
+
#elif defined (__vms) || defined (VMS)
|
|
34
|
+
# include "e_vms.h"
|
|
35
|
+
# ifndef VMS
|
|
36
|
+
# define VMS 1
|
|
37
|
+
# endif
|
|
38
|
+
#endif
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* MACROS
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
/* Define standard error destination
|
|
46
|
+
*/
|
|
47
|
+
#ifndef errout
|
|
48
|
+
# define errout stderr
|
|
49
|
+
#endif
|
|
50
|
+
|
|
51
|
+
/* Define regex if supported */
|
|
52
|
+
#if (defined (HAVE_REGCOMP) && !defined (REGCOMP_BROKEN))
|
|
53
|
+
# define HAVE_REGEX 1
|
|
54
|
+
#endif
|
|
55
|
+
|
|
56
|
+
/* This is a helpful internal feature of later versions (> 2.7) of GCC
|
|
57
|
+
* to prevent warnings about unused variables.
|
|
58
|
+
*/
|
|
59
|
+
#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)) && !defined (__GNUG__)
|
|
60
|
+
# define __unused__ __attribute__((unused))
|
|
61
|
+
# define __printf__(s,f) __attribute__((format (printf, s, f)))
|
|
62
|
+
#else
|
|
63
|
+
# define __unused__
|
|
64
|
+
# define __printf__(s,f)
|
|
65
|
+
#endif
|
|
66
|
+
|
|
67
|
+
/*
|
|
68
|
+
* Portability macros
|
|
69
|
+
*/
|
|
70
|
+
#if !defined(HAVE_STRCASECMP) && !defined(strcasecmp)
|
|
71
|
+
# ifdef HAVE_STRICMP
|
|
72
|
+
# define strcasecmp(s1,s2) stricmp(s1,s2)
|
|
73
|
+
# else
|
|
74
|
+
# define strcasecmp(s1,s2) struppercmp(s1,s2)
|
|
75
|
+
# endif
|
|
76
|
+
#endif
|
|
77
|
+
|
|
78
|
+
#if !defined(HAVE_STRNCASECMP) && !defined(strncasecmp)
|
|
79
|
+
# ifdef HAVE_STRNICMP
|
|
80
|
+
# define strncasecmp(s1,s2,n) strnicmp(s1,s2,n)
|
|
81
|
+
# else
|
|
82
|
+
# define strncasecmp(s1,s2,n) strnuppercmp(s1,s2,n)
|
|
83
|
+
# endif
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
/*
|
|
87
|
+
* DATA DECLARATIONS
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
#undef FALSE
|
|
91
|
+
#undef TRUE
|
|
92
|
+
#ifdef VAXC
|
|
93
|
+
typedef enum { FALSE, TRUE } booleanType;
|
|
94
|
+
typedef int boolean;
|
|
95
|
+
#else
|
|
96
|
+
# ifdef __cplusplus
|
|
97
|
+
typedef bool boolean;
|
|
98
|
+
#define FALSE false
|
|
99
|
+
#define TRUE true
|
|
100
|
+
# else
|
|
101
|
+
typedef enum { FALSE, TRUE } boolean;
|
|
102
|
+
# endif
|
|
103
|
+
#endif
|
|
104
|
+
|
|
105
|
+
#if ! defined (HAVE_FGETPOS) && ! defined (fpos_t)
|
|
106
|
+
# define fpos_t long
|
|
107
|
+
#endif
|
|
108
|
+
|
|
109
|
+
/*
|
|
110
|
+
* FUNCTION PROTOTYPES
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
#if defined (NEED_PROTO_REMOVE) && defined (HAVE_REMOVE)
|
|
114
|
+
extern int remove (const char *);
|
|
115
|
+
#endif
|
|
116
|
+
|
|
117
|
+
#if defined (NEED_PROTO_UNLINK) && ! defined (HAVE_REMOVE)
|
|
118
|
+
extern void *unlink (const char *);
|
|
119
|
+
#endif
|
|
120
|
+
|
|
121
|
+
#ifdef NEED_PROTO_GETENV
|
|
122
|
+
extern char *getenv (const char *);
|
|
123
|
+
#endif
|
|
124
|
+
|
|
125
|
+
#endif /* _GENERAL_H */
|
|
126
|
+
|
|
127
|
+
/* vi:set tabstop=4 shiftwidth=4: */
|