diff options
author | Damon Chaplin <damon@ximian.com> | 2001-07-31 05:31:43 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-07-31 05:31:43 +0800 |
commit | ddbf92b2eca29f97d82f4aa6eb213ed59f1e8217 (patch) | |
tree | edabb9d3b3bbcc6619c18eadda2441bade1eadae /libical/scripts/mkderivedproperties.pl | |
parent | 1b595a7e2f7a49c46784868fc9c23f0ffe11b5ac (diff) | |
download | gsoc2013-evolution-ddbf92b2eca29f97d82f4aa6eb213ed59f1e8217.tar.gz gsoc2013-evolution-ddbf92b2eca29f97d82f4aa6eb213ed59f1e8217.tar.zst gsoc2013-evolution-ddbf92b2eca29f97d82f4aa6eb213ed59f1e8217.zip |
copy the TZID just in case the property we got it from gets modified.
2001-07-30 Damon Chaplin <damon@ximian.com>
* src/libical/icalcomponent.c (icalcomponent_merge_vtimezone): copy
the TZID just in case the property we got it from gets modified.
(icalcomponent_rename_tzids_callback): break out of the loop if we
have renamed the TZID parameter. Otherwise our tzid variable would be
invalid.
* scripts/mkderivedproperties.pl (fudge_data): changed this so we can
set EXDATEs that are DATE values, by checking the is_date field.
I'm not entirely sure this is the way it should be done.
If it is, I'll also do this for other things like DTSTART/DTEND.
* src/libical/icalrecur.c (icalrecurrencetype_as_string): handle
UNTIL as a DATE value as well as a DATE-TIME.
* src/libical/icalcomponent.c (icalcomponent_compare_vtimezones):
fixed stupid error, getting TZID property from wrong VTIMEZONE.
This would only have affected iTIP stuff, with VTIMEZONEs that don't
use the '/' prefix (i.e. from Outlook). It probably just meant we
kept multiple copies of the same VTIMEZONE.
* src/libical/icaltimezone.c: removed some debugging messages.
svn path=/trunk/; revision=11491
Diffstat (limited to 'libical/scripts/mkderivedproperties.pl')
-rwxr-xr-x | libical/scripts/mkderivedproperties.pl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libical/scripts/mkderivedproperties.pl b/libical/scripts/mkderivedproperties.pl index 4e011e112e..965817eb30 100755 --- a/libical/scripts/mkderivedproperties.pl +++ b/libical/scripts/mkderivedproperties.pl @@ -179,6 +179,24 @@ icalproperty* icalproperty_vanew_${lc}($type v, ...){ va_end(args); return (icalproperty*)impl; } +EOM + + # Allow EXDATEs to take DATE values easily. + if ($lc eq "exdate") { + print<<EOM; +void icalproperty_set_${lc}(icalproperty* prop, $type v){ + icalvalue *value; + $set_pointer_check + icalerror_check_arg_rv( (prop!=0),"prop"); + if (v.is_date) + value = icalvalue_new_date(v); + else + value = icalvalue_new_datetime(v); + icalproperty_set_value(prop,value); +} +EOM + } else { + print<<EOM; void icalproperty_set_${lc}(icalproperty* prop, $type v){ icalvalue *value; $set_pointer_check @@ -186,6 +204,10 @@ void icalproperty_set_${lc}(icalproperty* prop, $type v){ value = icalvalue_new_${lcvalue}(v); icalproperty_set_value(prop,value); } +EOM + } + + print<<EOM; $type icalproperty_get_${lc}(icalproperty* prop){ icalvalue *value; icalerror_check_arg( (prop!=0),"prop"); |