diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:56 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-05 14:52:56 +0000 |
| commit | 115b18fc6f4a245d415584090734cd43b52a6f6a (patch) | |
| tree | cd7c9629f3ddaabbbc5e2b240b72eabf35d77024 | |
| parent | 1fae093527f69de086934f5df750cf374eaa2f48 (diff) | |
| download | lasso-115b18fc6f4a245d415584090734cd43b52a6f6a.tar.gz lasso-115b18fc6f4a245d415584090734cd43b52a6f6a.tar.xz lasso-115b18fc6f4a245d415584090734cd43b52a6f6a.zip | |
Move all files related to the php5 binding inside
the php5 subdirectory.
| -rw-r--r-- | bindings/php5/__init__.py (renamed from bindings/lang_php5_helpers/__init__.py) | 0 | ||||
| -rw-r--r-- | bindings/php5/lang.py (renamed from bindings/lang_php5.py) | 9 | ||||
| -rw-r--r-- | bindings/php5/php_code.py (renamed from bindings/lang_php5_helpers/php_code.py) | 0 | ||||
| -rw-r--r-- | bindings/php5/wrapper_header.py (renamed from bindings/lang_php5_helpers/wrapper_header.py) | 0 | ||||
| -rw-r--r-- | bindings/php5/wrapper_source.py (renamed from bindings/lang_php5_helpers/wrapper_source.py) | 4 | ||||
| -rw-r--r-- | bindings/php5/wrapper_source_top.c (renamed from bindings/lang_php5_helpers/wrapper_source_top.c) | 0 |
6 files changed, 6 insertions, 7 deletions
diff --git a/bindings/lang_php5_helpers/__init__.py b/bindings/php5/__init__.py index e69de29b..e69de29b 100644 --- a/bindings/lang_php5_helpers/__init__.py +++ b/bindings/php5/__init__.py diff --git a/bindings/lang_php5.py b/bindings/php5/lang.py index 05e3f5c9..fbed5d47 100644 --- a/bindings/lang_php5.py +++ b/bindings/php5/lang.py @@ -20,12 +20,11 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import os +from wrapper_source import WrapperSource +from wrapper_header import WrapperHeader +from php_code import PhpCode -from lang_php5_helpers.wrapper_source import WrapperSource -from lang_php5_helpers.wrapper_header import WrapperHeader -from lang_php5_helpers.php_code import PhpCode - -class Php5Binding: +class Binding: def __init__(self, binding_data): self.binding_data = binding_data diff --git a/bindings/lang_php5_helpers/php_code.py b/bindings/php5/php_code.py index 8b8eef84..8b8eef84 100644 --- a/bindings/lang_php5_helpers/php_code.py +++ b/bindings/php5/php_code.py diff --git a/bindings/lang_php5_helpers/wrapper_header.py b/bindings/php5/wrapper_header.py index 3cf895af..3cf895af 100644 --- a/bindings/lang_php5_helpers/wrapper_header.py +++ b/bindings/php5/wrapper_header.py diff --git a/bindings/lang_php5_helpers/wrapper_source.py b/bindings/php5/wrapper_source.py index dfeb47fe..8279d3db 100644 --- a/bindings/lang_php5_helpers/wrapper_source.py +++ b/bindings/php5/wrapper_source.py @@ -29,6 +29,7 @@ class WrapperSource: self.binding_data = binding_data self.fd = fd self.functions_list = [] + self.src_dir = os.path.dirname(__file__) def is_object(self, t): return t not in ['char*', 'const char*', 'gchar*', 'const gchar*', 'GList*', 'GHashTable*', @@ -56,8 +57,7 @@ class WrapperSource: /* this file has been generated automatically; do not edit */ ''' - print >> self.fd, open(os.path.join(self.binding_data.src_dir, - 'lang_php5_helpers/wrapper_source_top.c')).read() + print >> self.fd, open(os.path.join(self.src_dir,'wrapper_source_top.c')).read() for h in self.binding_data.headers: print >> self.fd, '#include <%s>' % h diff --git a/bindings/lang_php5_helpers/wrapper_source_top.c b/bindings/php5/wrapper_source_top.c index ba7f1fe6..ba7f1fe6 100644 --- a/bindings/lang_php5_helpers/wrapper_source_top.c +++ b/bindings/php5/wrapper_source_top.c |
