Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3347820c
提交
3347820c
authored
6月 27, 2017
作者:
Mike Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-10427: move libesl to use swig3.0 so we can reswig on debian9
上级
10e7e342
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
33 个修改的文件
包含
2159 行增加
和
1136 行删除
+2159
-1136
.gitignore
libs/esl/.gitignore
+3
-0
Makefile
libs/esl/java/Makefile
+1
-1
esl_wrap.cpp
libs/esl/java/esl_wrap.cpp
+1
-1
ESLconnection.java
libs/esl/java/org/freeswitch/esl/ESLconnection.java
+1
-1
ESLevent.java
libs/esl/java/org/freeswitch/esl/ESLevent.java
+1
-1
SWIGTYPE_p_esl_event_t.java
libs/esl/java/org/freeswitch/esl/SWIGTYPE_p_esl_event_t.java
+1
-1
SWIGTYPE_p_esl_priority_t.java
...sl/java/org/freeswitch/esl/SWIGTYPE_p_esl_priority_t.java
+1
-1
esl.java
libs/esl/java/org/freeswitch/esl/esl.java
+1
-1
eslJNI.java
libs/esl/java/org/freeswitch/esl/eslJNI.java
+1
-1
Makefile
libs/esl/lua/Makefile
+1
-1
esl_wrap.cpp
libs/esl/lua/esl_wrap.cpp
+1246
-415
ESL.cs
libs/esl/managed/ESL.cs
+1
-4
ESLPINVOKE.cs
libs/esl/managed/ESLPINVOKE.cs
+119
-122
ESLconnection.cs
libs/esl/managed/ESLconnection.cs
+30
-33
ESLevent.cs
libs/esl/managed/ESLevent.cs
+12
-15
Makefile
libs/esl/managed/Makefile
+1
-1
SWIGTYPE_p_esl_event_t.cs
libs/esl/managed/SWIGTYPE_p_esl_event_t.cs
+7
-10
SWIGTYPE_p_esl_priority_t.cs
libs/esl/managed/SWIGTYPE_p_esl_priority_t.cs
+7
-10
esl_wrap.cpp
libs/esl/managed/esl_wrap.cpp
+1
-1
ESL.pm
libs/esl/perl/ESL.pm
+1
-1
Makefile.am
libs/esl/perl/Makefile.am
+1
-1
esl_wrap.cpp
libs/esl/perl/esl_wrap.cpp
+20
-15
ESL.php
libs/esl/php/ESL.php
+12
-12
Makefile.am
libs/esl/php/Makefile.am
+1
-1
esl_wrap.cpp
libs/esl/php/esl_wrap.cpp
+365
-210
php_ESL.h
libs/esl/php/php_ESL.h
+1
-1
ESL.py
libs/esl/python/ESL.py
+1
-1
Makefile
libs/esl/python/Makefile
+1
-1
esl_wrap.cpp
libs/esl/python/esl_wrap.cpp
+25
-21
Makefile
libs/esl/ruby/Makefile
+1
-1
esl_wrap.cpp
libs/esl/ruby/esl_wrap.cpp
+17
-18
Makefile
libs/esl/tcl/Makefile
+1
-1
esl_wrap.cpp
libs/esl/tcl/esl_wrap.cpp
+276
-232
没有找到文件。
libs/esl/.gitignore
浏览文件 @
3347820c
...
...
@@ -10,3 +10,6 @@ Makefile.in
!python/Makefile
!ruby/Makefile
!tcl/Makefile
java/classes/org/
java/esl.jar
libs/esl/java/Makefile
浏览文件 @
3347820c
...
...
@@ -5,7 +5,7 @@ CLASSES=org/freeswitch/esl/*
all
:
esl.jar
esl_wrap.cpp
:
swig
2
.0
-module
esl
-java
-c
++
$(LOCAL_CFLAGS)
-package
org.freeswitch.esl
-outdir
org/freeswitch/esl
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
esl
-java
-c
++
$(LOCAL_CFLAGS)
-package
org.freeswitch.esl
-outdir
org/freeswitch/esl
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(LOCAL_CFLAGS)
$(CXXFLAGS)
$(GCC_WARNING_JUNK)
$(PERL_INC)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/java/esl_wrap.cpp
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
libs/esl/java/org/freeswitch/esl/ESLconnection.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/java/org/freeswitch/esl/ESLevent.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/java/org/freeswitch/esl/SWIGTYPE_p_esl_event_t.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/java/org/freeswitch/esl/SWIGTYPE_p_esl_priority_t.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/java/org/freeswitch/esl/esl.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/java/org/freeswitch/esl/eslJNI.java
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
...
...
libs/esl/lua/Makefile
浏览文件 @
3347820c
...
...
@@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all
:
ESL.so
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-lua
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-lua
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(LUA_CFLAGS)
$(CXXFLAGS)
$(LOCAL_CFLAGS)
$(WRAP_GCC_WARNING_SILENCE)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/lua/esl_wrap.cpp
浏览文件 @
3347820c
差异被折叠。
点击展开。
libs/esl/managed/ESL.cs
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using
System
;
using
System.Runtime.InteropServices
;
public
class
ESL
{
public
static
void
eslSetLogLevel
(
int
level
)
{
ESLPINVOKE
.
eslSetLogLevel
(
level
);
...
...
libs/esl/managed/ESLPINVOKE.cs
浏览文件 @
3347820c
差异被折叠。
点击展开。
libs/esl/managed/ESLconnection.cs
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using
System
;
using
System.Runtime.InteropServices
;
public
class
ESLconnection
:
IDisposable
{
private
HandleRef
swigCPtr
;
public
class
ESLconnection
:
global
::
System
.
IDisposable
{
private
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
swigCPtr
;
protected
bool
swigCMemOwn
;
internal
ESLconnection
(
IntPtr
cPtr
,
bool
cMemoryOwn
)
{
internal
ESLconnection
(
global
::
System
.
IntPtr
cPtr
,
bool
cMemoryOwn
)
{
swigCMemOwn
=
cMemoryOwn
;
swigCPtr
=
new
HandleRef
(
this
,
cPtr
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
this
,
cPtr
);
}
internal
static
HandleRef
getCPtr
(
ESLconnection
obj
)
{
return
(
obj
==
null
)
?
new
HandleRef
(
null
,
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
internal
static
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
getCPtr
(
ESLconnection
obj
)
{
return
(
obj
==
null
)
?
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
}
~
ESLconnection
()
{
...
...
@@ -29,14 +26,14 @@ public class ESLconnection : IDisposable {
public
virtual
void
Dispose
()
{
lock
(
this
)
{
if
(
swigCPtr
.
Handle
!=
IntPtr
.
Zero
)
{
if
(
swigCPtr
.
Handle
!=
global
::
System
.
IntPtr
.
Zero
)
{
if
(
swigCMemOwn
)
{
swigCMemOwn
=
false
;
ESLPINVOKE
.
delete_ESLconnection
(
swigCPtr
);
}
swigCPtr
=
new
HandleRef
(
null
,
IntPtr
.
Zero
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
);
}
GC
.
SuppressFinalize
(
this
);
global
::
System
.
GC
.
SuppressFinalize
(
this
);
}
}
...
...
@@ -66,8 +63,8 @@ public class ESLconnection : IDisposable {
}
public
ESLevent
GetInfo
()
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_GetInfo
(
swigCPtr
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_GetInfo
(
swigCPtr
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
...
...
@@ -77,26 +74,26 @@ public class ESLconnection : IDisposable {
}
public
ESLevent
SendRecv
(
string
cmd
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_SendRecv
(
swigCPtr
,
cmd
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_SendRecv
(
swigCPtr
,
cmd
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
Api
(
string
cmd
,
string
arg
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Api
(
swigCPtr
,
cmd
,
arg
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Api
(
swigCPtr
,
cmd
,
arg
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
Bgapi
(
string
cmd
,
string
arg
,
string
job_uuid
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Bgapi
(
swigCPtr
,
cmd
,
arg
,
job_uuid
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Bgapi
(
swigCPtr
,
cmd
,
arg
,
job_uuid
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
SendEvent
(
ESLevent
send_me
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_SendEvent
(
swigCPtr
,
ESLevent
.
getCPtr
(
send_me
));
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_SendEvent
(
swigCPtr
,
ESLevent
.
getCPtr
(
send_me
));
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
...
...
@@ -106,20 +103,20 @@ public class ESLconnection : IDisposable {
}
public
ESLevent
RecvEvent
()
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_RecvEvent
(
swigCPtr
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_RecvEvent
(
swigCPtr
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
RecvEventTimed
(
int
ms
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_RecvEventTimed
(
swigCPtr
,
ms
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_RecvEventTimed
(
swigCPtr
,
ms
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
Filter
(
string
header
,
string
value
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Filter
(
swigCPtr
,
header
,
value
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Filter
(
swigCPtr
,
header
,
value
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
...
...
@@ -129,14 +126,14 @@ public class ESLconnection : IDisposable {
}
public
ESLevent
Execute
(
string
app
,
string
arg
,
string
uuid
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Execute
(
swigCPtr
,
app
,
arg
,
uuid
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_Execute
(
swigCPtr
,
app
,
arg
,
uuid
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
public
ESLevent
ExecuteAsync
(
string
app
,
string
arg
,
string
uuid
)
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_ExecuteAsync
(
swigCPtr
,
app
,
arg
,
uuid
);
ESLevent
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLconnection_ExecuteAsync
(
swigCPtr
,
app
,
arg
,
uuid
);
ESLevent
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
ESLevent
(
cPtr
,
true
);
return
ret
;
}
...
...
libs/esl/managed/ESLevent.cs
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using
System
;
using
System.Runtime.InteropServices
;
public
class
ESLevent
:
IDisposable
{
private
HandleRef
swigCPtr
;
public
class
ESLevent
:
global
::
System
.
IDisposable
{
private
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
swigCPtr
;
protected
bool
swigCMemOwn
;
internal
ESLevent
(
IntPtr
cPtr
,
bool
cMemoryOwn
)
{
internal
ESLevent
(
global
::
System
.
IntPtr
cPtr
,
bool
cMemoryOwn
)
{
swigCMemOwn
=
cMemoryOwn
;
swigCPtr
=
new
HandleRef
(
this
,
cPtr
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
this
,
cPtr
);
}
internal
static
HandleRef
getCPtr
(
ESLevent
obj
)
{
return
(
obj
==
null
)
?
new
HandleRef
(
null
,
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
internal
static
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
getCPtr
(
ESLevent
obj
)
{
return
(
obj
==
null
)
?
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
}
~
ESLevent
()
{
...
...
@@ -29,14 +26,14 @@ public class ESLevent : IDisposable {
public
virtual
void
Dispose
()
{
lock
(
this
)
{
if
(
swigCPtr
.
Handle
!=
IntPtr
.
Zero
)
{
if
(
swigCPtr
.
Handle
!=
global
::
System
.
IntPtr
.
Zero
)
{
if
(
swigCMemOwn
)
{
swigCMemOwn
=
false
;
ESLPINVOKE
.
delete_ESLevent
(
swigCPtr
);
}
swigCPtr
=
new
HandleRef
(
null
,
IntPtr
.
Zero
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
);
}
GC
.
SuppressFinalize
(
this
);
global
::
System
.
GC
.
SuppressFinalize
(
this
);
}
}
...
...
@@ -45,8 +42,8 @@ public class ESLevent : IDisposable {
ESLPINVOKE
.
ESLevent_Event_set
(
swigCPtr
,
SWIGTYPE_p_esl_event_t
.
getCPtr
(
value
));
}
get
{
IntPtr
cPtr
=
ESLPINVOKE
.
ESLevent_Event_get
(
swigCPtr
);
SWIGTYPE_p_esl_event_t
ret
=
(
cPtr
==
IntPtr
.
Zero
)
?
null
:
new
SWIGTYPE_p_esl_event_t
(
cPtr
,
false
);
global
::
System
.
IntPtr
cPtr
=
ESLPINVOKE
.
ESLevent_Event_get
(
swigCPtr
);
SWIGTYPE_p_esl_event_t
ret
=
(
cPtr
==
global
::
System
.
IntPtr
.
Zero
)
?
null
:
new
SWIGTYPE_p_esl_event_t
(
cPtr
,
false
);
return
ret
;
}
}
...
...
libs/esl/managed/Makefile
浏览文件 @
3347820c
...
...
@@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all
:
ESL.so
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-csharp
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-csharp
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(CXXFLAGS)
$(LOCAL_CFLAGS)
$(WRAP_GCC_WARNING_SILENCE)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/managed/SWIGTYPE_p_esl_event_t.cs
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using
System
;
using
System.Runtime.InteropServices
;
public
class
SWIGTYPE_p_esl_event_t
{
private
HandleRef
swigCPtr
;
private
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
swigCPtr
;
internal
SWIGTYPE_p_esl_event_t
(
IntPtr
cPtr
,
bool
futureUse
)
{
swigCPtr
=
new
HandleRef
(
this
,
cPtr
);
internal
SWIGTYPE_p_esl_event_t
(
global
::
System
.
IntPtr
cPtr
,
bool
futureUse
)
{
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
this
,
cPtr
);
}
protected
SWIGTYPE_p_esl_event_t
()
{
swigCPtr
=
new
HandleRef
(
null
,
IntPtr
.
Zero
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
);
}
internal
static
HandleRef
getCPtr
(
SWIGTYPE_p_esl_event_t
obj
)
{
return
(
obj
==
null
)
?
new
HandleRef
(
null
,
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
internal
static
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
getCPtr
(
SWIGTYPE_p_esl_event_t
obj
)
{
return
(
obj
==
null
)
?
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
}
}
libs/esl/managed/SWIGTYPE_p_esl_priority_t.cs
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
using
System
;
using
System.Runtime.InteropServices
;
public
class
SWIGTYPE_p_esl_priority_t
{
private
HandleRef
swigCPtr
;
private
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
swigCPtr
;
internal
SWIGTYPE_p_esl_priority_t
(
IntPtr
cPtr
,
bool
futureUse
)
{
swigCPtr
=
new
HandleRef
(
this
,
cPtr
);
internal
SWIGTYPE_p_esl_priority_t
(
global
::
System
.
IntPtr
cPtr
,
bool
futureUse
)
{
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
this
,
cPtr
);
}
protected
SWIGTYPE_p_esl_priority_t
()
{
swigCPtr
=
new
HandleRef
(
null
,
IntPtr
.
Zero
);
swigCPtr
=
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
);
}
internal
static
HandleRef
getCPtr
(
SWIGTYPE_p_esl_priority_t
obj
)
{
return
(
obj
==
null
)
?
new
HandleRef
(
null
,
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
internal
static
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
getCPtr
(
SWIGTYPE_p_esl_priority_t
obj
)
{
return
(
obj
==
null
)
?
new
global
::
System
.
Runtime
.
InteropServices
.
HandleRef
(
null
,
global
::
System
.
IntPtr
.
Zero
)
:
obj
.
swigCPtr
;
}
}
libs/esl/managed/esl_wrap.cpp
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
libs/esl/perl/ESL.pm
浏览文件 @
3347820c
# This file was automatically generated by SWIG (http://www.swig.org).
# Version
2.0.1
2
# Version
3.0.
2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
...
...
libs/esl/perl/Makefile.am
浏览文件 @
3347820c
...
...
@@ -21,7 +21,7 @@ endif
$(MAKE)
-C
..
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-shadow
-perl5
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-shadow
-perl5
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
perlxsi.c
:
$(PERL)
-MExtUtils
::Embed
-e
xsinit
--
-o
perlxsi.c
...
...
libs/esl/perl/esl_wrap.cpp
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -550,14 +550,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
swig_module_info
*
iter
=
start
;
do
{
if
(
iter
->
size
)
{
register
size_t
l
=
0
;
register
size_t
r
=
iter
->
size
-
1
;
size_t
l
=
0
;
size_t
r
=
iter
->
size
-
1
;
do
{
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
register
size_t
i
=
(
l
+
r
)
>>
1
;
size_t
i
=
(
l
+
r
)
>>
1
;
const
char
*
iname
=
iter
->
types
[
i
]
->
name
;
if
(
iname
)
{
register
int
compare
=
strcmp
(
name
,
iname
);
int
compare
=
strcmp
(
name
,
iname
);
if
(
compare
==
0
)
{
return
iter
->
types
[
i
];
}
else
if
(
compare
<
0
)
{
...
...
@@ -601,7 +601,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
of the str field (the human readable name) */
swig_module_info
*
iter
=
start
;
do
{
register
size_t
i
=
0
;
size_t
i
=
0
;
for
(;
i
<
iter
->
size
;
++
i
)
{
if
(
iter
->
types
[
i
]
->
str
&&
(
SWIG_TypeEquiv
(
iter
->
types
[
i
]
->
str
,
name
)))
return
iter
->
types
[
i
];
...
...
@@ -620,10 +620,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
SWIGRUNTIME
char
*
SWIG_PackData
(
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
static
const
char
hex
[
17
]
=
"0123456789abcdef"
;
register
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
unsigned
char
uu
=
*
u
;
unsigned
char
uu
=
*
u
;
*
(
c
++
)
=
hex
[(
uu
&
0xf0
)
>>
4
];
*
(
c
++
)
=
hex
[
uu
&
0xf
];
}
...
...
@@ -635,11 +635,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
*/
SWIGRUNTIME
const
char
*
SWIG_UnpackData
(
const
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
register
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
char
d
=
*
(
c
++
);
register
unsigned
char
uu
;
char
d
=
*
(
c
++
);
unsigned
char
uu
;
if
((
d
>=
'0'
)
&&
(
d
<=
'9'
))
uu
=
((
d
-
'0'
)
<<
4
);
else
if
((
d
>=
'a'
)
&&
(
d
<=
'f'
))
...
...
@@ -894,6 +894,7 @@ SWIG_Perl_ErrorType(int code) {
#define SWIG_ConvertPtr(obj, pp, type, flags) SWIG_Perl_ConvertPtr(SWIG_PERL_OBJECT_CALL obj, pp, type, flags)
#define SWIG_ConvertPtrAndOwn(obj, pp, type, flags,own) SWIG_Perl_ConvertPtrAndOwn(SWIG_PERL_OBJECT_CALL obj, pp, type, flags, own)
#define SWIG_NewPointerObj(p, type, flags) SWIG_Perl_NewPointerObj(SWIG_PERL_OBJECT_CALL p, type, flags)
#define swig_owntype int
/* for raw packed data */
#define SWIG_ConvertPacked(obj, p, s, type) SWIG_Perl_ConvertPacked(SWIG_PERL_OBJECT_CALL obj, p, s, type)
...
...
@@ -1162,7 +1163,11 @@ SWIG_Perl_ConvertPtrAndOwn(SWIG_MAYBE_PERL_OBJECT SV *sv, void **ptr, swig_type_
/* Now see if the types match */
char
*
_c
=
HvNAME
(
SvSTASH
(
SvRV
(
sv
)));
tc
=
SWIG_TypeProxyCheck
(
_c
,
_t
);
#ifdef SWIG_DIRECTORS
if
(
!
tc
&&
!
sv_derived_from
(
sv
,
SWIG_Perl_TypeProxyName
(
_t
)))
{
#else
if
(
!
tc
)
{
#endif
return
SWIG_ERROR
;
}
{
...
...
@@ -1520,7 +1525,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#define SWIG_name "ESLc::boot_ESL"
#define SWIG_prefix "ESLc::"
#define SWIGVERSION 0x0
2001
2
#define SWIGVERSION 0x0
3000
2
#define SWIG_VERSION SWIGVERSION
...
...
@@ -4129,7 +4134,7 @@ static swig_command_info swig_commands[] = {
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
* The generated swig_type_info structures are assigned staticly to an initial
* The generated swig_type_info structures are assigned static
al
ly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
...
...
libs/esl/php/ESL.php
浏览文件 @
3347820c
...
...
@@ -2,7 +2,7 @@
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -44,12 +44,6 @@ class ESLevent {
$this
->
_pData
[
$var
]
=
$value
;
}
function
__isset
(
$var
)
{
if
(
function_exists
(
'ESLevent_'
.
$var
.
'_set'
))
return
true
;
if
(
$var
===
'thisown'
)
return
true
;
return
array_key_exists
(
$var
,
$this
->
_pData
);
}
function
__get
(
$var
)
{
$func
=
'ESLevent_'
.
$var
.
'_get'
;
if
(
function_exists
(
$func
))
return
call_user_func
(
$func
,
$this
->
_cPtr
);
...
...
@@ -57,6 +51,12 @@ class ESLevent {
return
$this
->
_pData
[
$var
];
}
function
__isset
(
$var
)
{
if
(
function_exists
(
'ESLevent_'
.
$var
.
'_get'
))
return
true
;
if
(
$var
===
'thisown'
)
return
true
;
return
array_key_exists
(
$var
,
$this
->
_pData
);
}
function
__construct
(
$type_or_wrap_me_or_me
,
$subclass_name_or_free_me
=
null
)
{
if
(
is_resource
(
$type_or_wrap_me_or_me
)
&&
get_resource_type
(
$type_or_wrap_me_or_me
)
===
'_p_ESLevent'
)
{
$this
->
_cPtr
=
$type_or_wrap_me_or_me
;
...
...
@@ -134,16 +134,16 @@ class ESLconnection {
$this
->
_pData
[
$var
]
=
$value
;
}
function
__isset
(
$var
)
{
if
(
$var
===
'thisown'
)
return
true
;
return
array_key_exists
(
$var
,
$this
->
_pData
);
}
function
__get
(
$var
)
{
if
(
$var
===
'thisown'
)
return
swig_ESL_get_newobject
(
$this
->
_cPtr
);
return
$this
->
_pData
[
$var
];
}
function
__isset
(
$var
)
{
if
(
$var
===
'thisown'
)
return
true
;
return
array_key_exists
(
$var
,
$this
->
_pData
);
}
function
__construct
(
$host_or_socket
,
$port
=
null
,
$user_or_password
=
null
,
$password
=
null
)
{
if
(
is_resource
(
$host_or_socket
)
&&
get_resource_type
(
$host_or_socket
)
===
'_p_ESLconnection'
)
{
$this
->
_cPtr
=
$host_or_socket
;
...
...
libs/esl/php/Makefile.am
浏览文件 @
3347820c
...
...
@@ -3,7 +3,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-label -Wno-unused-function
all
:
ESL.so
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-php5
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-php5
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
sed
-e
's/ char \*type_name;/ const char \*type_name;/'
-i
esl_wrap.cpp
esl_wrap.o
:
esl_wrap.cpp
...
...
libs/esl/php/esl_wrap.cpp
浏览文件 @
3347820c
差异被折叠。
点击展开。
libs/esl/php/php_ESL.h
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
libs/esl/python/ESL.py
浏览文件 @
3347820c
# This file was automatically generated by SWIG (http://www.swig.org).
# Version
2.0.1
2
# Version
3.0.
2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
...
...
libs/esl/python/Makefile
浏览文件 @
3347820c
...
...
@@ -5,7 +5,7 @@ SITE_DIR=$(DESTDIR)/`python -c "from distutils.sysconfig import get_python_lib;
all
:
_ESL.so
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-classic
-python
-c
++
-DMULTIPLICITY
-threads
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-classic
-python
-c
++
-DMULTIPLICITY
-threads
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(CXXFLAGS)
$(LOCAL_CFLAGS)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/python/esl_wrap.cpp
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -562,14 +562,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
swig_module_info
*
iter
=
start
;
do
{
if
(
iter
->
size
)
{
register
size_t
l
=
0
;
register
size_t
r
=
iter
->
size
-
1
;
size_t
l
=
0
;
size_t
r
=
iter
->
size
-
1
;
do
{
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
register
size_t
i
=
(
l
+
r
)
>>
1
;
size_t
i
=
(
l
+
r
)
>>
1
;
const
char
*
iname
=
iter
->
types
[
i
]
->
name
;
if
(
iname
)
{
register
int
compare
=
strcmp
(
name
,
iname
);
int
compare
=
strcmp
(
name
,
iname
);
if
(
compare
==
0
)
{
return
iter
->
types
[
i
];
}
else
if
(
compare
<
0
)
{
...
...
@@ -613,7 +613,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
of the str field (the human readable name) */
swig_module_info
*
iter
=
start
;
do
{
register
size_t
i
=
0
;
size_t
i
=
0
;
for
(;
i
<
iter
->
size
;
++
i
)
{
if
(
iter
->
types
[
i
]
->
str
&&
(
SWIG_TypeEquiv
(
iter
->
types
[
i
]
->
str
,
name
)))
return
iter
->
types
[
i
];
...
...
@@ -632,10 +632,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
SWIGRUNTIME
char
*
SWIG_PackData
(
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
static
const
char
hex
[
17
]
=
"0123456789abcdef"
;
register
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
unsigned
char
uu
=
*
u
;
unsigned
char
uu
=
*
u
;
*
(
c
++
)
=
hex
[(
uu
&
0xf0
)
>>
4
];
*
(
c
++
)
=
hex
[
uu
&
0xf
];
}
...
...
@@ -647,11 +647,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
*/
SWIGRUNTIME
const
char
*
SWIG_UnpackData
(
const
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
register
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
char
d
=
*
(
c
++
);
register
unsigned
char
uu
;
char
d
=
*
(
c
++
);
unsigned
char
uu
;
if
((
d
>=
'0'
)
&&
(
d
<=
'9'
))
uu
=
((
d
-
'0'
)
<<
4
);
else
if
((
d
>=
'a'
)
&&
(
d
<=
'f'
))
...
...
@@ -1328,7 +1328,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
}
if
(
!
PyTuple_Check
(
args
))
{
if
(
min
<=
1
&&
max
>=
1
)
{
register
int
i
;
int
i
;
objs
[
0
]
=
args
;
for
(
i
=
1
;
i
<
max
;
++
i
)
{
objs
[
i
]
=
0
;
...
...
@@ -1338,7 +1338,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
PyErr_SetString
(
PyExc_SystemError
,
"UnpackTuple() argument list is not a tuple"
);
return
0
;
}
else
{
register
Py_ssize_t
l
=
PyTuple_GET_SIZE
(
args
);
Py_ssize_t
l
=
PyTuple_GET_SIZE
(
args
);
if
(
l
<
min
)
{
PyErr_Format
(
PyExc_TypeError
,
"%s expected %s%d arguments, got %d"
,
name
,
(
min
==
max
?
""
:
"at least "
),
(
int
)
min
,
(
int
)
l
);
...
...
@@ -1348,7 +1348,7 @@ SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssi
name
,
(
min
==
max
?
""
:
"at most "
),
(
int
)
max
,
(
int
)
l
);
return
0
;
}
else
{
register
int
i
;
int
i
;
for
(
i
=
0
;
i
<
l
;
++
i
)
{
objs
[
i
]
=
PyTuple_GET_ITEM
(
args
,
i
);
}
...
...
@@ -2463,7 +2463,7 @@ SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
}
}
else
{
#if PY_VERSION_HEX >= 0x03000000
inst
=
PyBaseObject_Type
.
tp_new
((
PyTypeObject
*
)
data
->
newargs
,
Py_None
,
Py_None
);
inst
=
((
PyTypeObject
*
)
data
->
newargs
)
->
tp_new
((
PyTypeObject
*
)
data
->
newargs
,
Py_None
,
Py_None
);
if
(
inst
)
{
PyObject_SetAttr
(
inst
,
SWIG_This
(),
swig_this
);
Py_TYPE
(
inst
)
->
tp_flags
&=
~
Py_TPFLAGS_VALID_VERSION_TAG
;
...
...
@@ -2966,7 +2966,7 @@ static swig_module_info swig_module = {swig_types, 5, 0, 0, 0, 0};
#endif
#define SWIG_name "_ESL"
#define SWIGVERSION 0x0
2001
2
#define SWIGVERSION 0x0
3000
2
#define SWIG_VERSION SWIGVERSION
...
...
@@ -3145,7 +3145,11 @@ SWIG_FromCharPtrAndSize(const char* carray, size_t size)
SWIG_InternalNewPointerObj
(
const_cast
<
char
*
>
(
carray
),
pchar_descriptor
,
0
)
:
SWIG_Py_Void
();
}
else
{
#if PY_VERSION_HEX >= 0x03000000
#if PY_VERSION_HEX >= 0x03010000
return
PyUnicode_DecodeUTF8
(
carray
,
static_cast
<
int
>
(
size
),
"surrogateescape"
);
#else
return
PyUnicode_FromStringAndSize
(
carray
,
static_cast
<
int
>
(
size
));
#endif
#else
return
PyString_FromStringAndSize
(
carray
,
static_cast
<
int
>
(
size
));
#endif
...
...
@@ -5452,7 +5456,7 @@ static swig_const_info swig_const_table[] = {
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
* The generated swig_type_info structures are assigned staticly to an initial
* The generated swig_type_info structures are assigned static
al
ly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
...
...
@@ -5782,7 +5786,7 @@ extern "C" {
var
=
var
->
next
;
}
if
(
res
==
NULL
&&
!
PyErr_Occurred
())
{
PyErr_
SetString
(
PyExc_NameError
,
"Unknown C global variable"
);
PyErr_
Format
(
PyExc_AttributeError
,
"Unknown C global variable '%s'"
,
n
);
}
return
res
;
}
...
...
@@ -5799,7 +5803,7 @@ extern "C" {
var
=
var
->
next
;
}
if
(
res
==
1
&&
!
PyErr_Occurred
())
{
PyErr_
SetString
(
PyExc_NameError
,
"Unknown C global variable"
);
PyErr_
Format
(
PyExc_AttributeError
,
"Unknown C global variable '%s'"
,
n
);
}
return
res
;
}
...
...
libs/esl/ruby/Makefile
浏览文件 @
3347820c
...
...
@@ -6,7 +6,7 @@ RUBY_GEM_DIR=$(shell $(RUBY) -e 'puts RbConfig::CONFIG["rubylibdir"]')
all
:
ESL.so
esl_wrap.cpp
:
swig
2
.0
-module
ESL
-ruby
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3
.0
-module
ESL
-ruby
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(CXXFLAGS)
$(LOCAL_CFLAGS)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/ruby/esl_wrap.cpp
浏览文件 @
3347820c
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version
2.0.1
2
* Version
3.0.
2
*
* This file is not intended to be easily readable and contains a number of
* coding conventions designed to improve portability and efficiency. Do not make
...
...
@@ -658,14 +658,14 @@ SWIG_MangledTypeQueryModule(swig_module_info *start,
swig_module_info
*
iter
=
start
;
do
{
if
(
iter
->
size
)
{
register
size_t
l
=
0
;
register
size_t
r
=
iter
->
size
-
1
;
size_t
l
=
0
;
size_t
r
=
iter
->
size
-
1
;
do
{
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
register
size_t
i
=
(
l
+
r
)
>>
1
;
size_t
i
=
(
l
+
r
)
>>
1
;
const
char
*
iname
=
iter
->
types
[
i
]
->
name
;
if
(
iname
)
{
register
int
compare
=
strcmp
(
name
,
iname
);
int
compare
=
strcmp
(
name
,
iname
);
if
(
compare
==
0
)
{
return
iter
->
types
[
i
];
}
else
if
(
compare
<
0
)
{
...
...
@@ -709,7 +709,7 @@ SWIG_TypeQueryModule(swig_module_info *start,
of the str field (the human readable name) */
swig_module_info
*
iter
=
start
;
do
{
register
size_t
i
=
0
;
size_t
i
=
0
;
for
(;
i
<
iter
->
size
;
++
i
)
{
if
(
iter
->
types
[
i
]
->
str
&&
(
SWIG_TypeEquiv
(
iter
->
types
[
i
]
->
str
,
name
)))
return
iter
->
types
[
i
];
...
...
@@ -728,10 +728,10 @@ SWIG_TypeQueryModule(swig_module_info *start,
SWIGRUNTIME
char
*
SWIG_PackData
(
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
static
const
char
hex
[
17
]
=
"0123456789abcdef"
;
register
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
const
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
unsigned
char
uu
=
*
u
;
unsigned
char
uu
=
*
u
;
*
(
c
++
)
=
hex
[(
uu
&
0xf0
)
>>
4
];
*
(
c
++
)
=
hex
[
uu
&
0xf
];
}
...
...
@@ -743,11 +743,11 @@ SWIG_PackData(char *c, void *ptr, size_t sz) {
*/
SWIGRUNTIME
const
char
*
SWIG_UnpackData
(
const
char
*
c
,
void
*
ptr
,
size_t
sz
)
{
register
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
register
const
unsigned
char
*
eu
=
u
+
sz
;
unsigned
char
*
u
=
(
unsigned
char
*
)
ptr
;
const
unsigned
char
*
eu
=
u
+
sz
;
for
(;
u
!=
eu
;
++
u
)
{
register
char
d
=
*
(
c
++
);
register
unsigned
char
uu
;
char
d
=
*
(
c
++
);
unsigned
char
uu
;
if
((
d
>=
'0'
)
&&
(
d
<=
'9'
))
uu
=
((
d
-
'0'
)
<<
4
);
else
if
((
d
>=
'a'
)
&&
(
d
<=
'f'
))
...
...
@@ -1503,14 +1503,13 @@ SWIG_Ruby_InitRuntime(void)
SWIGRUNTIME
void
SWIG_Ruby_define_class
(
swig_type_info
*
type
)
{
VALUE
klass
;
char
*
klass_name
=
(
char
*
)
malloc
(
4
+
strlen
(
type
->
name
)
+
1
);
sprintf
(
klass_name
,
"TYPE%s"
,
type
->
name
);
if
(
NIL_P
(
_cSWIG_Pointer
))
{
_cSWIG_Pointer
=
rb_define_class_under
(
_mSWIG
,
"Pointer"
,
rb_cObject
);
rb_undef_method
(
CLASS_OF
(
_cSWIG_Pointer
),
"new"
);
}
klass
=
rb_define_class_under
(
_mSWIG
,
klass_name
,
_cSWIG_Pointer
);
rb_define_class_under
(
_mSWIG
,
klass_name
,
_cSWIG_Pointer
);
free
((
void
*
)
klass_name
);
}
...
...
@@ -1823,7 +1822,7 @@ static VALUE mESL;
#define SWIG_RUBY_THREAD_END_BLOCK
#define SWIGVERSION 0x0
2001
2
#define SWIGVERSION 0x0
3000
2
#define SWIG_VERSION SWIGVERSION
...
...
@@ -1929,7 +1928,7 @@ SWIG_ruby_failed(void)
}
/*@SWIG:/usr/share/swig
2
.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
/*@SWIG:/usr/share/swig
3
.0/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN
VALUE
SWIG_AUX_NUM2LONG
(
VALUE
*
args
)
{
VALUE
obj
=
args
[
0
];
...
...
@@ -3890,7 +3889,7 @@ static swig_cast_info *swig_cast_initial[] = {
* array with the correct data and linking the correct swig_cast_info
* structures together.
*
* The generated swig_type_info structures are assigned staticly to an initial
* The generated swig_type_info structures are assigned static
al
ly to an initial
* array. We just loop through that array, and handle each type individually.
* First we lookup if this type has been already loaded, and if so, use the
* loaded structure instead of the generated one. Then we have to fill in the
...
...
libs/esl/tcl/Makefile
浏览文件 @
3347820c
...
...
@@ -5,7 +5,7 @@ WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all
:
ESL.so
esl_wrap.cpp
:
swig
-module
ESL
-tcl
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
swig
3.0
-module
ESL
-tcl
-c
++
-DMULTIPLICITY
-I
../src/include
-o
esl_wrap.cpp ../ESL.i
esl_wrap.o
:
esl_wrap.cpp
$(CXX)
$(CXX_CFLAGS)
$(CXXFLAGS)
$(LOCAL_CFLAGS)
$(WRAP_GCC_WARNING_SILENCE)
-c
esl_wrap.cpp
-o
esl_wrap.o
...
...
libs/esl/tcl/esl_wrap.cpp
浏览文件 @
3347820c
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论