automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [FYI] [ng] tests: avoid spurious error with ctags from old


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] [ng] tests: avoid spurious error with ctags from older Emacs and XEmacs
Date: Sun, 12 Aug 2012 00:06:40 +0200

* t/ctags.sh: Here.  Those ctags (from Emacs 22.3 and XEmacs 21.5)
apparently have problems grasping "#define" in header files; feed
them an inline function instead.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 t/ctags.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/t/ctags.sh b/t/ctags.sh
index f3f8a6a..bbbb22d 100755
--- a/t/ctags.sh
+++ b/t/ctags.sh
@@ -44,7 +44,7 @@ test-ctags: ctags
        grep 'main' sub1/tags
        grep 'choke_me' sub1/tags && exit 1; :
        grep 'subsub/foo\.h' sub2/tags
-       grep 'DUMMY_DUMMY' sub2/tags
+       grep 'IsBigger' sub2/tags
        grep 'bar\.f77' sub2/subsub/tags
        grep 'foo\.cxx' sub2/subsub/tags
        grep 'foo\.h' sub2/subsub/tags && exit 1; :
@@ -71,7 +71,9 @@ cat > sub2/Makefile.am << 'END'
 SUBDIRS = subsub .
 noinst_HEADERS = subsub/foo.h
 subsub/foo.h:
-       echo '#define DUMMY_DUMMY 0' >$@
+       # Use and inlined function, not a #define, for the sake of
+       # Emacs an XEmacs ctags (at least up to versions 22 and 23).
+       echo 'inline int IsBigger (int a, int b) { return (a > b); }' >$@
 CLEANFILES = $(noinst_HEADERS)
 END
 
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]