Commit Graph

90 Commits

Author SHA1 Message Date
de6d478888 Add the COMBINEDHEADERS here and remove the EXTRA_DIST. This fixes
2001-07-10  Peter Williams  <peterw@ximian.com>

	* src/libicalss/Makefile.am (libicalss_la_SOURCES): Add the
	COMBINEDHEADERS here and remove the EXTRA_DIST. This fixes distcheck.
	We can't just put CONBINEDHEADERS at the bottom of _SOURCES because
	of the $(srcdir).

svn path=/trunk/; revision=11040
2001-07-12 14:21:27 +00:00
0a9ff51460 only create the timezones array when we need to, and make sure we free
2001-07-11  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.c: only create the timezones array when we
	need to, and make sure we free things when necessary.
	Also added timezones_sorted variable, which we set to 0 when adding a
	timezone. We then sort the array before doing binary searches (oops!)

	* src/libical/icaltimezone.[hc]: added free_struct() arg to
	icaltimezone_free() to specify whether to free the icaltimezone struct.
	Also added icaltimezone_array_free() function.

svn path=/trunk/; revision=11026
2001-07-12 02:37:53 +00:00
552d3501e9 don't convert DATE values.
2001-07-10  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.c (icaltimezone_convert_time): don't convert
	DATE values.

	* src/libical/icaltime.c (icaltime_from_timet_with_zone):
	(icaltime_as_timet_with_zone): changed so they do not convert DATE
	values according to the timezone.

	* src/libical/icaltime.[hc]: added icaltime_current_time_with_zone()
	and icaltime_today() functions.

svn path=/trunk/; revision=10983
2001-07-11 03:46:33 +00:00
c41a49b0b5 forgot to compile before committing. Idiot.
2001-07-09  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltime.c (icaltime_adjust): forgot to compile before
	committing. Idiot.

svn path=/trunk/; revision=10945
2001-07-10 02:45:51 +00:00
8f5df2dc9e if the 2 zones are the same just return.
2001-07-09  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.c (icaltimezone_convert_time): if the 2
	zones are the same just return.

	* src/libical/icaltime.c (icaltime_adjust): normalize the month.

svn path=/trunk/; revision=10944
2001-07-10 02:14:20 +00:00
9dbf178166 add the icaltimezone to the timezone array of the toplevel VCALENDAR
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* src/libical/icalcomponent.c (icalcomponent_add_component): add the
	icaltimezone to the timezone array of the toplevel VCALENDAR component.

svn path=/trunk/; revision=10738
2001-07-03 09:17:53 +00:00
2d250ff733 fixed bad assertion, '!=' -> '=='. (icalcomponent_merge_vtimezone): get
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* src/libical/icalcomponent.c (icalcomponent_merge_component): fixed
	bad assertion, '!=' -> '=='.
	(icalcomponent_merge_vtimezone): get the TZID from vtimezone, not comp.

svn path=/trunk/; revision=10733
2001-07-03 06:10:27 +00:00
0e27010e0b more timezone stuff.
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.c (icaltimezone_get_builtin_timezone_from_tzid):
	* src/libical/icaltime.c:
	* src/libical/icalcomponent.c: more timezone stuff.

svn path=/trunk/; revision=10727
2001-07-03 04:11:38 +00:00
c9562d914e Add $(srcdir) as in install-data-local rule.
2001-06-28  Peter Williams  <peterw@ximian.com>

        * zoneinfo/Makefile.am (dist-hook): Add $(srcdir) as in install-data-local
        rule.

svn path=/trunk/; revision=10605
2001-06-29 19:22:53 +00:00
cc9eea946f commented out AC_DEFINE(ICAL_ERRORS_ARE_FATAL,1). We only want it to abort
2001-06-28  Damon Chaplin  <damon@ximian.com>

	* configure.in: commented out AC_DEFINE(ICAL_ERRORS_ARE_FATAL,1).
	We only want it to abort when there is no possibility of carrying on.

svn path=/trunk/; revision=10581
2001-06-28 22:35:43 +00:00
b8624a9ad3 stripped all blank lines from iCalendar files. Apparently they aren't
2001-06-26  Damon Chaplin  <damon@ximian.com>

	* zoneinfo/*: stripped all blank lines from iCalendar files.
	Apparently they aren't exactly legal. Oops.

svn path=/trunk/; revision=10526
2001-06-27 03:22:21 +00:00
19904850fe Extra dist the zones.tab information
2001-06-15  JP Rosevear  <jpr@ximian.com>

	* zoneinfo/Makefile.am: Extra dist the zones.tab information

svn path=/trunk/; revision=10250
2001-06-15 13:56:42 +00:00
8089ac1639 added functions to get the coords of builtin timezones.
2001-06-14  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.c (icaltimezone_get_latitude):
	(icaltimezone_get_longitude): added functions to get the coords of
	builtin timezones.

svn path=/trunk/; revision=10222
2001-06-14 05:55:32 +00:00
d54f22de6e merged in some new stuff from libical CVS. (icalrecur_add_byrules): If no
2001-06-13  Damon Chaplin  <damon@ximian.com>

	* src/libical/icalrecur.c: merged in some new stuff from libical CVS.
	(icalrecur_add_byrules): If no sign is given set sign to 1 (i.e.
	default to positive).
	(icalrecur_iterator_new): when setting up the year days array, handle
	the case where a year has no occurrences and we have to skip it.
	Also initialize the last.day and last.month fields.
	(expand_by_day): set the last day of the year explicitly rather than
	adding 1 to year and subtracting 1 from day. It is more efficient,
	and less prone to bugs. Also rewrote a bit.
	(expand_year_days): added code to handle BY_MONTH_DAY and BY_DAY +
	BY_MONTH_DAY, and rewrote code to handle BY_DAY + BY_MONTH.
	(next_year): handled the case where there are no occurrences in the
	year.

	* src/libical/icaltime.c (icaltime_adjust): new function to adjust a
	time by a number of days/hours/minutes/seconds.
	(icaltime_day_of_week): rewrote using a single call to mktime().
	(icaltime_day_of_year): rewrote using a single call to mktime().
	(icaltime_from_day_of_year): rewrote in a simpler way. The old version
	had a bug in it.

	* src/libical/icaltime.h (struct icaltimetype): added is_daylight
	flag, so we can try to distinguish between standard and daylight time
	when the clocks go back. Though this doesn't always resolve the
	ambiguity.

	* src/libical/icalcomponent.c: added some stuff to handle timezone
	data connected to the calendar component. Unfinished.

	* src/libical/icalyacc.y: merged in a fix from sourceforge CVS version
	of libical, so we can handle -ve UTC offsets.

	* src/libical/Makefile.am (CPPFLAGS): added PACKAGE_DATA_DIR define
	for finding the VTIMEZONE files.
	(libical_la_SOURCES): added icalarray.[hc] and icaltimezone.[hc].
	(COMBINEDHEADERS): added icalarray.h and icaltimezone.h to the headers
	to be combined into ical.h.

svn path=/trunk/; revision=10220
2001-06-14 02:50:46 +00:00
71c0692058 new files to contain support for timezones.
2001-06-13  Damon Chaplin  <damon@ximian.com>

	* src/libical/icaltimezone.[hc]: new files to contain support for
	timezones.

	* src/libical/icalarray.[hc]: new files to provide a simple expanding
	array datatype.

svn path=/trunk/; revision=10215
2001-06-14 02:17:40 +00:00
9913eeda8c added zoneinfo.
2001-06-13  Damon Chaplin  <damon@ximian.com>

	* Makefile.am (SUBDIRS): added zoneinfo.

	* configure.in (AC_OUTPUT): added zoneinfo/Makefile.

	* zoneinfo/Makefile.am: new file to install & distribute the
	VTIMEZONE data files, and the zones.tab file.

	* zoneinfo/zones.tab: new file containing a list of all timezones
	and their coordinates (so we can mark them on the world map).

	* zoneinfo/*: Lots of VTIMEZONE data files added, one per timezone.

svn path=/trunk/; revision=10214
2001-06-13 23:09:50 +00:00
d1735f70b7 Fixes to make it make dist and make distcheck. Kind of kludgy but they
2001-05-16  JP Rosevear  <jpr@ximian.com>

	* src/libical/Makefile.am: Fixes to make it make dist and make
	distcheck.  Kind of kludgy but they seem to work.  Time will tell.

svn path=/trunk/; revision=9841
2001-05-16 07:16:31 +00:00
9bd88f883a plug leak (icaltime_as_timet): use altered functions
2001-05-10  JP Roseveaer  <jpr@ximian.com>

	* src/libical/icaltime.c (set_tz, unset_tz): plug leak
	(icaltime_as_timet): use altered functions
	(icaltime_utc_offset): ditto
	(icaltime_from_day_of_year): ditto

svn path=/trunk/; revision=9752
2001-05-10 23:47:18 +00:00
76808d38e9 initialize "continuation_line" to 0
2001-05-02  JP Rosevear  <jpr@ximian.com>

	* src/libical/icalparser.c (icalparser_new): initialize
	"continuation_line" to 0

svn path=/trunk/; revision=9646
2001-05-02 17:38:11 +00:00
c78c05d8af Disable the Python stuff and the tests for now. They are broken and
are not needed by end users anyway.

svn path=/trunk/; revision=9443
2001-04-18 15:47:26 +00:00
818a27977d Prepend `$(srcdir)' to the list of libicalss headers to be combined.
svn path=/trunk/; revision=9442
2001-04-18 15:37:01 +00:00
a3910e4351 Fix the building of ical.h. Again.
svn path=/trunk/; revision=9441
2001-04-18 15:00:51 +00:00
e6f1da7f46 Finish merge of new libical 0.23a version
2001-04-17  JP Rosevear  <jpr@ximian.com>

	* Finish merge of new libical 0.23a version

svn path=/trunk/; revision=9420
2001-04-17 17:54:48 +00:00
e91a42c3f8 Merge the building fix from evolution-0-9-branch.
svn path=/trunk/; revision=8413
2001-02-27 20:44:50 +00:00
1cd5f1093b Missing change log entry
svn path=/trunk/; revision=8215
2001-02-13 23:35:45 +00:00
1d9656293e The built sources shouldn't be cleane
2001-02-09  JP Rosevear  <jpr@ximian.com>

	* src/libical/Makefile.am: The built sources shouldn't be cleane

svn path=/trunk/; revision=8139
2001-02-09 08:50:30 +00:00
cf2f750017 its NEEDS-ACTION rather than NEEDSACTION (icalparameter_as_ical_string):
2001-02-09  JP Rosevear  <jpr@ximian.com>

	* src/libical/icalparameter.c.in (icalparameter_new_from_string):
	its NEEDS-ACTION rather than NEEDSACTION
	(icalparameter_as_ical_string): ditto

svn path=/trunk/; revision=8138
2001-02-09 07:09:46 +00:00
9ff9778086 Added a missing #include here.
2001-02-06  Christopher James Lahey  <clahey@ximian.com>

	* src/libical/icallangbind.c: Added a missing #include here.

	* src/libical/icalrecur.c (icalrecur_add_bydayrules): Copy the
	passed in const vals since we change it.

svn path=/trunk/; revision=8019
2001-02-06 19:36:59 +00:00
dcbba855a9 Use the renamed api call
2001-02-05  JP Rosevear  <jpr@ximian.com>

	* src/libical/icallangbind.c (icallangbind_get_property): Use the
	renamed api call

svn path=/trunk/; revision=8011
2001-02-06 03:56:17 +00:00
e01190ecb8 Guess what! Fix `builddir != srcdir' breakage.
svn path=/trunk/; revision=7994
2001-02-05 22:07:49 +00:00
e582e23949 Import cleanup
svn path=/trunk/; revision=7978
2001-02-05 19:43:58 +00:00
ac2b078ef5 Remove unused "extern long timezone".
* src/libical/icaltime.c: Remove unused "extern long timezone".

svn path=/trunk/; revision=7814
2001-01-25 17:29:23 +00:00
576238ed57 rewrote to fix problems with freeing the environment string after calling
2001-01-24  Damon Chaplin  <damon@helixcode.com>

	* src/libical/icaltime.c (set_tz):
	(unset_tz): rewrote to fix problems with freeing the environment
	string after calling putenv() and to fix memory leaks. (We save a
	pointer to the last TZ env var we set, so we free it after the next
	time we set TZ.)

svn path=/trunk/; revision=7788
2001-01-24 19:52:42 +00:00
4c003b7cb6 Don't AC_INIT on an autogenerated file that does not exist beforehand
2001-01-23  JP Rosevear  <jpr@ximian.com>

	* configure.in: Don't AC_INIT on an autogenerated file that does not
	exist beforehand

svn path=/trunk/; revision=7758
2001-01-23 21:51:25 +00:00
4028f454b6 Import clean up
svn path=/trunk/; revision=7751
2001-01-23 20:22:40 +00:00
0b808ca4dc Missing Changelog entry
svn path=/trunk/; revision=7646
2001-01-19 14:55:58 +00:00
0305388aa2 include configure.h because HAVE_TIMEZONE is used
2000-12-21  JP Rosevear  <jpr@helixcode.com>

	* src/libical/icaltime.c: include configure.h because HAVE_TIMEZONE
	is used

	* acconfig.h: Terminate variable comment so that the variable can
	actually be seen

svn path=/trunk/; revision=7122
2000-12-21 23:33:02 +00:00
4492da8456 Build `libical-static.la', that is needed for the conduits.
svn path=/trunk/; revision=7046
2000-12-15 15:19:26 +00:00
84ee9f01f7 More builddir != srcdir fun! Man, I enjoy this so much.
svn path=/trunk/; revision=7001
2000-12-14 13:07:11 +00:00
55d696992d Use gmtime() unconditionally, since we want an UTC broken-down
2000-12-13  Federico Mena Quintero  <federico@helixcode.com>

	* src/libical/icaltime.c (icaltime_from_timet): Use gmtime()
	unconditionally, since we want an UTC broken-down representation.
	(icaltime_as_timet): Add the offset only if the time was supposed
	to be in UTC; that way mktime() will get a proper localtime as
	source data.

svn path=/trunk/; revision=6996
2000-12-14 06:09:25 +00:00
db80f3f3ab time_t values *are* in UTC by definition, so the is_utc argument is
2000-12-13  Federico Mena Quintero  <federico@helixcode.com>

	* src/libical/icaltime.c (icaltime_from_timet): time_t values
	*are* in UTC by definition, so the is_utc argument is useless.
	Removed the conversion to UTC and made the icaltimetype.is_utc be
	TRUE always.  This breaks libical's owne internal use of this
	function, but since we do not use any of the functions that use it
	that way, we can ignore this.  This is basically a temporary
	measure until libical does the right thing.

svn path=/trunk/; revision=6994
2000-12-14 04:40:22 +00:00
e83e50a39b icalparser.c Addedd support for x-parameters.
2000-12-12  Eric Busboom  <eric@softwarestudio.org>

	* icalparser.c Addedd support for x-parameters.

	* icalenum.c Fixed icalenum_parameter_type_to_string and
 	icalenum_property_type_to_string to property identify X- parameers
 	and properties.

	* icalparameter.c Fixed icalparameter_as_ical_string to property
 	write out X-Parameters.

svn path=/trunk/; revision=6990
2000-12-14 02:13:54 +00:00
5cfc1d8276 Added a name to the parameter to icalerror_set_errno.
2000-12-13  Christopher James Lahey  <clahey@helixcode.com>

	* src/libical/icalerror.h: Added a name to the parameter to
	icalerror_set_errno.

svn path=/trunk/; revision=6985
2000-12-14 01:39:03 +00:00
2809fef6da Removed the explicit paths. Why it did *not* work on my original try when
2000-12-13  Federico Mena Quintero  <federico@helixcode.com>

	* src/libical/Makefile.am (COMBINEDHEADERS): Removed the explicit
	paths.  Why it did *not* work on my original try when they were
	not there, well, now I don't know.

svn path=/trunk/; revision=6980
2000-12-14 01:03:03 +00:00
7c84cd3ee7 Missed ChangeLog.
svn path=/trunk/; revision=6974
2000-12-13 20:39:38 +00:00
a0f7893035 #if 0ed out some #if 1ed test code that was breaking my build by
2000-12-12  Joe Shaw  <joe@helixcode.com>

        * src/libical/icalrecur.c: #if 0ed out some #if 1ed test code that
        was breaking my build by #including ical.h. No cookie!

svn path=/trunk/; revision=6959
2000-12-13 00:53:37 +00:00
9195d5465e Add a check for "extern int timezone;" vs struct tm tm_gmtoff, stolen from
* configure.in: Add a check for "extern int timezone;" vs struct
	tm tm_gmtoff, stolen from Evolution's configure.in.

	* src/libical/icaltime.c (icaltime_utc_offset,
	icaltime_local_utc_offset): Use HAVE_TIMEZONE, add tm_gmtoff
	support.

	* src/libical/icallexer.l: Remove ical_yy_scan_buffer, ..._string,
	and ..._bytes prototypes, since it compiles fine without them on
	Linux, and bombs out due to prototype mismatch on my NetBSD box.

svn path=/trunk/; revision=6945
2000-12-12 22:54:41 +00:00
e3088ae21f More fixage - Federico
svn path=/trunk/; revision=6939
2000-12-12 05:00:45 +00:00
384c7dadf8 Make AC_INIT() check for a file that is not autogenerated!
2000-12-11  Federico Mena Quintero  <federico@helixcode.com>

	* configure.in: Make AC_INIT() check for a file that is not
	autogenerated!

svn path=/trunk/; revision=6934
2000-12-12 02:39:29 +00:00
12cb910f8a Fixety fix - Federico
svn path=/trunk/; revision=6933
2000-12-12 02:27:49 +00:00