aboutsummaryrefslogtreecommitdiff
path: root/libtcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-05 20:41:17 +0200
committergrischka <grischka>2009-05-05 20:41:17 +0200
commit5c6509578e78db8978b19ab81c4f26398f13c82d (patch)
treeec8c040403d748c7b52943b4f76af37b09974b51 /libtcc.c
parentb8f6e1ae30572e0dba7ca1009ccd039b635b8995 (diff)
downloadtinycc-5c6509578e78db8978b19ab81c4f26398f13c82d.tar.gz
tinycc-5c6509578e78db8978b19ab81c4f26398f13c82d.tar.bz2
make tcc from tcc.c and libtcc from libtcc.c
Diffstat (limited to 'libtcc.c')
-rw-r--r--libtcc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libtcc.c b/libtcc.c
index c9505d6..31961fa 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -125,7 +125,6 @@ static struct TCCState *tcc_state;
static const char *tcc_lib_path = CONFIG_TCCDIR;
-
#ifdef TCC_TARGET_I386
#include "i386-gen.c"
#endif
@@ -706,14 +705,12 @@ void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap)
s1->nb_errors++;
}
-#ifdef LIBTCC
void tcc_set_error_func(TCCState *s, void *error_opaque,
void (*error_func)(void *opaque, const char *msg))
{
s->error_opaque = error_opaque;
s->error_func = error_func;
}
-#endif
/* error without aborting current compilation */
void error_noabort(const char *fmt, ...)
@@ -1130,7 +1127,6 @@ static int tcc_compile(TCCState *s1)
return s1->nb_errors != 0 ? -1 : 0;
}
-#ifdef LIBTCC
int tcc_compile_string(TCCState *s, const char *str)
{
BufferedFile bf1, *bf = &bf1;
@@ -1158,7 +1154,6 @@ int tcc_compile_string(TCCState *s, const char *str)
/* currently, no need to close */
return ret;
}
-#endif
/* define a preprocessor symbol. A value can also be provided with the '=' operator */
void tcc_define_symbol(TCCState *s1, const char *sym, const char *value)