rem: if( !(kind == ICAL_DATETIMEDATE_VALUE || kind == ICAL_DATE_VALUE || kind == ICAL_DATETIME_VALUE || kind == ICAL_TIME_VALUE))
add: if( !(kind == ICAL_DATE_VALUE || kind == ICAL_DATETIME_VALUE ))
context: const char* icalvalue_datetime_as_ical_string(icalvalue* value) {        struct icaltimetype data;    char* str;    icalvalue_kind kind = icalvalue_isa(value);        icalerror_check_arg_rz( (value!=0),"value");    if( !(kind == ICAL_DATETIMEDATE_VALUE ||	  kind == ICAL_DATE_VALUE ||	  kind == ICAL_DATETIME_VALUE ||	  kind == ICAL_TIME_VALUE))	{	    icalerror_set_errno(ICAL_BADARG_ERROR);	    return 0;	}    data = icalvalue_get_datetime(value);    str = (char*)icalmemory_tmp_buffer(20);     str[0] = 0;    print_datetime_to_string(str,&data);       return str;}