These pages are written by only Japanese.
| 予定 | TODO | LINK |
|---|---|---|
|
|
|
|
Namazu for hns による簡易全文検索です。 詳細は 詳細指定/ヘルプをご参照下さい。 |
|||||||||||||||||||||||||||||||||||||||||||||||
zend_function_entry swfed_functions[] = {
PHP_ME(swfed, __construct, NULL, 0)
PHP_ME(swfed, input, NULL, 0)
PHP_ME(swfed, output, NULL, 0)
<略>
zend_module_entry swfed_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"swfed",
swfed_functions,
INIT_CLASS_ENTRY だけでいいのに... ;ω;
*/
PHP_MINIT_FUNCTION(swfed)
{
/* If you have INI entries, uncomment these lines
ZEND_INIT_MODULE_GLOBALS(swfed, php_swfed_init_globals, NULL);
REGISTER_INI_ENTRIES();
*/
zend_class_entry ce;
INIT_CLASS_ENTRY(ce, "SWFEditor", swfed_functions);
zend_module_entry swfed_module_entry = {
#if ZEND_MODULE_API_NO >= 20010901
STANDARD_MODULE_HEADER,
#endif
"swfed",
NULL, // no global functions
上記のように修正して 0.20 を release しました。
% mkdir phpopengl % cd phpopengl % cvs -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl login % cvs -z3 -d:pserver:anonymous@phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl co -P . % cd php_opengl % (cd opengl ; phpize ; ./configure ; make ) # ☆ これで失敗する ☆ % (cd gult ; phpize ; ./configure ; make )
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:5779: error: 'GL_COLOR_TABLE_GREEN_SIZE_EXT' undeclared (first use in this function)どうやら、これらの ..._EXT は ..._SGI と同じ値っぽい。 #define ..._EXT ..._SGI を片っ端からかけて解決。
/home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:56: error: 'BYREF_FORCE' undeclared here (not in a function) /home/yoya/cvs/phpopengl/php_opengl/opengl/php_opengl.c:59: error: 'BYREF_NONE' undeclared here (not in a function)BYREF_... は PHP4 extension の引数定義に使うもので、 PHP5 では ZEND_BEGIN_ARG_INFO を使うらしい。
% grep BYREF_ ~/src/php/php-4.0.0/*/*.h /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_NONE 0 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE 1 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_ALLOW 2 /home/yoya/src/php/php-4.0.0/Zend/zend.h:#define BYREF_FORCE_REST 3とりあえず、全部 NULL に define する。
/* {{{ arginfo */
#ifdef ZEND_ENGINE_2
#define force_ref_first_arg NULL
#define force_ref_second_arg NULL
#define force_ref_third_arg NULL
#define force_ref_fourth_arg NULL
#define force_ref_ninth_arg NULL
#else
(BYREF_ 何とかしてる場所)
#endif
/* }}} */
% mkdir phpopengl % cd phpopengl % git init (オリジナルの php_opengl samples をコピーしてくる) % git add php_opengl samples % git commit -m 'copy from phpopengl.cvs.sourceforge.net:/cvsroot/phpopengl' % git remote add origin git@github.com:yoya/phpopengl.git % git push origin master改造分を反映(commit & push)
% emacs php_opengl.h (編集) % emacs php_opengl.c (編集) % git commit -a (vi 画面が開くので上の方にコメントを追記) % git push origin master