[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Automake-NG] [FYI] [ng] tests: avoid spurious error with ctags from
From: |
Akim Demaille |
Subject: |
Re: [Automake-NG] [FYI] [ng] tests: avoid spurious error with ctags from older Emacs and XEmacs |
Date: |
Mon, 3 Sep 2012 12:07:22 +0200 |
Le 12 août 2012 à 00:06, Stefano Lattarini a écrit :
> 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
s/and/an/
> + # Emacs an XEmacs ctags (at least up to versions 22 and 23).
and conversely :)
> + echo 'inline int IsBigger (int a, int b) { return (a > b); }' >$@
> CLEANFILES = $(noinst_HEADERS)
> END
>
> --
> 1.7.12.rc0
>
>
- Re: [Automake-NG] [FYI] [ng] tests: avoid spurious error with ctags from older Emacs and XEmacs,
Akim Demaille <=