Date: 01/28/00
- Next message: Andi Gutmans: "Re: [PHP-DEV] C switch() statement"
- Previous message: peter <email protected>: "[PHP-DEV] PHP 4.0 Bug #3337: imap_mail_compose() locks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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);
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andi Gutmans: "Re: [PHP-DEV] C switch() statement"
- Previous message: peter <email protected>: "[PHP-DEV] PHP 4.0 Bug #3337: imap_mail_compose() locks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

