Artifact f0194cd9c1eaf3e0bb5a671fb9a6b7eca470f571:
- File tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh — part of check-in [4ab0657dfa] at 2014-04-28 21:20:39 on branch trunk — Removed debugging (user: rkeene, size: 459) [annotate] [blame] [check-ins using]
#! /bin/bash function find_syms() { ${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