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

Diff of /global/htags/incop.c

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

revision 1.7 by shigio, Tue May 10 05:17:52 2005 UTC revision 1.8 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 61  open_pool(void) Line 61  open_pool(void)
61   *      i)      id      string id   *      i)      id      string id
62   */   */
63  static void  static void
64  put_pool(head, name, contents, id)  put_pool(struct pool *head, const char *name, const char *contents, int id)
         struct pool *head;  
         const char *name;  
         const char *contents;  
         int id;  
65  {  {
66          struct data *data;          struct data *data;
67    
# Line 95  put_pool(head, name, contents, id) Line 91  put_pool(head, name, contents, id)
91   *      r)              descriptor   *      r)              descriptor
92   */   */
93  static struct data *  static struct data *
94  get_pool(head, name)  get_pool(struct pool *head, const char *name)
         struct pool *head;  
         const char *name;  
95  {  {
96          struct data *data;          struct data *data;
97    
# Line 113  get_pool(head, name) Line 107  get_pool(head, name)
107   *      r)              descriptor   *      r)              descriptor
108   */   */
109  static struct data *  static struct data *
110  first_data(head)  first_data(struct pool *head)
         struct pool *head;  
111  {  {
112          return SLIST_FIRST(head);          return SLIST_FIRST(head);
113  }  }
# Line 124  first_data(head) Line 117  first_data(head)
117   *      r)              descriptor   *      r)              descriptor
118   */   */
119  static struct data *  static struct data *
120  next_data(data)  next_data(struct data *data)
         struct data *data;  
121  {  {
122          return SLIST_NEXT(data, next);          return SLIST_NEXT(data, next);
123  }  }
# Line 158  init_inc(void) Line 150  init_inc(void)
150   *      i)      id      path id   *      i)      id      path id
151   */   */
152  void  void
153  put_inc(file, path, id)  put_inc(const char *file, const char *path, int id)
         const char *file;  
         const char *path;  
         int id;  
154  {  {
155          put_pool(head_inc, file, path, id);          put_pool(head_inc, file, path, id);
156  }  }
# Line 172  put_inc(file, path, id) Line 161  put_inc(file, path, id)
161   *      r)              descriptor   *      r)              descriptor
162   */   */
163  struct data *  struct data *
164  get_inc(name)  get_inc(const char *name)
         const char *name;  
165  {  {
166          return get_pool(head_inc, name);          return get_pool(head_inc, name);
167  }  }
# Line 207  next_inc(void) Line 195  next_inc(void)
195   *      i)      id      path id   *      i)      id      path id
196   */   */
197  void  void
198  put_included(file, path)  put_included(const char *file, const char *path)
         const char *file;  
         const char *path;  
199  {  {
200          put_pool(head_included, file, path, 0);          put_pool(head_included, file, path, 0);
201  }  }
# Line 220  put_included(file, path) Line 206  put_included(file, path)
206   *      r)              descriptor   *      r)              descriptor
207   */   */
208  struct data *  struct data *
209  get_included(name)  get_included(const char *name)
         const char *name;  
210  {  {
211          return get_pool(head_included, name);          return get_pool(head_included, name);
212  }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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