cvs commit
| From: | thies | Date: | Thu, 08 Jul 1999 09:25:56 +0000 |
| Subject: | cvs commit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8192@lists.php.net to get a copy of this message | ||
From: thies
Date: Thu Jul 8 09:25:56 1999
Modified files:
php3/php.h
Log message:
added RETURN_RESOURCE -> aliased to RETURN_LONG and RETVAL_RESOURCE -> RETURN_LONG
(don't hit me, i still try to maintain code that runs with php3 and php4!)
Index: php3/php.h
diff -u php3/php.h:1.60 php3/php.h:1.61
--- php3/php.h:1.60 Sat Jul 3 05:49:23 1999
+++ php3/php.h Thu Jul 8 09:25:55 1999
@@ -28,7 +28,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php.h,v 1.60 1999/07/03 09:49:23 sas Exp $ */
+/* $Id: php.h,v 1.61 1999/07/08 13:25:55 thies Exp $ */
#ifndef _PHP_H
#define _PHP_H
@@ -556,6 +556,8 @@
#include "variables.h"
#include "constants.h"
+#define RETVAL_RESOURCE(l) { return_value->type = IS_LONG; \
+ return_value->value.lval = l; }
#define RETVAL_LONG(l) { return_value->type = IS_LONG; \
return_value->value.lval = l; }
#define RETVAL_DOUBLE(d) { return_value->type = IS_DOUBLE; \
@@ -572,6 +574,9 @@
#define RETVAL_FALSE {var_reset(return_value);}
#define RETVAL_TRUE RETVAL_LONG(1L)
+#define RETURN_RESOURCE(l) { return_value->type = IS_LONG; \
+ return_value->value.lval = l; \
+ return; }
#define RETURN_LONG(l) { return_value->type = IS_LONG; \
return_value->value.lval = l; \
return; }