2003-10-09 Jeffrey Stedfast <fejj@ximian.com>
* src/libical/Makefile.am: Fixed INCLUDES and don't autogenerate
ical.h, no need to. Plus it caused problems anyways.
* src/libical/*.[c,h]: Fixed the #includes
* src/libicalss/Makefile.am: Fixed INCLUDES and don't autogenerate
icalss.h, no need to. Plus it caused problems anyways.
* src/libicalss/*.[c,h]: Fixed the #includes
* tests/*.c: #include <libical/ical.h> rather
than "ical.h"
* tests/Makefile.am: Fixed INCLUDES
* examples/*.c: #include <libical/ical.h> rather
than "ical.h"
* examples/Makefile.am: Fixed INCLUDES
* src/libicalvcal/icalvcal.h: #include <libical/ical.h> which is
no longer autogenerated.
* src/libicalvcal/icalvcal.c (icalvcal_convert_with_defaults): Use
the proper macro names from config.h
svn path=/trunk/; revision=22844
2003-09-23 Hans Petter Jansson <hpj@ximian.com>
* configure.in: Remove flex check. Set ICAL_ERRORS_ARE_FATAL to 0.
* src/libicalss/icalgauge.c (icalgauge_new_from_sql): Don't use
globals struct. Remove calls to sslex_init(), _extra(),
ss_scan_string(). Use a global pointer icalss_yy_gauge to hold context.
Call ssparse() with no arguments.
* src/libicalss/icalsslexer.l: Remove options reentrant and
bison-bridge. Rename variables, change function invocations to comply
with flex 2.5.4.
(icalss_input): Add function to read input.
* src/libicalss/icalssyacc.y (yyextra): Remove.
(select_list)
(from_list)
(where_clause)
(where_list): yyextra -> icalss_yy_gauge
* src/libicalss/icalsslexer.c:
* src/libicalss/icalssyacc.c:
* src/libicalss/icalssyacc.h: Add generated files back to repository.
They don't belong there, but that's not my problem.
svn path=/trunk/; revision=22683
2003-05-07 Rodrigo Moya <rodrigo@ximian.com>
Fixes crash in #41631
* src/libicalvcal/icalvcal.c (icalvcal_traverse_objects): changed to
return an error code and to return immediately if one of the recurrent
calls return an error.
(icalvcal_convert_with_defaults): if icalvcal_traverse_objects return
an error, return NULL.
svn path=/trunk/; revision=21122
2003-03-17 Hans Petter Jansson <hpj@ximian.com>
Part of fix for #34095
* scripts/mkderivedparameters.pl: Generate code to free old
string value when a new one is set.
* src/libical/icalperiod.c (icalperiodtype_as_ical_string):
Callers expect a temporary string, and thus won't free it, so
allocate returned memory from the temporary ring.
svn path=/trunk/; revision=20330
libical-static.la depend on libical-evolution.la so they they are
not built in parallel by a parallel make, since that would break
libtool.
svn path=/trunk/; revision=19869
* configure.in: AC_SUBST privlibdir, privincludedir, privdatadir
(sent from ../configure). Add descriptions to AC_DEFINEs. Don't
bother checking for python since we don't build it anyway.
* acconfig.h: Gone
* src/libical/Makefile.am: install library in privlibdir and
headers under privincludedir. Look for zone files in privdatadir
* src/libicalvcal/Makefile.am: install in privlibdir
* zoneinfo/Makefile.am (zoneinfodatadir): define in terms of
privdatadir
(install-data-local): update
svn path=/trunk/; revision=19823
2002-12-19 Joe Shaw <joe@ximian.com>
* configure.in: Add AC_CONFIG_AUX_DIR(..) so it looks for ylwrap in
the toplevel evolution directory and not our directory. Fixes the
build for automake >= 1.5
svn path=/trunk/; revision=19169
2002-11-26 Rodrigo Moya <rodrigo@ximian.com>
* src/libical/icalyacc.y: added missing ';' for new bison to not
complain.
svn path=/trunk/; revision=18938
* src/libical/icaltimezone.c
(icaltimezone_get_vtimezone_properties): Free the location if it's
set. Otherwise one copy of the location of each built-in timezone
we use gets leaked.
svn path=/trunk/; revision=18447
2002-10-15 Rodrigo Moya <rodrigo@ximian.com>
Fixes#25153
* scripts/mkderivedvalues.pl: changed the _get functions for
string values to return a NULL if arguments are wrong
* src/libical/icalderivedvalue.c.in (icalvalue_get_x): return from
function if pointer checking fails.
svn path=/trunk/; revision=18378
2002-02-06 Damon Chaplin <damon@ximian.com>
* src/libicalvcal/icalvcal.c: major changes to support RRULE/EXRULE,
VALARMS and several other properties.
* src/libicalvcal/icalvcal.h (icalvcal_convert_with_defaults): new
function to pass defaults for a few values into the importer. These
are used when the vCalendar file doesn't provide the property but it
is required in iCalendar.
* src/libicalvcal/vcc.y: support multi-valued properties, by appending
new ones and separating by ';'. This was pinched from our changes to
evolution/libversit/vcc.y.
* src/libicalvcal/Makefile.am: renamed library to libicalvcal-evolution
Don't install the headers.
* design-data/parameters.csv: added new error for error's parsing
vCalendar properties.
svn path=/trunk/; revision=15582
2001-12-18 Damon Chaplin <damon@ximian.com>
* src/libical/icalyacc.y: removed unused 'trigger:' production.
* configure.in (AC_OUTPUT): patch from Jeremy Katz <katzj@redhat.com>
to remove src/libicalss/Makefile and src/libicalvcal/Makefile, as we
don't ship those directories now.
svn path=/trunk/; revision=15152
2001-12-10 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_display_name): if all
we have is the TZID, see if it is one of our TZIDs and if so get the
city name out of it. Fixes bug #16571.
svn path=/trunk/; revision=14957
2001-11-13 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_tzid): initialize the
builtin timezones, to ensure that the TZID of the UTC zone is set.
Hopefully fixes bugs #14941 & #14622.
svn path=/trunk/; revision=14689
2001-10-31 Damon Chaplin <damon@ximian.com>
* src/libical/icalproperty.c (get_next_line_start): use MAX_LINE_LEN
rather than magic numbers all over the place.
svn path=/trunk/; revision=14536
2001-10-31 Damon Chaplin <damon@ximian.com>
* src/libical/icalproperty.c (icalproperty_as_ical_string): had to
redo the folding code since Outlook 2000 doesn't like parameter values
like 'TENTATIVE' cut in half. Now it tries to split after a ';', ':'
or space.
svn path=/trunk/; revision=14529
2001-10-30 Damon Chaplin <damon@ximian.com>
* src/libical/icalproperty.c (fold_property_line): forgot to account
for the spaces added, so it could have been writing over the end of
the allocated memory. Added check for buffer overflow as well.
This could well have been the problem causing bug #14067.
svn path=/trunk/; revision=14517
2001-10-30 Damon Chaplin <damon@ximian.com>
* zoneinfo/*.ics: Regenerated all VTIMEZONEs, to be compatable with
Outlook Web Access. They now only include 2 RRULEs components or
1 simple DTSTART component.
svn path=/trunk/; revision=14454
2001-10-29 Damon Chaplin <damon@ximian.com>
* src/libical/Makefile.am: renamed the library to libical-evolution.la,
install ical.h into $includedir/evolution, with the other Evo headers.
* src/libical/icalproperty.c (fold_property_line): new function to
fold property lines around every 70 characters. Outlook Web Access
doesn't seem to like some properties folded after the property name
(e.g. UID, VTIMEZONE stuff.) Slight chance of data corruption here.
* src/libical/icalvalue.c (icalvalue_text_as_ical_string): don't fold
the lines here.
* src/libical/icaltime.c (icaltime_from_string): DATE values should
not have is_utc set to 1 - they don't have a timezone.
* src/libical/icalvalue.c (icalvalue_utcoffset_as_ical_string):
always round UTC offsets to the nearest minute, for compatability
with Outlook. Should round data when parsing as well.
svn path=/trunk/; revision=14396
2001-10-27 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_display_name): added
function to get a reasonable name to display for the timezone.
(Though it won't be translated.)
svn path=/trunk/; revision=14265
2001-10-25 Damon Chaplin <damon@ximian.com>
* src/libical/icaltimezone.c (icaltimezone_get_tznames_from_vtimezone):
Outlooks (2000) places "Standard Time" and "Daylight Time" in the
TZNAME strings, which is useless, so return NULL in that case.
ETimezoneEntry will then use the TZID instead, in which Outlook does
place the actual timezone name. (I just hope Outlook doesn't translate
"Standard Time" to other languages, as we won't be able to fix it then)
svn path=/trunk/; revision=14107
2001-10-23 Damon Chaplin <damon@ximian.com>
* src/libical/icalrecur.c (icalrecur_two_byrule): use
sizeof(test_array) for the memset call. It was clearing 9 bytes but
the array uses shorts.
svn path=/trunk/; revision=13958