root/htags/incop.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * Copyright (c) 2003, 2004, 2006 Tama Communications Corporation
   3  *
   4  * This file is part of GNU GLOBAL.
   5  *
   6  * This program is free software: you can redistribute it and/or modify
   7  * it under the terms of the GNU General Public License as published by
   8  * the Free Software Foundation, either version 3 of the License, or
   9  * (at your option) any later version.
  10  * 
  11  * This program is distributed in the hope that it will be useful,
  12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14  * GNU General Public License for more details.
  15  * 
  16  * You should have received a copy of the GNU General Public License
  17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  18  */
  19 #ifndef _INCOP_H
  20 #define _INCOP_H
  21 
  22 #include "strbuf.h"
  23 
  24 struct data {
  25 #if defined(_WIN32) || defined(__DJGPP__)
  26         char name[MAXPATHLEN];
  27 #else
  28         char *name;
  29 #endif
  30         int id;
  31         int count;
  32         int ref_count;
  33         STRBUF *contents;
  34         STRBUF *ref_contents;
  35 };
  36 
  37 void init_inc(void);
  38 void put_inc(const char *, const char *, int);
  39 struct data *get_inc(const char *);
  40 struct data *first_inc(void);
  41 struct data *next_inc(void);
  42 void put_included(struct data *, const char *);
  43 struct data *get_included(const char *);
  44 
  45 #endif /* ! _INCOP_H */

/* [previous][next][first][last][top][bottom][index][help] */