/[global]/global/gtags/gtags.c
ViewVC logotype

Diff of /global/gtags/gtags.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.100 by shigio, Fri Feb 18 11:07:18 2005 UTC revision 1.101 by shigio, Thu Feb 24 01:33:48 2005 UTC
# Line 1  Line 1 
1  /*  /*
2   * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003   * Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
3   *      Tama Communications Corporation   *      Tama Communications Corporation
4   *   *
5   * This file is part of GNU GLOBAL.   * This file is part of GNU GLOBAL.
# Line 148  static struct option const long_options[ Line 148  static struct option const long_options[
148   */   */
149  int exitflag = 0;  int exitflag = 0;
150    
151    static char *langmap = DEFAULTLANGMAP;
152    
153  void  void
154  onintr(signo)  onintr(signo)
155          int signo;          int signo;
# Line 548  main(argc, argv) Line 550  main(argc, argv)
550          if (cflag == 0 && getconfs("format", sb) && !strcmp(strbuf_value(sb), "compact"))          if (cflag == 0 && getconfs("format", sb) && !strcmp(strbuf_value(sb), "compact"))
551                  cflag++;                  cflag++;
552          /*          /*
553           * teach gtags-parser(1) where is dbpath by environment variable.           * Pass the following information to gtags-parser(1)
554             * using environment variable.
555             *
556             * o langmap
557             * o DBPATH
558           */           */
559            strbuf_reset(sb);
560            if (getconfs("langmap", sb)) {
561                    char *p = strdup(strbuf_value(sb));
562                    if (p == NULL)
563                            die("short of memory.");
564                    langmap = p;
565            }
566            set_env("GTAGSLANGMAP", langmap);
567          set_env("GTAGSDBPATH", dbpath);          set_env("GTAGSDBPATH", dbpath);
568    
569          if (wflag)          if (wflag)

Legend:
Removed from v.1.100  
changed lines
  Added in v.1.101

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26