Update documentation to use the right div class="targetlang" and such.
The only docs left to update are the individual language chapters. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7081 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a09045ab5c
commit
8cbb864008
13 changed files with 161 additions and 161 deletions
|
|
@ -274,7 +274,7 @@ this actually provides enough support for many simple kinds of varargs functions
|
|||
instance, you could make function calls like this (in Python):
|
||||
</p>
|
||||
|
||||
<div class="code">
|
||||
<div class="targetlang">
|
||||
<pre>
|
||||
>>> traceprintf("Hello World")
|
||||
>>> traceprintf("Hello %s. Your number is %d\n" % (name, num))
|
||||
|
|
@ -722,7 +722,7 @@ int printf(const char *fmt, ...);
|
|||
Much to your amazement, it even seems to work if you try it:
|
||||
</p>
|
||||
|
||||
<div class="code">
|
||||
<div class="targetlang">
|
||||
<pre>
|
||||
>>> import example
|
||||
>>> example.printf("Grade: %s %d/60 = %0.2f%%\n", "Dave", 47, 47.0*100/60)
|
||||
|
|
@ -735,7 +735,7 @@ Grade: Dave 47/60 = 78.33%
|
|||
Of course, there are still some limitations to consider:
|
||||
</p>
|
||||
|
||||
<div class="code">
|
||||
<div class="targetlang">
|
||||
<pre>
|
||||
>>> example.printf("la de da de da %s", 42)
|
||||
Segmentation fault (core dumped)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue