mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 19:16:32 +01:00
Adapt tcc-0.9.26's step to use pnut-exe instead of mes
This commit is contained in:
parent
ba90de8d85
commit
15a64feac3
12 changed files with 120 additions and 50 deletions
5
steps/tcc-0.9.26/simple-patches/array_sizeof.after
Normal file
5
steps/tcc-0.9.26/simple-patches/array_sizeof.after
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#ifdef PNUT_CC
|
||||
char buf1[1024];
|
||||
#else
|
||||
char buf1[sizeof file->filename];
|
||||
#endif
|
||||
1
steps/tcc-0.9.26/simple-patches/array_sizeof.before
Normal file
1
steps/tcc-0.9.26/simple-patches/array_sizeof.before
Normal file
|
|
@ -0,0 +1 @@
|
|||
char buf1[sizeof file->filename];
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#if HAVE_LONG_LONG_STUB || HAVE_LONG_LONG
|
||||
vtop[0].c.i >>= 32;
|
||||
#else
|
||||
vtop[0].c.i = 0;
|
||||
#endif
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#if HAVE_LONG_LONG_STUB || HAVE_LONG_LONG
|
||||
vtop[0].c.i >>= 32;
|
||||
#endif
|
||||
8
steps/tcc-0.9.26/simple-patches/float_negation.after
Normal file
8
steps/tcc-0.9.26/simple-patches/float_negation.after
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#if HAVE_FLOAT
|
||||
if (t == VT_FLOAT)
|
||||
vtop->c.f = (float) 0x80000000;
|
||||
else if (t == VT_DOUBLE)
|
||||
vtop->c.d = (double) 0x8000000000000000ULL;
|
||||
else
|
||||
vtop->c.ld = (long double) 0x8000000000000000ULL;
|
||||
#endif
|
||||
8
steps/tcc-0.9.26/simple-patches/float_negation.before
Normal file
8
steps/tcc-0.9.26/simple-patches/float_negation.before
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#if HAVE_FLOAT
|
||||
if (t == VT_FLOAT)
|
||||
vtop->c.f = -1.0 * 0.0;
|
||||
else if (t == VT_DOUBLE)
|
||||
vtop->c.d = -1.0 * 0.0;
|
||||
else
|
||||
vtop->c.ld = -1.0 * 0.0;
|
||||
#endif
|
||||
1
steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.after
Normal file
1
steps/tcc-0.9.26/simple-patches/sscanf_TCC_VERSION.after
Normal file
|
|
@ -0,0 +1 @@
|
|||
a = 0; b = 9; c = 26;
|
||||
|
|
@ -0,0 +1 @@
|
|||
sscanf(TCC_VERSION, "%d.%d.%d", &a, &b, &c);
|
||||
|
|
@ -0,0 +1 @@
|
|||
#if defined _WIN32 == defined TCC_TARGET_PE && 0
|
||||
|
|
@ -0,0 +1 @@
|
|||
#if defined _WIN32 == defined TCC_TARGET_PE
|
||||
Loading…
Add table
Add a link
Reference in a new issue