/[global]/global/htags/anchor.c
ViewVC logotype

Diff of /global/htags/anchor.c

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

revision 1.18 by shigio, Wed Aug 24 01:58:52 2005 UTC revision 1.19 by shigio, Sun Aug 28 11:05:21 2005 UTC
# Line 66  static int LAST; Line 66  static int LAST;
66  static struct anchor *CURRENTDEF;  static struct anchor *CURRENTDEF;
67    
68  /*  /*
  * anchor_pathlist_limit: determine the maximum length of the list of paths.  
  */  
 int  
 anchor_pathlist_limit()  
 {  
         int limit, db, max = 0;  
         STRBUF *comline = strbuf_open(0);  
   
         limit = exec_line_limit();  
         for (db = GTAGS; db < GTAGLIM; db++) {  
                 if (!symbol && db == GSYMS)  
                         continue;  
                 strbuf_reset(comline);  
                 if (!getconfs(dbname(db), comline))  
                         die("cannot get parser for %s.", dbname(db));  
                 if (strbuf_getlen(comline) > max)  
                         max = strbuf_getlen(comline);  
         }  
         strbuf_close(comline);  
         limit -= max + 40;  
         if (limit < 0)  
                 limit = 0;  
         return limit;  
 }  
 /*  
69   * anchor_prepare: setup input stream.   * anchor_prepare: setup input stream.
70   *   *
71   *      i)      path_list       \0 separated list of paths   *      i)      path_list       \0 separated list of paths

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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