bug-global
[Top][All Lists]
Advanced

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

Re: global feature request: allow blanks in filenames


From: Shigio Yamaguchi
Subject: Re: global feature request: allow blanks in filenames
Date: Tue, 09 Jan 2001 11:12:38 +0900

> Some of the code I work on has many filenames with embedded
> blanks.  This can not be changed unfortunately.
> 
> It would be very nice if 'global' nicely handled blanks in
> filenames.
> 
> At the very least, 'gtags' should not die() when it encounters a
> blank in a filename.

You are right.

Currently I'm turning my eyes away from the problem by making gtags die
in such case, because ctags cross reference format, which is also
the GLOBAL's tag format, use blanks as the separater like this:

        1.tag   2.line number  3.path           4.line image
        +-------------------------------------------------------+
        |main   32             ./src/main.c     main(argc, argv)|
             ^^^  ^^^^^^^^^^^^^            ^^^^^
             separated by blanks(^^^).

If the path includes blanks then it would be interpreted like this:

        1.tag   2.line number  3.path  4.line image
        +-------------------------------------------------------+
        |main   32             ./src/m ain.c    main(argc, argv)|
             ^^^  ^^^^^^^^^^^^^       ^     ^^^^
                                      |
                                      blank

I'm thinking about two step to solve this problem.

step1:  change gtags to ignore the path including blanks and display
        warning message if the -w option specified.

        It will be done on cvs version GLOBAL in a couple of days.

step2:  change tag format so that the path can include blanks.

        New format is like this:

        main    32             "./src/m in.c"   main(argc, argv)

        It will be done in the near future.
--
Shigio Yamaguchi - Tama Communications Corporation
Mail: address@hidden, (Spare mail: address@hidden)



reply via email to

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