CVS update: php3/functions
| From: | fmk | Date: | Fri, 12 Feb 1999 09:13:08 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-4064@lists.php.net to get a copy of this message | ||
Date: Friday February 12, 1999 @ 4:13
Author: fmk
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv13861
Modified Files:
microtime.c microtime.h
Log Message:
Making GetTimeOfDay() callable from other modules
Index: php3/functions/microtime.c
diff -c php3/functions/microtime.c:1.28 php3/functions/microtime.c:1.29
*** php3/functions/microtime.c:1.28 Wed Jan 20 16:15:49 1999
--- php3/functions/microtime.c Fri Feb 12 04:13:07 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: microtime.c,v 1.28 1999/01/20 21:15:49 sas Exp $ */
#include "php.h"
#include <stdlib.h>
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: microtime.c,v 1.29 1999/02/12 09:13:07 fmk Exp $ */
#include "php.h"
#include <stdlib.h>
***************
*** 91,96 ****
--- 91,100 ----
Returns the current time as array */
void php3_gettimeofday(INTERNAL_FUNCTION_PARAMETERS)
{
+ _php3_gettimeofday(return_value);
+ }
+
+ void _php3_gettimeofday(pval *return_value) {
#if HAVE_GETTIMEOFDAY
struct timeval tp;
struct timezone tz;
Index: php3/functions/microtime.h
diff -c php3/functions/microtime.h:1.7 php3/functions/microtime.h:1.8
*** php3/functions/microtime.h:1.7 Fri Jan 1 12:59:13 1999
--- php3/functions/microtime.h Fri Feb 12 04:13:08 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: microtime.h,v 1.7 1999/01/01 17:59:13 zeev Exp $ */
#ifndef _MICROTIME_H
#define _MICROTIME_H
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: microtime.h,v 1.8 1999/02/12 09:13:08 fmk Exp $ */
#ifndef _MICROTIME_H
#define _MICROTIME_H
***************
*** 35,39 ****
--- 35,41 ----
extern void php3_microtime(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_getrusage(INTERNAL_FUNCTION_PARAMETERS);
extern void php3_gettimeofday(INTERNAL_FUNCTION_PARAMETERS);
+
+ PHPAPI void _php3_gettimeofday(pval *return_value);
#endif /* _MICROTIME_H */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net