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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* Copyright (c) 2004 krzYszcz and others.
* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution. */
#ifndef MIXED_STANDALONE
#error MIXED_STANDALONE not defined
#else
#ifndef __STANDALONE_H__
#define __STANDALONE_H__
typedef int t_int;
typedef float t_float;
typedef struct _symbol
{
char *s_name;
void *s_thing;
struct _symbol *s_next;
} t_symbol;
typedef union word
{
t_float w_float;
t_symbol *w_symbol;
int w_index;
} t_word;
typedef enum
{
A_NULL,
A_FLOAT,
A_SYMBOL,
A_POINTER,
A_SEMI,
A_COMMA,
A_DEFFLOAT,
A_DEFSYM,
A_DOLLAR,
A_DOLLSYM,
A_GIMME,
A_CANT
} t_atomtype;
typedef struct _atom
{
t_atomtype a_type;
union word a_w;
} t_atom;
void *getbytes(size_t nbytes);
void *resizebytes(void *old, size_t oldsize, size_t newsize);
void freebytes(void *fatso, size_t nbytes);
t_symbol *gensym(char *s);
#endif
#endif
|