First cut at sql support via sqlite3. Including preliminary varargs support

for internal functions, and returning values from functions in the compiler.
This commit is contained in:
2007-12-24 11:18:15 +00:00
parent 8251351a2e
commit df2e38a3e9
13 changed files with 207 additions and 19 deletions

View File

@@ -37,6 +37,13 @@ do_function()
FNCOUNT=$((${FNCOUNT}+1))
}
do_function_v()
{
echo " vm_intfn_${ARG1}," >>${ABI}
echo "fndefint_v ${ARG1} ${FNCOUNT};" >>${HEADER}
FNCOUNT=$((${FNCOUNT}+1))
}
cat <<EOF >${ABI}
/* abi.c */
/* autogenerated - do not edit */
@@ -69,6 +76,8 @@ do
case "$TYPE" in
function) do_function
;;
function_v) do_function_v
;;
esac
done <${INFILE}