summaryrefslogtreecommitdiffstats
path: root/doc/manual/example4
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/example4')
-rw-r--r--doc/manual/example4/function.cfg3
-rw-r--r--doc/manual/example4/gen.sh6
2 files changed, 6 insertions, 3 deletions
diff --git a/doc/manual/example4/function.cfg b/doc/manual/example4/function.cfg
index feee635..26eb3f5 100644
--- a/doc/manual/example4/function.cfg
+++ b/doc/manual/example4/function.cfg
@@ -10,3 +10,6 @@ ReturnValueCapacity custom_allocate {0}
# custom_free will only ever receive a direct Buffer
NioDirectOnly custom_free
+
+# Include the function.h header in the generated glue code
+CustomCCode #include "function.h"
diff --git a/doc/manual/example4/gen.sh b/doc/manual/example4/gen.sh
index 6fb971e..c44676f 100644
--- a/doc/manual/example4/gen.sh
+++ b/doc/manual/example4/gen.sh
@@ -2,13 +2,13 @@
JAVA=java
GLUEGEN_JAR=../../../build/gluegen.jar
-ANTLR_JAR=../../../../../ANTLR/antlr-2.7.4/antlr.jar
+ANTLR_JAR=../../../../../ANTLR/antlr-2.7.5.jar
NAME=`uname`
-if [ $NAME="Windows*" ] ; then
+if [[ $NAME == "Windows*" ]] ; then
SEP=\;
-elif [ $NAME="CYGWIN*" ] ; then
+elif [[ $NAME == "CYGWIN*" ]] ; then
SEP=\;
else
SEP=: