Fix assorted comment and documentation typos
This commit is contained in:
parent
894de07c3d
commit
2f3bf144c6
33 changed files with 56 additions and 56 deletions
|
|
@ -1098,7 +1098,7 @@ CHICKEN_GENERATED_SCHEME = $(INTERFACE:.i=.scm)
|
|||
CHICKEN_COMPILED_SCHEME = $(INTERFACE:.i=_chicken.c)
|
||||
CHICKEN_COMPILED_OBJECT = $(CHICKEN_COMPILED_SCHEME:.c=.@OBJEXT@)
|
||||
|
||||
# flags for the main chicken sources (only used when compiling staticly)
|
||||
# flags for the main chicken sources (only used when compiling statically)
|
||||
CHICKEN_COMPILED_MAIN = $(CHICKEN_MAIN:.scm=_chicken.c)
|
||||
CHICKEN_COMPILED_MAIN_OBJECT = $(CHICKEN_COMPILED_MAIN:.c=.@OBJEXT@)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ SWIG.
|
|||
|
||||
<h2>The C++ Code</h2>
|
||||
|
||||
Lets take a templated function and a templated class as follows:
|
||||
Let's take a templated function and a templated class as follows:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ This example illustrates how C++ templates can be used from Java using SWIG.
|
|||
|
||||
<h2>The C++ Code</h2>
|
||||
|
||||
Lets take a templated function and a templated class as follows:
|
||||
Let's take a templated function and a templated class as follows:
|
||||
|
||||
<blockquote>
|
||||
<pre>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
-- import
|
||||
-- the lua 5.0 loading mechanism is rather poor & relies upon the loadlib() fn
|
||||
-- the lua 5.1 loading mechanism is simplicity itself
|
||||
-- for now we need a bridge which will use the correct verion
|
||||
-- for now we need a bridge which will use the correct version
|
||||
|
||||
function import_5_0(module)
|
||||
-- imports the file into the program
|
||||
|
|
@ -10,7 +10,7 @@ function import_5_0(module)
|
|||
-- and look for the fn 'Example_Init()' (note the capitalisation)
|
||||
if rawget(_G,module)~=nil then return end -- module appears to be loaded
|
||||
|
||||
-- capitialising the first letter
|
||||
-- capitalising the first letter
|
||||
local c=string.upper(string.sub(module,1,1))
|
||||
local fnname=c..string.sub(module,2).."_Init"
|
||||
|
||||
|
|
@ -26,7 +26,7 @@ function import_5_0(module)
|
|||
end
|
||||
assert(lib,"error loading module:"..module)
|
||||
|
||||
lib() -- execute the function: initalising the lib
|
||||
lib() -- execute the function: initialising the lib
|
||||
local m=rawget(_G,module) -- gets the module object
|
||||
assert(m~=nil,"no module table found")
|
||||
end
|
||||
|
|
@ -39,4 +39,4 @@ if string.sub(_VERSION,1,7)=='Lua 5.0' then
|
|||
import=import_5_0
|
||||
else
|
||||
import=import_5_1
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ print
|
|||
print "Adding and calling another Python callback"
|
||||
print "------------------------------------------"
|
||||
|
||||
# Lets do the same but use the weak reference this time.
|
||||
# Let's do the same but use the weak reference this time.
|
||||
|
||||
callback = PyCallback().__disown__()
|
||||
caller.setCallback(callback)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ extern int count(char *bytes, int len, char c);
|
|||
/* This example shows how to wrap a function that mutates a string */
|
||||
|
||||
/* Since str is modified, we make a copy of the Python object
|
||||
so that we don't violate it's mutability */
|
||||
so that we don't violate its mutability */
|
||||
|
||||
%typemap(in) (char *str, int len) {
|
||||
%#if PY_VERSION_HEX >= 0x03000000
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<title>SWIG:Examples:ruby</title>
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
See ../README for common README file.
|
||||
|
||||
The Java implementation of the test-suite is a little different to the other languages in that all of SWIGs output goes into a subdirectory named after the individual test case. This is so that all the shadow classes can be compiled as Java classes have to go into separate files. Otherwise the Makefile wouldn't know which .java files would be relevant to the testcase. For this to work the testcase must go into a Java package.
|
||||
The Java implementation of the test-suite is a little different to the other languages in that all of SWIG's output goes into a subdirectory named after the individual test case. This is so that all the shadow classes can be compiled as Java classes which have to go into separate files. Otherwise the Makefile wouldn't know which .java files would be relevant to the testcase. For this to work the testcase must go into a Java package.
|
||||
|
||||
Any testcases which have _runme.java appended after the testcase name will be detected and run.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
-- import
|
||||
-- the lua 5.0 loading mechanism is rather poor & relies upon the loadlib() fn
|
||||
-- the lua 5.1 loading mechanism is simplicity itself
|
||||
-- for now we need a bridge which will use the correct verion
|
||||
-- for now we need a bridge which will use the correct version
|
||||
|
||||
function import_5_0(name)
|
||||
-- imports the file into the program
|
||||
|
|
@ -13,7 +13,7 @@ function import_5_0(name)
|
|||
local lib=loadlib(name..'.dll','luaopen_'..name) or loadlib(name..'.so','luaopen_'..name)
|
||||
assert(lib,"error loading module:"..name)
|
||||
|
||||
lib() -- execute the function: initalising the lib
|
||||
lib() -- execute the function: initialising the lib
|
||||
assert(rawget(_G,name)~=nil,"no module table found")
|
||||
end
|
||||
|
||||
|
|
@ -25,4 +25,4 @@ if string.sub(_VERSION,1,7)=='Lua 5.0' then
|
|||
import=import_5_0
|
||||
else
|
||||
import=import_5_1
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue