Check-in [35718d9982]
Overview
SHA1:35718d9982bb03dac95bf4c733062bd0676a0cd4
Date: 2014-04-28 16:33:24
User: rkeene
Comment:Updated to more accepting of C compilers when fixing up TCC
Timelines: family | ancestors | descendants | both | tcc
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2014-04-28
20:36
[93b2be7812] Closed-Leaf: Updated with fixes for TCC on Win32 (user: rkeene, tags: tcc)
16:33
[35718d9982] Updated to more accepting of C compilers when fixing up TCC (user: rkeene, tags: tcc)
14:02
[437d69d82c] Updated to include many Tcl symbols (user: rkeene, tags: tcc)
Changes

Modified tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh from [cd3e226cba] to [b31d022289].

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
			NM="$(echo "${CC}" | sed 's@ .*$@@;s@\(.*\)-[^-]*$@\1-nm@')"
		else
			NM='nm'
		fi
	fi

	# "${NM}" "${LIBTCL}" | sed 's@:.*$@@' | sed 's@.* @@' | grep '^Tcl_' | sort -u | while read -r sym; do
	"${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.*=/{







|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
			NM="$(echo "${CC}" | sed 's@ .*$@@;s@\(.*\)-[^-]*$@\1-nm@')"
		else
			NM='nm'
		fi
	fi

	# "${NM}" "${LIBTCL}" | sed 's@:.*$@@' | sed 's@.* @@' | grep '^Tcl_' | sort -u | while read -r sym; do
	${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.*=/{