Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
a5dfc5d4
提交
a5dfc5d4
authored
6月 16, 2015
作者:
Brian West
提交者:
Michael Jerris
6月 17, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix perl swig patching to work with latest swig from debian jessie
上级
91bce5f8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
51 行增加
和
27 行删除
+51
-27
hack.diff
src/mod/languages/mod_perl/hack.diff
+17
-18
mod_perl_wrap.cpp
src/mod/languages/mod_perl/mod_perl_wrap.cpp
+34
-9
没有找到文件。
src/mod/languages/mod_perl/hack.diff
浏览文件 @
a5dfc5d4
--- mod_perl_wrap.cpp
2008-07-16 16:55:53.000000000 -04
00
+++
old.cpp 2008-07-16 16:55:38.000000000 -04
00
@@ -8
852,13 +8852
,18 @@
--- mod_perl_wrap.cpp
.old 2015-06-16 12:01:31.832000000 -05
00
+++
mod_perl_wrap.cpp 2015-06-16 12:01:38.996000000 -05
00
@@ -8
710,13 +8710
,18 @@
{
PERL::Session *result = 0 ;
int argvi = 0;
+ SV *foo;
PERL::Session *result = 0 ;
+ SV *foo;
dXSARGS;
-
+
if ((items < 0) || (items > 0)) {
SWIG_croak("Usage: new_Session();");
}
- result = (PERL::Session *)new PERL::Session();
- ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
+
result = (PERL::Session *)new PERL::Session();
+
result = (PERL::Session *)new PERL::Session();
+ result->setPERL(my_perl);
+ foo = sv_newmortal();
+ SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
+ result->setME(foo);
+ result->setME(foo);
+ ST(argvi) = foo; argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
@@ -8877,6 +8882,7 @@
void *argp2 = 0 ;
@@ -8735,6 +8740,7 @@
int res2 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
+ SV *foo;
dXSARGS;
if ((items < 2) || (items > 2)) {
@@ -8
893,7 +8899
,16 @@
@@ -8
751,7 +8757
,16 @@
}
arg2 = reinterpret_cast< CoreSession * >(argp2);
result = (PERL::Session *)new PERL::Session(arg1,arg2);
...
...
@@ -48,15 +47,15 @@
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
XSRETURN(argvi);
@@ -8913,6 +8928,7 @@
char *buf1 = 0 ;
@@ -8771,6 +8786,7 @@
int alloc1 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
+ SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
@@ -8
923,9 +8939
,19 @@
@@ -8
781,9 +8797
,19 @@
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
...
...
@@ -78,15 +77,15 @@
XSRETURN(argvi);
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
@@ -8941,6 +8967,7 @@
void *argp1 = 0 ;
@@ -8799,6 +8825,7 @@
int res1 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
+ SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
@@ -8
952,8 +8979
,18 @@
@@ -8
810,8 +8837
,18 @@
}
arg1 = reinterpret_cast< switch_core_session_t * >(argp1);
result = (PERL::Session *)new PERL::Session(arg1);
...
...
src/mod/languages/mod_perl/mod_perl_wrap.cpp
浏览文件 @
a5dfc5d4
...
...
@@ -8576,7 +8576,6 @@ XS(_wrap_bridge) {
void *argp2 = 0 ;
int res2 = 0 ;
int argvi = 0;
SV *foo;
dXSARGS;
if ((items < 2) || (items > 2)) {
...
...
@@ -8711,13 +8710,18 @@ XS(_wrap_new_Session__SWIG_0) {
{
int argvi = 0;
PERL::Session *result = 0 ;
SV *foo;
dXSARGS;
if ((items < 0) || (items > 0)) {
SWIG_croak("Usage: new_Session();");
}
result = (PERL::Session *)new PERL::Session();
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
result = (PERL::Session *)new PERL::Session();
result->setPERL(my_perl);
foo = sv_newmortal();
SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
result->setME(foo);
ST(argvi) = foo; argvi++ ;
XSRETURN(argvi);
fail:
SWIG_croak_null();
...
...
@@ -8736,6 +8740,7 @@ XS(_wrap_new_Session__SWIG_1) {
int res2 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
SV *foo;
dXSARGS;
if ((items < 2) || (items > 2)) {
...
...
@@ -8781,6 +8786,7 @@ XS(_wrap_new_Session__SWIG_2) {
int alloc1 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
...
...
@@ -8791,9 +8797,19 @@ XS(_wrap_new_Session__SWIG_2) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Session" "', argument " "1"" of type '" "char *""'");
}
arg1 = reinterpret_cast< char * >(buf1);
result = (PERL::Session *)new PERL::Session(arg1);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
result = (PERL::Session *)new PERL::Session(arg1);
if (result->allocated) {
result->setPERL(my_perl);
foo = get_sv(result->suuid, TRUE);
SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
result->setME(foo);
} else {
foo = sv_newmortal();
SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
}
ST(argvi) = foo; argvi++ ;
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
XSRETURN(argvi);
fail:
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
...
...
@@ -8809,6 +8825,7 @@ XS(_wrap_new_Session__SWIG_3) {
int res1 = 0 ;
int argvi = 0;
PERL::Session *result = 0 ;
SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
...
...
@@ -8820,8 +8837,18 @@ XS(_wrap_new_Session__SWIG_3) {
}
arg1 = reinterpret_cast< switch_core_session_t * >(argp1);
result = (PERL::Session *)new PERL::Session(arg1);
ST(argvi) = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW); argvi++ ;
if (result->allocated) {
result->setPERL(my_perl);
foo = get_sv(result->suuid, TRUE);
SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
result->setME(foo);
} else {
foo = sv_newmortal();
SWIG_MakePtr(foo, SWIG_as_voidptr(result), SWIGTYPE_p_PERL__Session, SWIG_OWNER | SWIG_SHADOW);
}
ST(argvi) = foo; argvi++ ;
XSRETURN(argvi);
fail:
...
...
@@ -8938,7 +8965,6 @@ XS(_wrap_delete_Session) {
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
...
...
@@ -8966,7 +8992,6 @@ XS(_wrap_Session_destroy) {
void *argp1 = 0 ;
int res1 = 0 ;
int argvi = 0;
SV *foo;
dXSARGS;
if ((items < 1) || (items > 1)) {
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论