Ticket #1681: 0001-Increase-VSTACK_SIZE-to-handle-very-big-expressions.patch

File 0001-Increase-VSTACK_SIZE-to-handle-very-big-expressions.patch, 685 bytes (added by Kooda, 22 months ago)

TCC Patch to increase the expression stack size (needed to build the bind egg for example)

  • tcc.h

    From 704ffbc0239788ad216839b8055631703e69b30a Mon Sep 17 00:00:00 2001
    From: Kooda <kooda@upyum.com>
    Date: Fri, 14 Feb 2020 17:46:57 +0100
    Subject: [PATCH] Increase VSTACK_SIZE to handle very big expressions
    
    ---
     tcc.h | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/tcc.h b/tcc.h
    index 82238ce..76f7e54 100644
    a b extern long double strtold (const char *__nptr, char **__endptr); 
    395395
    396396#define INCLUDE_STACK_SIZE  32
    397397#define IFDEF_STACK_SIZE    64
    398 #define VSTACK_SIZE         256
     398#define VSTACK_SIZE         1024
    399399#define STRING_MAX_SIZE     1024
    400400#define TOKSTR_MAX_SIZE     256
    401401#define PACK_STACK_SIZE     8