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. |
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; |
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) |