1 |
/* |
/* |
2 |
* Copyright (c) 1998, 1999, 2000, 2001, 2002 |
* Copyright (c) 1998, 1999, 2000, 2001, 2002, 2005 |
3 |
* Tama Communications Corporation |
* Tama Communications Corporation |
4 |
* |
* |
5 |
* This file is part of GNU GLOBAL. |
* This file is part of GNU GLOBAL. |
37 |
#include "conf.h" |
#include "conf.h" |
38 |
#include "die.h" |
#include "die.h" |
39 |
#include "env.h" |
#include "env.h" |
40 |
|
#include "langmap.h" |
41 |
#include "locatestring.h" |
#include "locatestring.h" |
42 |
#include "makepath.h" |
#include "makepath.h" |
43 |
#include "path.h" |
#include "path.h" |
303 |
sb = strbuf_open(0); |
sb = strbuf_open(0); |
304 |
strbuf_puts(sb, confline); |
strbuf_puts(sb, confline); |
305 |
strbuf_unputc(sb, ':'); |
strbuf_unputc(sb, ':'); |
306 |
|
|
307 |
if (!getconfs("suffixes", NULL)) { |
if (!getconfs("suffixes", NULL)) { |
308 |
|
STRBUF *tmp = strbuf_open(0); |
309 |
|
char *langmap = NULL; |
310 |
|
|
311 |
|
/* |
312 |
|
* Variable 'suffixes' is obsoleted. But it is generated |
313 |
|
* internally from the value of variable 'langmap'. |
314 |
|
*/ |
315 |
|
if (getconfs("langmap", tmp)) |
316 |
|
langmap = strbuf_value(tmp); |
317 |
|
else |
318 |
|
langmap = DEFAULTLANGMAP; |
319 |
strbuf_puts(sb, ":suffixes="); |
strbuf_puts(sb, ":suffixes="); |
320 |
strbuf_puts(sb, DEFAULTSUFFIXES); |
make_suffixes(langmap, sb); |
321 |
|
strbuf_close(tmp); |
322 |
} |
} |
323 |
if (!getconfs("skip", NULL)) { |
if (!getconfs("skip", NULL)) { |
324 |
strbuf_puts(sb, ":skip="); |
strbuf_puts(sb, ":skip="); |