Skip to content

Commit

Permalink
dmd 0.163 update
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.dsource.org/projects/pyd/trunk@29 1df65b71-e716-0410-9316-ac55df2b1602
  • Loading branch information
KirkMcDonald authored and KirkMcDonald committed Jul 19, 2006
1 parent b6ff9e2 commit 9b59a32
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion dcompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
'ctor_wrap.d',
'def.d',
'dg_convert.d',
'dpyobject.d',
'exception.d',
'ftype.d',
'func_wrap.d',
'make_object.d',
'object.d',
'op_wrap.d',
'pyd.d',
'tuples.d',
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/build_ddoc.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
C:\dmd\dmd\bin\dmd.exe -o- -Ddpyd\doc pyd\class_wrap.d pyd\ctor_wrap.d pyd\def.d pyd\dg_convert.d pyd\exception.d pyd\ftype.d pyd\make_object.d pyd\object.d pyd\pyd.d pyd\doc\candydoc\candy.ddoc pyd\doc\candydoc\modules.ddoc
C:\dmd\dmd\bin\dmd.exe -o- -Ddpyd\doc pyd\class_wrap.d pyd\ctor_wrap.d pyd\def.d pyd\dg_convert.d pyd\exception.d pyd\ftype.d pyd\make_object.d pyd\dpyobject.d pyd\pyd.d pyd\doc\candydoc\candy.ddoc pyd\doc\candydoc\modules.ddoc

pause
2 changes: 1 addition & 1 deletion infrastructure/build_wiki_ddoc.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
C:\dmd\dmd\bin\dmd.exe -o- -Ddpyd\wiki_doc pyd\class_wrap.d pyd\ctor_wrap.d pyd\def.d pyd\dg_convert.d pyd\exception.d pyd\ftype.d pyd\make_object.d pyd\object.d pyd\pyd.d pyd\wiki_doc\wiki_doc\wikidoc.ddoc
C:\dmd\dmd\bin\dmd.exe -o- -Ddpyd\wiki_doc pyd\class_wrap.d pyd\ctor_wrap.d pyd\def.d pyd\dg_convert.d pyd\exception.d pyd\ftype.d pyd\make_object.d pyd\dpyobject.d pyd\pyd.d pyd\wiki_doc\wiki_doc\wikidoc.ddoc

pause
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
module pyd.object;
module pyd.dpyobject;

private import std.c.stdio;
private import python;
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/pyd/make_object.d
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module pyd.make_object;
private import python;
private import std.string;
// Base type
private import pyd.object;
private import pyd.dpyobject;
private import pyd.class_wrap;
private import pyd.func_wrap;

Expand Down
20 changes: 9 additions & 11 deletions infrastructure/pyd/pyd.d
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ SOFTWARE.
*/
module pyd.pyd;

private import python;
import pyd.def;
import pyd.class_wrap;
import pyd.ctor_wrap;
import pyd.exception;
import pyd.ftype;
import pyd.func_wrap;
import pyd.make_object;
import pyd.tuples;
// Base type
import pyd.object;
public import pyd.def;
public import pyd.class_wrap;
public import pyd.ctor_wrap;
public import pyd.dpyobject;
public import pyd.exception;
public import pyd.ftype;
public import pyd.func_wrap;
public import pyd.make_object;
public import pyd.tuples;

7 changes: 4 additions & 3 deletions infrastructure/python/headers/python.d
Original file line number Diff line number Diff line change
Expand Up @@ -3182,6 +3182,8 @@ PyObject *PyStructSequence_SET_ITEM(PyObject *op, int i, PyObject *v) {
* pointers to the required objects manually (see
* python_support.d/_loadPythonSupport). */

private {

/* Singletons: */
PyObject* m_Py_None;
PyObject* m_Py_NotImplemented;
Expand Down Expand Up @@ -3295,8 +3297,6 @@ PyObject* m_PyExc_SyntaxWarning;
PyObject* m_PyExc_RuntimeWarning;
PyObject* m_PyExc_FutureWarning;

private {

PyObject *eval(char[] code) {
PyObject *pyGlobals = PyEval_GetGlobals(); /* borrowed ref */
PyObject *res = PyRun_String(code ~ \0, Py_eval_input,
Expand All @@ -3310,6 +3310,8 @@ PyObject *eval(char[] code) {

PyObject* m_builtins, m_types, m_weakref;

} /* end private */

// These template functions will lazily-load the various singleton objects,
// removing the need for a "load" function that does it all at once.
typeof(Ptr) lazy_sys(alias Ptr, char[] name) () {
Expand Down Expand Up @@ -3341,7 +3343,6 @@ typeof(Ptr) lazy_eval(alias Ptr, char[] code) () {
return Ptr;
}

} /* end private */

//void _loadPythonSupport() {
//static this() {
Expand Down

0 comments on commit 9b59a32

Please sign in to comment.