1 #ifndef SUN_COMPILER_COMPILER_H
2 #define SUN_COMPILER_COMPILER_H
11 typedef void *(*SLCMallocCallback
)(void *memory
, size_t size
);
12 typedef void (*SLCFreeCallback
)(void *memory
);
14 typedef size_t (*SLCSourceReadCallback
)(char *out
, size_t outSize
, void *userParam
);
16 struct SLCCompileConfiguration
{
17 SLCMallocCallback realloc
;
20 SLCSourceReadCallback sourceReadCallback
;
21 void *sourceUserParam
;
23 typedef struct SLCCompileConfiguration SLCCompileConfiguration
;
25 extern SVMModule
*slcCompileSource(const SLCCompileConfiguration
*configuration
);