cvs: /php3/functions php3_mcal.c php3_mcal.h

From: Date: Fri, 28 Jan 2000 15:04:18 +0000
Subject: cvs: /php3/functions php3_mcal.c php3_mcal.h
Groups: php.dev 
Request: Send a blank email to php-dev+get-14978@lists.php.net to get a copy of this message
chagenbu Fri Jan 28 07:04:18 2000 EDT Modified files: /php3/functions php3_mcal.c php3_mcal.h Log: Adding mcal_event_set_recur_none(). Index: php3/functions/php3_mcal.c diff -u php3/functions/php3_mcal.c:1.35 php3/functions/php3_mcal.c:1.36 --- php3/functions/php3_mcal.c:1.35 Fri Jan 21 19:13:38 2000 +++ php3/functions/php3_mcal.c Fri Jan 28 07:04:17 2000 @@ -113,6 +113,7 @@ PHP_FE(mcal_date_compare,NULL) PHP_FE(mcal_event_init,NULL) PHP_FE(mcal_next_recurrence,NULL) +PHP_FE(mcal_event_set_recur_none,NULL) PHP_FE(mcal_event_set_recur_daily,NULL) PHP_FE(mcal_event_set_recur_weekly,NULL) PHP_FE(mcal_event_set_recur_monthly_mday,NULL) @@ -1427,6 +1428,34 @@ add_property_long(return_value,"min",mydate.min); add_property_long(return_value,"sec",mydate.sec); } +} +/* }}} */ + +/* {{{ proto string mcal_event_set_recur_none(int stream_id) + Create a daily recurrence */ +void php3_mcal_event_set_recur_none(INTERNAL_FUNCTION_PARAMETERS) +{ + pval *streamind; + int ind, ind_type; + pils *mcal_le_struct; + int myargc; + myargc = ARG_COUNT(ht); + if (myargc != 1 || getParameters(ht, myargc, &streamind) == FAILURE) { + WRONG_PARAM_COUNT; + } + + convert_to_long(streamind); + + ind = streamind->value.lval; + + mcal_le_struct = (pils *)php3_list_find(ind, &ind_type); + + if (!mcal_le_struct ) { + php3_error(E_WARNING, "Unable to find stream pointer"); + RETURN_FALSE; + } + + calevent_recur_none(mcal_le_struct->event); } /* }}} */ Index: php3/functions/php3_mcal.h diff -u php3/functions/php3_mcal.h:1.15 php3/functions/php3_mcal.h:1.16 --- php3/functions/php3_mcal.h:1.15 Fri Jan 21 19:13:38 2000 +++ php3/functions/php3_mcal.h Fri Jan 28 07:04:18 2000 @@ -1,4 +1,4 @@ -/* $Id: php3_mcal.h,v 1.15 2000/01/22 03:13:38 musone Exp $ */ +/* $Id: php3_mcal.h,v 1.16 2000/01/28 15:04:18 chagenbu Exp $ */ #ifndef _INCLUDED_MCAL_H #define _INCLUDED_MCAL_H @@ -60,6 +60,7 @@ void php3_mcal_date_compare(INTERNAL_FUNCTION_PARAMETERS); void php3_mcal_event_init(INTERNAL_FUNCTION_PARAMETERS); void php3_mcal_next_recurrence(INTERNAL_FUNCTION_PARAMETERS); +void php3_mcal_event_set_recur_none(INTERNAL_FUNCTION_PARAMETERS); void php3_mcal_event_set_recur_daily(INTERNAL_FUNCTION_PARAMETERS); void php3_mcal_event_set_recur_weekly(INTERNAL_FUNCTION_PARAMETERS); void php3_mcal_event_set_recur_monthly_mday(INTERNAL_FUNCTION_PARAMETERS);

« previous php.dev (#14978) next »