cvs: embed /php-irssi TODO genobjdefs.php gensignals.php php-core.c
[email protected] ("Tal Peer") Wed, 12 Mar 2003 16:37:04 -0000
| Newsgroups | php.embed.cvs |
|---|---|
| Message-ID | <cvstal1047487024@cvsserver> |
tal Wed Mar 12 11:37:04 2003 EDT
Modified files:
/embed/php-irssi TODO genobjdefs.php gensignals.php php-core.c
Log:
- Added support for multiple files loading via /php load
- Some other minor things
Index: embed/php-irssi/TODO
diff -u embed/php-irssi/TODO:1.6 embed/php-irssi/TODO:1.7
--- embed/php-irssi/TODO:1.6 Sat Mar 1 13:23:48 2003
+++ embed/php-irssi/TODO Wed Mar 12 11:37:04 2003
@@ -1,6 +1,6 @@
TODO:
====================================
-$Id: TODO,v 1.6 2003/03/01 18:23:48 tal Exp $
+$Id: TODO,v 1.7 2003/03/12 16:37:04 tal Exp $
o Improve genobjdefs.php so that it can find a structure definition in a
header file with more junk (when compared with the *-rec.h headers).
@@ -44,8 +44,6 @@
user does a /save
o Expose even more stuff!
-
-o Add multiple arguments support for /php load
o Line buffer PHP output before triggering the output or error signals, so
that the output doesn't look like crapola.
Index: embed/php-irssi/genobjdefs.php
diff -u embed/php-irssi/genobjdefs.php:1.9 embed/php-irssi/genobjdefs.php:1.10
--- embed/php-irssi/genobjdefs.php:1.9 Tue Mar 11 09:15:25 2003
+++ embed/php-irssi/genobjdefs.php Wed Mar 12 11:37:04 2003
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Author: Wez Furlong <[email protected]> |
+----------------------------------------------------------------------+
- $Id: genobjdefs.php,v 1.9 2003/03/11 14:15:25 tal Exp $
+ $Id: genobjdefs.php,v 1.10 2003/03/12 16:37:04 tal Exp $
*/
/* We build three sets of tables:
@@ -112,7 +112,7 @@
}
/* Emit code */
- printf("/* Automatically created from %s at %s */\n\n", basename($_SERVER[PHP_SELF]), date("Y-m-d H:i:s", time()));
+ printf("/* Automatically generated from %s at %s */\n\n", basename($_SERVER[PHP_SELF]), date("Y-m-d H:i:s", time()));
printf("#ifndef PHP_IRSSI_PROTOS_ONLY\n");
printf("struct php_irssi_class_props php_irssi_%s_props[] = {\n", $iclass);
Index: embed/php-irssi/gensignals.php
diff -u embed/php-irssi/gensignals.php:1.6 embed/php-irssi/gensignals.php:1.7
--- embed/php-irssi/gensignals.php:1.6 Fri Mar 7 05:04:09 2003
+++ embed/php-irssi/gensignals.php Wed Mar 12 11:37:04 2003
@@ -15,13 +15,15 @@
+----------------------------------------------------------------------+
| Author: Wez Furlong <[email protected]> |
+----------------------------------------------------------------------+
- $Id: gensignals.php,v 1.6 2003/03/07 10:04:09 wez Exp $
+ $Id: gensignals.php,v 1.7 2003/03/12 16:37:04 tal Exp $
*/
/* Generate signal information from the signals.txt file in the docs
* dir */
include "typemap.php";
+
+printf("/* Automatically generated from %s at %s */\n\n", basename($_SERVER[PHP_SELF]), date("Y-m-d H:i:s", time()));
echo "static struct php_irssi_signal_args php_irssi_sig_args_table[] = {\n";
Index: embed/php-irssi/php-core.c
diff -u embed/php-irssi/php-core.c:1.14 embed/php-irssi/php-core.c:1.15
--- embed/php-irssi/php-core.c:1.14 Tue Mar 11 09:15:25 2003
+++ embed/php-irssi/php-core.c Wed Mar 12 11:37:04 2003
@@ -15,7 +15,7 @@
| Authors: Wez Furlong <[email protected]> |
| Tal Peer <[email protected]> |
+----------------------------------------------------------------------+
- $Id: php-core.c,v 1.14 2003/03/11 14:15:25 tal Exp $
+ $Id: php-core.c,v 1.15 2003/03/12 16:37:04 tal Exp $
*/
#define MODULE_NAME "php/core"
#include "common.h"
@@ -201,15 +201,15 @@
/* Handler for "/php version" command */
static void cmd_php_version(const char *data)
-{
- printtext_window(active_win, MSGLEVEL_CLIENTCRAP, "PHP Module For Irssi v%s", PHP_IRSSI_VERSION);
+{
+ printtext_window(active_win, MSGLEVEL_CLIENTCRAP, "PHP Module For Irssi v%s (built: %s %s)", PHP_IRSSI_VERSION, __DATE__, __TIME__);
printtext_window(active_win, MSGLEVEL_CLIENTCRAP, "PHP v%s", PHP_VERSION);
}
/* Handler for "/php load" command */
static void cmd_php_load(const char *data)
{
- switch (php_eval_string("php/irssi:load", "include('%s');", data)) {
+ switch (php_eval_string("php/irssi:load", "foreach(split(' ', '%s') as $file) { include($file);}", data)) {
case EVAL_RET_OK:
break;
case EVAL_RET_ERROR: