Skip to content

Commit 3533bd0

Browse files
author
Bruno da Silva de Oliveira
committed
no message
[SVN r20266]
1 parent 1a51a7d commit 3533bd0

33 files changed

+561
-122
lines changed

pyste/NEWS

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
6 October 2003
2+
Fixed bug reported by Niall Douglas (using his patch) about UniqueInt not
3+
appearing correctly with --multiple.
4+
5+
Added precompiled header support on windows systems (using #pragma hdrstop).
6+
Suggested by Niall Douglas.
7+
8+
Fixed a bug with -I directive and AllFromHeader. Reported by Scott Snyder.
9+
10+
4 October 2003
11+
Added return_self, thanks for Niall Douglas for pointing out that it was
12+
missing.
13+
14+
Added --file-list, where you can pass a file where the pyste files are listed
15+
one per line. Also suggested by Niall Douglas.
16+
17+
Documentation has been finally updated, after a long wait. Please let me know
18+
if you spot any mistake!
19+
20+
2 October 2003
21+
Scott Snyder found a typo in ClassExporter that prevented -= and *= operators
22+
from being exported. Thanks Scott!
23+
124
20 September 2003
225
Added return_by_value in the list of policies supported. Thanks to Niall
326
Douglas for the remainder.

pyste/TODO

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
- Virtual operators
1111

1212
- args() support
13+
14+
- --file-list, allowing the user to pass the filename of a file with the pyste
15+
files

pyste/doc/adding_new_methods.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<title>Adding New Methods</title>
55
<link rel="stylesheet" href="theme/style.css" type="text/css">
66
<link rel="prev" href="global_variables.html">
7+
<link rel="next" href="inserting_code.html">
78
</head>
89
<body>
910
<table width="100%" height="48" border="0" cellspacing="2">
@@ -20,7 +21,7 @@
2021
<tr>
2122
<td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td>
2223
<td width="30"><a href="global_variables.html"><img src="theme/l_arr.gif" border="0"></a></td>
23-
<td width="20"><img src="theme/r_arr_disabled.gif" border="0"></td>
24+
<td width="20"><a href="inserting_code.html"><img src="theme/r_arr.gif" border="0"></a></td>
2425
</tr>
2526
</table>
2627
<p>
@@ -66,7 +67,7 @@
6667
<tr>
6768
<td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td>
6869
<td width="30"><a href="global_variables.html"><img src="theme/l_arr.gif" border="0"></a></td>
69-
<td width="20"><img src="theme/r_arr_disabled.gif" border="0"></td>
70+
<td width="20"><a href="inserting_code.html"><img src="theme/r_arr.gif" border="0"></a></td>
7071
</tr>
7172
</table>
7273
<br>

pyste/doc/exporting_an_entire_header.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@
6060
<span class=identifier>rename</span><span class=special>(</span><span class=identifier>hello</span><span class=special>.</span><span class=identifier>World</span><span class=special>.</span><span class=identifier>greet</span><span class=special>, </span><span class=string>&quot;Greet&quot;</span><span class=special>)
6161
</span><span class=identifier>exclude</span><span class=special>(</span><span class=identifier>hello</span><span class=special>.</span><span class=identifier>World</span><span class=special>.</span><span class=identifier>set</span><span class=special>, </span><span class=string>&quot;Set&quot;</span><span class=special>)
6262
</span></pre></code>
63+
<table width="80%" border="0" align="center">
64+
<tr>
65+
<td class="note_box">
66+
67+
<img src="theme/note.gif"></img> <b>AllFromHeader is broken</b> in some cases. Until it is fixed,
68+
use at you own risk.
69+
</td>
70+
</tr>
71+
</table>
6372
<table border="0">
6473
<tr>
6574
<td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td>

pyste/doc/inserting_code.html

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<html>
2+
<head>
3+
<!-- Generated by the Spirit (http://spirit.sf.net) QuickDoc -->
4+
<title>Inserting Code</title>
5+
<link rel="stylesheet" href="theme/style.css" type="text/css">
6+
<link rel="prev" href="adding_new_methods.html">
7+
</head>
8+
<body>
9+
<table width="100%" height="48" border="0" cellspacing="2">
10+
<tr>
11+
<td><img src="theme/c%2B%2Bboost.gif">
12+
</td>
13+
<td width="85%">
14+
<font size="6" face="Verdana, Arial, Helvetica, sans-serif"><b>Inserting Code</b></font>
15+
</td>
16+
</tr>
17+
</table>
18+
<br>
19+
<table border="0">
20+
<tr>
21+
<td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td>
22+
<td width="30"><a href="adding_new_methods.html"><img src="theme/l_arr.gif" border="0"></a></td>
23+
<td width="20"><img src="theme/r_arr_disabled.gif" border="0"></td>
24+
</tr>
25+
</table>
26+
<p>
27+
You can insert arbitrary code in the generated cpps, just use the functions
28+
<tt>declaration_code</tt> and <tt>module_code</tt>. This will insert the given string in the
29+
respective sections. Example:</p>
30+
<code><pre>
31+
##<span class=identifier>file </span><span class=identifier>A</span><span class=special>.</span><span class=identifier>pyste
32+
</span><span class=identifier>Class</span><span class=special>(</span><span class=string>&quot;A&quot;</span><span class=special>, </span><span class=string>&quot;A.h&quot;</span><span class=special>)
33+
</span><span class=identifier>declaration_code</span><span class=special>(</span><span class=string>&quot;/* declaration_code() comes here */\n&quot;</span><span class=special>)
34+
</span><span class=identifier>module_code</span><span class=special>(</span><span class=string>&quot;/* module_code() comes here */\n&quot;</span><span class=special>)
35+
</span></pre></code>
36+
<p>
37+
Will generate:</p>
38+
<code><pre>
39+
<span class=comment>// Includes ====================================================================
40+
</span><span class=preprocessor>#include </span><span class=special>&lt;</span><span class=identifier>boost</span><span class=special>/</span><span class=identifier>python</span><span class=special>.</span><span class=identifier>hpp</span><span class=special>&gt;
41+
42+
// </span><span class=identifier>Using </span><span class=special>=======================================================================
43+
</span><span class=keyword>using </span><span class=keyword>namespace </span><span class=identifier>boost</span><span class=special>::</span><span class=identifier>python</span><span class=special>;
44+
45+
// </span><span class=identifier>Declarations </span><span class=special>================================================================
46+
47+
/* </span><span class=identifier>declaration_code</span><span class=special>() </span><span class=identifier>comes </span><span class=identifier>here </span><span class=special>*/
48+
49+
// </span><span class=identifier>Module </span><span class=special>======================================================================
50+
</span><span class=identifier>BOOST_PYTHON_MODULE</span><span class=special>(</span><span class=identifier>A</span><span class=special>)
51+
{
52+
</span><span class=identifier>class_</span><span class=special>&lt; </span><span class=identifier>A </span><span class=special>&gt;(</span><span class=string>&quot;A&quot;</span><span class=special>, </span><span class=identifier>init</span><span class=special>&lt; &gt;())
53+
.</span><span class=identifier>def</span><span class=special>(</span><span class=identifier>init</span><span class=special>&lt; </span><span class=keyword>const </span><span class=identifier>A</span><span class=special>&amp; &gt;())
54+
;
55+
56+
/* </span><span class=identifier>module_code</span><span class=special>() </span><span class=identifier>comes </span><span class=identifier>here </span><span class=special>*/
57+
}
58+
</span></pre></code>
59+
<table border="0">
60+
<tr>
61+
<td width="30"><a href="../index.html"><img src="theme/u_arr.gif" border="0"></a></td>
62+
<td width="30"><a href="adding_new_methods.html"><img src="theme/l_arr.gif" border="0"></a></td>
63+
<td width="20"><img src="theme/r_arr_disabled.gif" border="0"></td>
64+
</tr>
65+
</table>
66+
<br>
67+
<hr size="1"><p class="copyright">Copyright &copy; 2003 Bruno da Silva de Oliveira<br>Copyright &copy; 2002-2003 Joel de Guzman<br><br>
68+
<font size="2">Permission to copy, use, modify, sell and distribute this document
69+
is granted provided this copyright notice appears in all copies. This document
70+
is provided &quot;as is&quot; without express or implied warranty, and with
71+
no claim as to its suitability for any purpose. </font> </p>
72+
</body>
73+
</html>

pyste/doc/policies.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<td class="note_box">
6868

6969
<img src="theme/note.gif"></img>
70-
Note that, for functions that return <tt>const T&amp;</tt>, the policy
70+
Note that for functions that return <tt>const T&amp;</tt>, the policy
7171
<tt>return_value_policy&lt;copy_const_reference&gt;()</tt> wil be used by default, because
7272
that's normally what you want. You can change it to something else if you need
7373
to, though.

0 commit comments

Comments
 (0)