annotate lwlib/lw_alloc.h @ 372:90de73ba0cac

Created a useful debug framework and adjusted lw_expr_print() to return a "static" dynamic string
author lost@starbug
date Thu, 22 Apr 2010 18:19:06 -0600
parents be63116281b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
324
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
1 /*
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
2 lw_alloc.h
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
3
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
4 Copyright © 2010 William Astle
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
5
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
6 This file is part of LWTOOLS.
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
7
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
8 LWTOOLS is free software: you can redistribute it and/or modify it under the
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
9 terms of the GNU General Public License as published by the Free Software
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
10 Foundation, either version 3 of the License, or (at your option) any later
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
11 version.
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
12
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
13 This program is distributed in the hope that it will be useful, but WITHOUT
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
16 more details.
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
17
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
18 You should have received a copy of the GNU General Public License along with
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
19 this program. If not, see <http://www.gnu.org/licenses/>.
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
20 */
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
21
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
22 #ifndef ___lw_alloc_h_seen___
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
23 #define ___lw_alloc_h_seen___
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
24
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
25
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
26 #ifdef ___lw_alloc_c_seen___
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
27
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
28 #else /* def ___lw_alloc_c_seen___ */
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
29
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
30 extern void lw_free(void *P);
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
31 extern void *lw_alloc(int S);
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
32 extern void *lw_realloc(void *P, int S);
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
33
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
34 #endif /* def ___lw_alloc_c_seen___ */
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
35
be63116281b0 Created lwlib folder and added first bits to it
lost
parents:
diff changeset
36 #endif /* ___lw_alloc_h_seen___ */