From 1ec34e828a246af6257dc4eeebb2093f11c3fcb2 Mon Sep 17 00:00:00 2001 From: koldo Date: Thu, 13 Oct 2011 19:46:19 +0000 Subject: [PATCH] plugin/tcc: Now it is a package git-svn-id: svn://ultimatepp.org/upp/trunk@4007 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/plugin/tcc/init | 3 +++ bazaar/plugin/tcc/tcc.c | 4 ++-- bazaar/plugin/tcc/tcc.upp | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 bazaar/plugin/tcc/init create mode 100644 bazaar/plugin/tcc/tcc.upp diff --git a/bazaar/plugin/tcc/init b/bazaar/plugin/tcc/init new file mode 100644 index 000000000..f1b3f897c --- /dev/null +++ b/bazaar/plugin/tcc/init @@ -0,0 +1,3 @@ +#ifndef _plugin_tcc_icpp_init_stub +#define _plugin_tcc_icpp_init_stub +#endif diff --git a/bazaar/plugin/tcc/tcc.c b/bazaar/plugin/tcc/tcc.c index 8cfff0ee3..09d713086 100644 --- a/bazaar/plugin/tcc/tcc.c +++ b/bazaar/plugin/tcc/tcc.c @@ -10817,7 +10817,7 @@ int parse_args(TCCState *s, int argc, char **argv) break; case TCC_OPTION_B: /* set tcc utilities path (mainly for tcc development) */ - tcc_lib_path = optarg; + strcpy(tcc_lib_path, optarg); break; case TCC_OPTION_l: dynarray_add((void ***)&files, &nb_files, r); @@ -10951,7 +10951,7 @@ int main(int argc, char **argv) int64_t start_time = 0; #ifdef _WIN32 - tcc_lib_path = w32_tcc_lib_path(); + strcpy(tcc_lib_path, w32_tcc_lib_path()); #endif s = tcc_new(); diff --git a/bazaar/plugin/tcc/tcc.upp b/bazaar/plugin/tcc/tcc.upp new file mode 100644 index 000000000..9dd1dfe4c --- /dev/null +++ b/bazaar/plugin/tcc/tcc.upp @@ -0,0 +1,7 @@ +description "Tiny C compiler by Fabrice Bellard\377"; + +options(POSIX) -DLIBTCC; + +file + tcc.c; +