Merge branch 'master' of steve-icarus@icarus.com:git/verilog
[iverilog.git] / vpi / stringheap.h
blob9db1e6d0690a69f7c6a22679a247a4a30b3a2da9
1 #ifndef __stringheap_H
2 #define __stringheap_H
3 /*
4 * Copyright (c) 2003 Stephen Williams (steve@icarus.com)
6 * This source code is free software; you can redistribute it
7 * and/or modify it in source code form under the terms of the GNU
8 * General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 #ifdef HAVE_CVS_IDENT
22 #ident "$Id: stringheap.h,v 1.1 2003/02/13 18:13:28 steve Exp $"
23 #endif
25 struct stringheap_cell;
27 struct stringheap_s {
28 struct stringheap_cell*cell_lst;
29 unsigned cell_off;
33 * Allocate the string from the heap.
35 const char*strdup_sh(struct stringheap_s*hp, const char*str);
38 * $Log: stringheap.h,v $
39 * Revision 1.1 2003/02/13 18:13:28 steve
40 * Make lxt use stringheap to perm-allocate strings.
43 #endif