-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswf_memory.h.in
44 lines (38 loc) · 1.61 KB
/
swf_memory.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* Copyright (C) 2001 Simon Wistow <[email protected]>
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* NOTE: don't edit this file!!! Edit swf_memory.h.in and rerun either
* ./configure or ./config.status (if you've not changed configure)
*
*/
#ifndef _SWF_MEMORY_H
#define _SWF_MEMORY_H
#define swf_free(x) if( (x) ) free( (x) )
#define swf_realloc(x, y) ( (x) ? realloc( (x), (y) ) : calloc( 1, (y) ) )
typedef @SWF_U8@ SWF_U8, *P_SWF_U8, **PP_SWF_U8;
typedef @SWF_S8@ SWF_S8, *P_SWF_S8, **PP_SWF_S8;
typedef @SWF_U16@ SWF_U16, *P_SWF_U16, **PP_SWF_U16;
typedef @SWF_S16@ SWF_S16, *P_SWF_S16, **PP_SWF_S16;
typedef @SWF_U32@ SWF_U32, *P_SWF_U32, **PP_SWF_U32;
typedef @SWF_S32@ SWF_S32, *P_SWF_S32, **PP_SWF_S32;
/* use these for expanding printf macros */
#define pSWF_U8 "@pSWF_U8@"
#define pSWF_S8 "@pSWF_S8@"
#define pSWF_U16 "@pSWF_U16@"
#define pSWF_S16 "@pSWF_S16@"
#define pSWF_U32 "@pSWF_U32@"
#define pSWF_S32 "@pSWF_S32@"
#endif