diff options
author | Kenneth Russel <[email protected]> | 2006-02-26 10:21:31 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-02-26 10:21:31 +0000 |
commit | e24dc9a626d1548f67dc79b8f73c519c392bda33 (patch) | |
tree | 472633b6f167ab9542202712a1bc99d38246f5d3 /doc/manual/example3/function.cfg | |
parent | 60edc67981e7c3c1d4d43bc80994a8d63952c7bb (diff) |
Added five examples of GlueGen configuration files to the manual for
supporting access to various C programming language constructs. Still
need to add at least two more for concrete and somewhat complex
examples which show up in JOGL.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@18 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'doc/manual/example3/function.cfg')
-rw-r--r-- | doc/manual/example3/function.cfg | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/manual/example3/function.cfg b/doc/manual/example3/function.cfg new file mode 100644 index 0000000..8ac334f --- /dev/null +++ b/doc/manual/example3/function.cfg @@ -0,0 +1,16 @@ +Package testfunction +Style AllStatic +JavaClass TestFunction +JavaOutputDir gensrc/java +NativeOutputDir gensrc/native + +# strlen takes a string as argument +ArgumentIsString strlen 0 + +# strstr takes strings as arguments +ArgumentIsString strstr 0 1 +# it also returns a string +ReturnsString strstr + +CustomCCode /* Include string.h header */ +CustomCCode #include <string.h> |