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:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user