CVSROOT: /sources/global
Module name: global
Branch:
Changes by: Shigio YAMAGUCHI <[EMAIL PROTECTED]> 06/02/06 03:49:39
Modified files:
. : configure.ac
global : global.c
gtags : gtags.c
Log message:
POSIX compatible sort filter becames unnecessary.
We have decided to add a new requirement for plug-in parser of GLOBAL
to make external sort filter unnecessary.
Up to now, gtags(1) and global(1) use external POSIX sort command when
plug-in parser is used. However, it is annoying to keep maintaining
the mechanism only for plug-in parser. Instead, we have decided to add
new requirement for plug-in parser like follows:
------------------------------------------------------------------------
[Requirement of plug-in parser (=the program)]
1. The program must process the files in the order they are given
in the argument.
$ program <options> a.c b.c <= order: a.c -> b.c
~~~~~~~
main 25 a.c main(int argc, char *argv[])
sub1 10 b.c sub1() {
^
|
*** order: a.c -> b.c
2. In a file, the program must write tags out as they are encounterd.
$ program <options> -xu a.c
main 25 a.c main(int argc, char *argv[])
func 45 a.c func() {
^
|
*** order: line 25 -> line 45
(end of requirement)
------------------------------------------------------------------------
If the above-mentioned requirement is filled, external sort filter
becomes unnecessary. It is not a big restriction, because:
o since any special processing is unnecessary, the load of work to make
a new parser is light.
o exuberant ctags which is a typical tag command substantially fills
this requirement.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/global/global/configure.ac.diff?tr1=1.63&tr2=1.64&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/global/global/global/global.c.diff?tr1=1.136&tr2=1.137&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/global/global/gtags/gtags.c.diff?tr1=1.182&tr2=1.183&r1=text&r2=text
_______________________________________________
Global-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/global-commit