blob: a4bf0733d37bbeb3711fe3c4785ecc34cf08b329 (
plain)
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
|
/* fornax - distributed network
*
* by team teso
*
* scripting call routines
*/
#include <stdlib.h>
#include "../../shared/common.h"
#include "symbol.h"
#include "call.h"
call *
call_create (void)
{
call * new = xcalloc (1, sizeof (call));
return (new);
}
void
call_free (call *c)
{
if (c == NULL)
return;
sym_free (c->parameters);
if (c->name != NULL)
free (c->name);
free (c);
return;
}
call *
call_set_name (call *c, char *name)
{
c->name = name;
return (c);
}
call *
call_set_parameters (call *c, sym_elem **par)
{
c->parameters = par;
return (c);
}
|