Artifact b66c99e82c3e741b55a6ef01142eaf37f5a250c3:
- File tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh — part of check-in [93b2be7812] at 2014-04-28 20:36:03 on branch tcc — Updated with fixes for TCC on Win32 (user: rkeene, size: 476) [annotate] [blame] [check-ins using] [more...]
#! /bin/bash set -x function find_syms() { set -x ${CC:-gcc} ${CPPFLAGS} -E include/tcl.h | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@([^(]*$@@;s@.* *\** *@@' | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do echo " TCCSYM($sym)" done } add="$(find_syms)" awk -v add="${add}" '/TCCSyms tcc_syms.*=/{ print print add next } { print }' generic/tcc.h > generic/tcc.h.new cat generic/tcc.h.new > generic/tcc.h rm -f generic/tcc.h.new exit 0