/[global]/global/libutil/conf.c
ViewVC logotype

Diff of /global/libutil/conf.c

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

revision 1.38 by shigio, Fri Feb 18 11:07:18 2005 UTC revision 1.39 by shigio, Thu Feb 24 01:33:48 2005 UTC
# Line 1  Line 1 
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.
# Line 37  Line 37 
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"
# Line 302  openconf() Line 303  openconf()
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=");

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

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