373 Commits

Author SHA1 Message Date
Colomban Wendling
484f6fcdef Make sure to only use as much data as it was actually read
When reading a C macro, make sure to only use as much byes we actually
got and not as much as we requested.  This should not be a problem
anymore now 61c5216 fixed a too long read, but it's safer anyway.
2012-08-25 16:02:21 +02:00
Colomban Wendling
61c5216083 Fix an off-by-one issue in C macro parsing code
Closes #3556536.
2012-08-25 15:50:09 +02:00
Matthew Brush
63249c71e8 Dedent switch block from last commit, pure noise 2012-08-03 19:07:58 -07:00
Matthew Brush
e76a35c271 Minor tweak to D "!" template parameter list parsing code
Note:
Indentation left as is so that the diff is readable, next commit contains
the indentation fix.
2012-08-03 19:07:58 -07:00
Colomban Wendling
89b7e089c4 Fix invalid use of strcpy() on overlapping memory
strcpy()'s behavior on overlapping memory is undefined, so replace such
uses with memmove().

Based on CTags r783: https://ctags.svn.sourceforge.net/svnroot/ctags@783
2012-07-31 00:33:53 +02:00
Colomban Wendling
fd40e4aa54 Mark a few things as static
Based on CTags r779: https://ctags.svn.sourceforge.net/svnroot/ctags@779
2012-07-31 00:32:53 +02:00
Colomban Wendling
3a460a2c5b Remove and unused structure member
Based on CTags r769: https://ctags.svn.sourceforge.net/svnroot/ctags@769
2012-07-31 00:31:43 +02:00
Colomban Wendling
13e5c0202a Fix Haskell parsing when a comment is the first thing inside a type
Closes #3552129.
2012-07-30 20:15:08 +02:00
Nick Treleaven
14daf925ac indent switch, add braces 2012-07-26 12:58:55 +01:00
Nick Treleaven
f0f3fc83ad Allow '!' char in D parameter lists 2012-07-09 13:31:05 +01:00
Nick Treleaven
74959b9cb9 Support MSYS=1 to enable building with MSYS; use $/ instead of DIRSEP
Defining MSYS=1 is cleaner than requiring users to define CP, RM, etc.
2012-07-04 17:13:14 +01:00
Nick Treleaven
c72dce06a5 Merge remote-tracking branch 'origin/master' into tm/tree-refactoring
Conflicts:
	makefile.win32
	src/makefile.win32
2012-07-04 12:15:53 +01:00
Nick Treleaven
e44198abb2 Parse D functions with various attributes/storage classes
Parse @attributes, pure, nothrow.
Parse return types immutable(T), shared(T), inout(T).
2012-06-08 16:40:30 +01:00
Nick Treleaven
928de3d684 Don't suppress warnings or define G_OS_WIN32 (Windows build) 2012-06-07 16:45:37 +01:00
Nick Treleaven
9f99b4f55a Merge remote-tracking branch 'origin/master' into tm/tree-refactoring 2012-06-07 16:32:32 +01:00
Nick Treleaven
18cec1fb81 Fix Windows build 2012-06-06 15:21:00 +01:00
Nick Treleaven
c37d8b4390 Do not suppress warnings (Windows makefiles)
Also do not define G_OS_WIN32.
2012-06-04 13:51:02 +01:00
Colomban Wendling
05e5f756c1 Merge branch 'master' into tm/tree-refactoring 2012-05-31 22:19:32 +02:00
Nick Treleaven
ffd3d739db Fix a missing tag on global tags merge (oops) 2012-05-27 17:20:34 +01:00
Colomban Wendling
cf3139de03 Use the same pointer type for all pointers in tm_tags_merge()
This prevents GCC from complaining about implicit casts and comparisons
between different pointer types.  It also makes the code a little less
bound at dealing with TMTags.
2012-05-25 19:47:10 +02:00
Colomban Wendling
2f94aa373e Fix incomplete copy in tm_tags_merge() that lead to crashes 2012-05-25 19:44:17 +02:00
Colomban Wendling
f0a9c42985 Update makefile.win32 build system 2012-05-08 23:01:23 +02:00
Colomban Wendling
d69a153bb4 Refactor tagmanager source files architecture
Split ctags and tagmanager sources, as follows:

tagmanager/ctags: the parsers, more or less upstream CTags;
tagmanager/mio: local MIO library copy;
tagmanager/src: actual tagmanager sources.
2012-05-08 23:01:23 +02:00
Nick Treleaven
33e1a81b4a Ignore D 'static if' tests
This prevents the parser getting confused.
2012-04-26 13:50:39 +01:00
Nick Treleaven
6e46a7bd3d Fix existing leak when a matching ignore.tags item is parsed 2012-04-25 16:13:56 +01:00
Nick Treleaven
a56373cabd Support PREFIX* in ignore.tags 2012-04-25 15:54:56 +01:00
Nick Treleaven
7c545a3094 Delete temporary error file 2012-04-25 13:48:33 +01:00
Nick Treleaven
4f87e31478 Show tag preprocessing errors on stderr 2012-04-24 17:35:31 +01:00
Nick Treleaven
3275d510d8 Remove unportable pipe-to-grep tag generation hack
Instead always ignore G_BEGIN_DECLS and G_END_DECLS tags.
2012-04-23 16:58:55 +01:00
Nick Treleaven
712cdd6aa0 Merge global tags in order rather than resorting the whole array
This is much faster than resorting, especially when there are many
global tags files loaded.
2012-04-20 13:13:16 +01:00
Nick Treleaven
06d02e29db Indent with tabs 2012-04-18 13:29:40 +01:00
Matthew Brush
3bcd7fc400 Merge pull request #19 from techee/fixes
Fixes
2012-02-26 21:04:50 -08:00
Colomban Wendling
cc3c2684fb Fix makefile.win32 for included regex removal 2012-01-26 22:52:22 +01:00
Jiří Techet
ec6798d761 Do not ignore system() return value to eliminate compiler warning 2012-01-11 23:30:10 +01:00
Nick Treleaven
5b02efb6f8 Separate interfaces and structs in the symbol list 2012-01-06 13:39:26 +00:00
Nick Treleaven
296ecadf45 Parse D parameterized template body 2012-01-06 12:48:08 +00:00
Nick Treleaven
40499d7511 Parse D template blocks
Note: they are listed under Module in the symbol list.
2012-01-04 16:41:32 +00:00
Nick Treleaven
7aa5d9516d Parse D class, struct, interface template bodies
Previously they were parsed as functions.
2012-01-04 16:09:48 +00:00
Nick Treleaven
6de8f97cb3 Remove GNU regex now we have GRegex 2012-01-02 18:03:21 +00:00
Nick Treleaven
0594950038 Parse PHP functions with multiline argument list, #3037797 2012-01-01 17:03:24 +00:00
Colomban Wendling
d76d72518a Import upstream MIO changes 2011-12-26 15:30:07 +01:00
Nick Treleaven
8818ee3fc9 Include gdk-pixbuf-2.0 path for recent GTK+ dev (Windows build)
Fixes #3396195.

Note: GTK+ 2.24 is the current maintained version of the developer
files bundle:
http://www.gtk.org/download/win32.php
2011-12-08 12:53:11 +00:00
Colomban Wendling
8942bc810b Add Objective-C support
Based on a patch from Elias Pschernig, thanks.
Parser was taken from upstream CTags.

Closes patch#3325139.
2011-11-13 01:05:24 +01:00
Lex Trotman
4d92e0530b Fix warnings
Fix warnings that appeared with GCC 4.6
js.c:1067:10: warning: variable ‘is_prototype’ set but not used
dialogs.c:173:2: warning: missing initializer
dialogs.c:173:2: warning: (near initialization for ‘value.data’)
sidebar.c:534:17: warning: unused variable ‘doc’
2011-11-06 18:10:56 +11:00
Colomban Wendling
d06e9f4575 Remove $Id$ and $Date$ SVN keywords 2011-10-09 22:57:35 +02:00
Nick Treleaven
d9b7ae92b8 Fix missing tagmanager/mio/makefile.win32 in EXTRA_DIST.
Include makefile.win32 in EXTRA_DIST recursively, not at top-level.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6013 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 12:36:28 +00:00
Nick Treleaven
4781509a17 Initialize invalid matches for safety.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@6011 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-06 12:02:38 +00:00
Nick Treleaven
03d22bec52 Fix CTags bug 2970274 - when using addCallbackRegex the callback
receives less than the number of matches. The number is still not 
correct (due to POSIX regex compatibility) but at least includes 
all non-empty matches now.
http://sourceforge.net/tracker/index.php?func=detail&aid=2970274
&group_id=6556&atid=106556



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5997 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-05 12:00:38 +00:00
Nick Treleaven
24530e59c1 Update from CTags SVN jscript.c.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5995 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-04 12:22:36 +00:00
Nick Treleaven
19fe99b106 Fix parsing keyword-qualified functions strictly, e.g. don't
parse 'staticfunction' or 'fatfunction'.



git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/branches/unstable@5986 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-10-03 14:14:33 +00:00