bug-global
[Top][All Lists]
Advanced

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

Re: addition of a new keyword


From: Hideki IWAMOTO
Subject: Re: addition of a new keyword
Date: Fri, 13 Aug 2004 11:51:20 +0900

On Thu, 12 Aug 2004 23:53:06 +0900, Shigio Yamaguchi wrote...
> > When gperf-3.0.1 is used, no error occurs with original 
> > --key-positions='1-3,
> 6,$'.
> > What do you think about which version of gperf should be used?
> 
> It seems that the --key-positions option is not needed in gperf-3.0.1.
> Let's move to 3.0.1.
> 

Here is a patch. Ok to commit?

Index: gctags/HACKING
===================================================================
RCS file: /cvsroot/global/global/gctags/HACKING,v
retrieving revision 1.4
diff -u -r1.4 HACKING
--- gctags/HACKING      3 Aug 2004 09:07:32 -0000       1.4
+++ gctags/HACKING      13 Aug 2004 02:47:42 -0000
@@ -21,7 +21,7 @@
 You need to have the following package installed:
 
        - flex
-       - GNU gperf
+       - GNU gperf (version 3.0.1 or later)
 
 (1) Generate gperf(1) source from each reserved word file.
 
Index: gctags/c_res.in
===================================================================
RCS file: /cvsroot/global/global/gctags/c_res.in,v
retrieving revision 1.1
diff -u -r1.1 c_res.in
--- gctags/c_res.in     26 Jun 2003 15:28:40 -0000      1.1
+++ gctags/c_res.in     13 Aug 2004 02:47:42 -0000
@@ -16,6 +16,7 @@
 __P                    word
 __attribute__,__attribute              word
 __extension__                          word
+__thread                               word
 asm,__asm,__asm__                      word
 const,__const,__const__                        word
 inline,__inline,__inline__             word
Index: gctags/cpp_res.in
===================================================================
RCS file: /cvsroot/global/global/gctags/cpp_res.in,v
retrieving revision 1.2
diff -u -r1.2 cpp_res.in
--- gctags/cpp_res.in   9 Apr 2004 00:33:54 -0000       1.2
+++ gctags/cpp_res.in   13 Aug 2004 02:47:42 -0000
@@ -17,6 +17,7 @@
 __P                            word
 __attribute__,__attribute      word
 __extension__                  word
+__thread                       word
 asm,__asm,__asm__              word
 const,__const,__const__                word
 inline,__inline,__inline__     word
Index: gctags/reserved.pl
===================================================================
RCS file: /cvsroot/global/global/gctags/reserved.pl,v
retrieving revision 1.9
diff -u -r1.9 reserved.pl
--- gctags/reserved.pl  26 Jul 2004 02:55:03 -0000      1.9
+++ gctags/reserved.pl  13 Aug 2004 02:47:42 -0000
@@ -76,15 +76,6 @@
 # [1] Generate option string for gperf(1).
 #
 if ($option) {
-       #
-       # This value should be maintained according to the value of
-       # the reserved words.
-       #
-       if ($prefix eq 'php') {
-               print "--key-positions=1-2,4-6,9,\$\n";
-       } else {
-               print "--key-positions=1-3,6,\$\n";
-       }
        print "--language=C\n";
        print "--struct-type\n";
        print "--slot-name=${slot_name}\n";

----
Hideki IWAMOTO  address@hidden





reply via email to

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