Diff

Differences From Artifact [e03734effa]:

To Artifact [f74bb07351]:


     1         ---- tcc-0.9.26.orig/configure	2013-02-15 08:24:00.000000000 -0600
     2         -+++ tcc-0.9.26-1tcl/configure	2014-05-01 19:50:10.103740647 -0500
            1  +diff -uNr tcc-0.9.26.orig/configure tcc-0.9.26-1tcl/configure
            2  +--- tcc-0.9.26.orig/configure	2013-02-15 09:24:00.000000000 -0500
            3  ++++ tcc-0.9.26-1tcl/configure	2014-05-05 12:35:23.109943527 -0400
     3      4   @@ -43,6 +43,7 @@
     4      5    tcc_libpaths=""
     5      6    tcc_crtprefix=""
     6      7    tcc_elfinterp=""
     7      8   +tcc_tcl_path=""
     8      9    tcc_lddir=
     9     10    confvars=
................................................................................
    47     48   +		fi
    48     49   +	done
    49     50   +fi
    50     51   +
    51     52    cat <<EOF
    52     53    Binary  directory   $bindir
    53     54    TinyCC directory    $tccdir
    54         ---- tcc-0.9.26.orig/tcc.h	2013-02-15 08:24:00.000000000 -0600
    55         -+++ tcc-0.9.26-1tcl/tcc.h	2014-05-01 19:50:24.973630534 -0500
           55  +diff -uNr tcc-0.9.26.orig/libtcc.c tcc-0.9.26-1tcl/libtcc.c
           56  +--- tcc-0.9.26.orig/libtcc.c	2013-02-15 09:24:00.000000000 -0500
           57  ++++ tcc-0.9.26-1tcl/libtcc.c	2014-05-05 13:01:47.556096371 -0400
           58  +@@ -981,6 +981,11 @@
           59  +     tcc_define_symbol(s, "__WCHAR_TYPE__", "int");
           60  + #endif
           61  + 
           62  ++    /* Tcl defines */
           63  ++#ifdef USE_TCL_STUBS
           64  ++    tcc_define_symbol(s, "USE_TCL_STUBS", "1");
           65  ++#endif
           66  ++
           67  + #ifndef TCC_TARGET_PE
           68  +     /* glibc defines */
           69  +     tcc_define_symbol(s, "__REDIRECT(name, proto, alias)", "name proto __asm__ (#alias)");
           70  +diff -uNr tcc-0.9.26.orig/tcc.h tcc-0.9.26-1tcl/tcc.h
           71  +--- tcc-0.9.26.orig/tcc.h	2013-02-15 09:24:00.000000000 -0500
           72  ++++ tcc-0.9.26-1tcl/tcc.h	2014-05-05 12:35:23.111943547 -0400
    56     73   @@ -23,6 +23,9 @@
    57     74    
    58     75    #define _GNU_SOURCE
    59     76    #include "config.h"
    60     77   +#ifdef HAVE_TCL_H
    61     78   +#  include <tcl.h>
    62     79   +#endif
    63     80    
    64     81    #ifdef CONFIG_TCCBOOT
    65     82    #include "tccboot.h"
           83  +diff -uNr tcc-0.9.26.orig/tccrun.c tcc-0.9.26-1tcl/tccrun.c
           84  +--- tcc-0.9.26.orig/tccrun.c	2013-02-15 09:24:00.000000000 -0500
           85  ++++ tcc-0.9.26-1tcl/tccrun.c	2014-05-05 13:06:41.105088994 -0400
           86  +@@ -697,14 +697,17 @@
           87  + 
           88  + /* add the symbol you want here if no dynamic linking is done */
           89  + static TCCSyms tcc_syms[] = {
           90  +-#if !defined(CONFIG_TCCBOOT)
           91  + #define TCCSYM(a) { #a, &a, },
           92  ++#if !defined(CONFIG_TCCBOOT)
           93  +     TCCSYM(printf)
           94  +     TCCSYM(fprintf)
           95  +     TCCSYM(fopen)
           96  +     TCCSYM(fclose)
           97  +-#undef TCCSYM
           98  + #endif
           99  ++#ifdef USE_TCL_STUBS
          100  ++    TCCSYM(tclStubsPtr)
          101  ++#endif
          102  ++#undef TCCSYM
          103  +     { NULL, NULL },
          104  + };
          105  +