[pygccxml-commit] SF.net SVN: pygccxml:[1533] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2009-01-05 15:07:41
|
Revision: 1533
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1533&view=rev
Author: roman_yakovenko
Date: 2009-01-05 15:07:31 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
rename bparser to binary_parsers
Modified Paths:
--------------
pygccxml_dev/unittests/bsc_tester.py
pygccxml_dev/unittests/data/core_cache.hpp
pygccxml_dev/unittests/mspdb_playground.py
pygccxml_dev/unittests/pdb_tester.py
pygccxml_dev/unittests/undname_creator_tester.py
pyplusplus_dev/pyplusplus/code_creators/declaration_based.py
pyplusplus_dev/pyplusplus/code_creators/library_reference.py
pyplusplus_dev/pyplusplus/creators_factory/ctypes_creator.py
pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper_printer.py
pyplusplus_dev/pyplusplus/module_builder/ctypes_builder.py
pyplusplus_dev/unittests/autoconfig.py
Modified: pygccxml_dev/unittests/bsc_tester.py
===================================================================
--- pygccxml_dev/unittests/bsc_tester.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pygccxml_dev/unittests/bsc_tester.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -2,7 +2,7 @@
import unittest
import autoconfig
-from pygccxml.msvc import bsc
+from pygccxml.binary_parsers binary_parsers import bsc
class tester_t( unittest.TestCase ):
def __init__(self, *args):
Modified: pygccxml_dev/unittests/data/core_cache.hpp
===================================================================
--- pygccxml_dev/unittests/data/core_cache.hpp 2009-01-05 15:05:18 UTC (rev 1532)
+++ pygccxml_dev/unittests/data/core_cache.hpp 2009-01-05 15:07:31 UTC (rev 1533)
@@ -22,4 +22,4 @@
#endif//__core_cache_hpp__
-//touch//touch//touch
\ No newline at end of file
+//touch//touch//touch//touch//touch
\ No newline at end of file
Modified: pygccxml_dev/unittests/mspdb_playground.py
===================================================================
--- pygccxml_dev/unittests/mspdb_playground.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pygccxml_dev/unittests/mspdb_playground.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -3,9 +3,9 @@
import autoconfig
import pprint
-from pygccxml.msvc import mspdb
+from pygccxml.binary_parsers import mspdb
from pygccxml import declarations
-from pygccxml.msvc import common_utils as msvc_utils
+from pygccxml.binary_parsers import common_utils as msvc_utils
pdb_file = r'E:\development\language-binding\pyplusplus_dev\pyplusplus\cpptypes\mydll\release\mydll.pdb'
pdb_file = r'D:\AC_SERVER_4_VS2005\libs\Debug\SPDBLib_d.pdb'
Modified: pygccxml_dev/unittests/pdb_tester.py
===================================================================
--- pygccxml_dev/unittests/pdb_tester.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pygccxml_dev/unittests/pdb_tester.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -2,9 +2,9 @@
import unittest
import autoconfig
-from pygccxml.msvc import mspdb
+from pygccxml.binary_parsers import mspdb
from pygccxml import declarations
-from pygccxml.msvc import common_utils as msvc_utils
+from pygccxml.binary_parsers import common_utils as msvc_utils
class tester_t( unittest.TestCase ):
def __init__(self, *args):
Modified: pygccxml_dev/unittests/undname_creator_tester.py
===================================================================
--- pygccxml_dev/unittests/undname_creator_tester.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pygccxml_dev/unittests/undname_creator_tester.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -10,13 +10,11 @@
import parser_test_case
import pprint
-from pygccxml import msvc
+from pygccxml import binary_parsers
from pygccxml import utils
from pygccxml import parser
from pygccxml import declarations
-print msvc.undecorate_blob( '?make_flatten@algorithms@reflection@engine_objects@@YAXAEBVinstance_info_t@23@V?$back_insert_iterator@V?$vector@Vinstance_info_t@reflection@engine_objects@@V?$allocator@Vinstance_info_t@reflection@engine_objects@@@std@@@std@@@std@@@Z' )
-
class tester_t( parser_test_case.parser_test_case_t ):
global_ns = None
@@ -51,19 +49,19 @@
return False
def __tester_impl( self, fname ):
- symbols = msvc.exported_symbols.load_from_file( fname )
+ symbols = binary_parsers.exported_symbols.load_from_file( fname )
self.failUnless( 'identity' in symbols )
undecorated_blob_names = set()
for blob in symbols.iterkeys():
- undname = msvc.undecorate_blob( blob )
+ undname = binary_parsers.undecorate_blob( blob )
if "`" in undname:
continue
undecorated_blob_names.add( undname )
undecorated_decl_names = set()
for f in self.global_ns.decls(self.is_included):
- undecorated_decl_names.add( msvc.undecorate_decl( f ) )
+ undecorated_decl_names.add( binary_parsers.undecorate_decl( f ) )
issuperset = undecorated_decl_names.issuperset( undecorated_blob_names )
if not issuperset:
Modified: pyplusplus_dev/pyplusplus/code_creators/declaration_based.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/declaration_based.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/pyplusplus/code_creators/declaration_based.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -43,8 +43,8 @@
@utils.cached
def undecorated_decl_name( self ):
- from pygccxml import msvc #prevent import on Linux
- return msvc.undecorate_decl( self.declaration )
+ from pygccxml import binary_parsers #prevent import on Linux
+ return binary_parsers.undecorate_decl( self.declaration )
@utils.cached
def complete_py_name( self ):
Modified: pyplusplus_dev/pyplusplus/code_creators/library_reference.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/library_reference.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/pyplusplus/code_creators/library_reference.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -7,6 +7,18 @@
import code_creator
from pyplusplus import decl_wrappers
+#TODO: add different dlls
+
+#TODO: another idea is a small refactoring in ctypes:
+#the idea is to introduce single "load shared library function", which servers
+#as a factory for function defined in the library:
+# class shared_library:
+# def function( self, name_or_ordinal, calling convention, restype, argtypes )
+
+#TODO: why I need to preload "C" runtime ( other libraries )?
+
+#TODO: how I can find out the full path of the loaded dll
+
class library_reference_t(code_creator.code_creator_t):
"""Creates reference to a library"""
Modified: pyplusplus_dev/pyplusplus/creators_factory/ctypes_creator.py
===================================================================
--- pyplusplus_dev/pyplusplus/creators_factory/ctypes_creator.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/pyplusplus/creators_factory/ctypes_creator.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -5,7 +5,7 @@
import sort_algorithms
import dependencies_manager
-from pygccxml import msvc
+from pygccxml import binary_parsers
from pyplusplus import _logging_
from pygccxml import declarations
from pyplusplus import decl_wrappers
Modified: pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper_printer.py
===================================================================
--- pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper_printer.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/pyplusplus/decl_wrappers/decl_wrapper_printer.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -51,9 +51,9 @@
self.writer( ' ' * (self.level+1) * self.INDENT_SIZE
+ "use default arguments: " + str(self.instance.use_default_arguments) + os.linesep )
try:
- from pygccxml import msvc
+ from pygccxml import binary_parsers
self.writer( ' ' * (self.level+1) * self.INDENT_SIZE
- + "undecorated decl: " + msvc.undecorate_decl(self.instance) + os.linesep )
+ + "undecorated decl: " + binary_parsers.undecorate_decl(self.instance) + os.linesep )
except:
pass
Modified: pyplusplus_dev/pyplusplus/module_builder/ctypes_builder.py
===================================================================
--- pyplusplus_dev/pyplusplus/module_builder/ctypes_builder.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/pyplusplus/module_builder/ctypes_builder.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -10,7 +10,7 @@
import warnings
import module_builder
-from pygccxml import msvc
+from pygccxml import binary_parsers
from pygccxml import parser
from pygccxml import declarations as decls_package
@@ -55,7 +55,7 @@
"""
module_builder.module_builder_t.__init__( self, global_ns=None, encoding=encoding )
- self.__blob2undecorated = msvc.exported_symbols.load_from_file( exported_symbols_file )
+ self.__blob2undecorated = binary_parsers.exported_symbols.load_from_file( exported_symbols_file )
self.global_ns = self.__parse_declarations( files, gccxml_config )
self.__include_declarations()
@@ -82,7 +82,7 @@
self.global_ns.exclude()
b2u = self.__blob2undecorated
undecorated = set( b2u.values() )
- is_exported = lambda d: msvc.undecorate_decl( d ) in undecorated \
+ is_exported = lambda d: binary_parsers.undecorate_decl( d ) in undecorated \
or d.name in b2u and b2u[d.name] == d.name #treatment of C functions
#include exported declarations
included_decls = set()
Modified: pyplusplus_dev/unittests/autoconfig.py
===================================================================
--- pyplusplus_dev/unittests/autoconfig.py 2009-01-05 15:05:18 UTC (rev 1532)
+++ pyplusplus_dev/unittests/autoconfig.py 2009-01-05 15:07:31 UTC (rev 1533)
@@ -90,7 +90,7 @@
for line in process.stdout.readlines():
print line.rstrip()
if process.returncode:
- raise RuntimeError( "unable to compile extension. error: %s" % scons_msg )
+ raise RuntimeError( "unable to compile extension. See output for the errors." )
#I need this in order to allow Python to load just compiled modules
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|