[Top][All Lists]

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

[Global-commit] global ./ global/global.c gtags/gta...

From: Shigio YAMAGUCHI
Subject: [Global-commit] global ./ global/global.c gtags/gta...
Date: Mon, 06 Feb 2006 03:49:39 +0000

CVSROOT:        /sources/global
Module name:    global
Changes by:     Shigio YAMAGUCHI <address@hidden>       06/02/06 03:49:39

Modified files:
        .              : 
        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.


reply via email to

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