Skip to content

Commit 4f1996a

Browse files
committed
update
1 parent 82fd158 commit 4f1996a

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

CListNode.cpp renamed to CListNode.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
#include <iostream>
77
using namespace std;
88

9-
static CListNode* CListNode::create()
9+
CListNode* CListNode::create()
1010
{
1111
return nullptr;
1212
}
1313

14-
int CListNode::add_head(zval *value)
14+
int CListNode::add_head(int value)
1515
{
1616
return 0;
1717
}
1818

19-
int CListNode::add_tail(zval *value)
19+
int CListNode::add_tail(int value)
2020
{
2121
return 0;
2222
}
@@ -27,7 +27,7 @@ int CListNode::del_index(int index)
2727
return 0;
2828
}
2929

30-
int CListNode::fetch_index(int index,zval **retval)
30+
int CListNode::fetch_index(int index, int& value)
3131
{
3232
return 0;
3333
}

ListNode.c renamed to ListNode.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
#ifdef HAVE_CONFIG_H
2222
#include "config.h"
2323
#endif
24-
extern "C" {
24+
2525
#include "php.h"
2626
#include "php_ini.h"
2727
#include "ext/standard/info.h"
2828
#include "php_ListNode.h"
29-
};
29+
3030

3131
#include "CListNode.h"
3232

config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if test "$PHP_LISTNODE" != "no"; then
2323
PHP_REQUIRE_CXX()
2424

2525
dnl 添加C++标准库文件
26-
PHP_ADD_LIBRARY(stdc++,"","")
26+
PHP_ADD_LIBRARY(stdc++)
2727

2828

2929
dnl Write more examples of tests here...
@@ -67,5 +67,5 @@ if test "$PHP_LISTNODE" != "no"; then
6767
dnl
6868
dnl PHP_SUBST(LISTNODE_SHARED_LIBADD)
6969

70-
PHP_NEW_EXTENSION(ListNode, ListNode.c CListNode.h CListNode.cpp,$ext_shared)
70+
PHP_NEW_EXTENSION(ListNode, ListNode.cc CListNode.cc,$ext_shared)
7171
fi

0 commit comments

Comments
 (0)