File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 66#include < iostream>
77using 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}
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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)
7171fi
You can’t perform that action at this time.
0 commit comments