summaryrefslogtreecommitdiff
path: root/src/libical/icaltimezone.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '3.0'HEADmasterAllen Winter2023-03-241-5/+14
|\
| * libical-glib: Add get_zone_directory3.0Jan Tojnar2023-03-241-5/+14
| | | | | | | | This will be useful for evolution-data-server to use the same zone directory as libical.
| * lots of spelling fixes found by codespellAllen Winter2021-11-281-1/+1
| |
| * src/libical/icaltimezone.c - cppcheck suppressionAllen Winter2021-09-161-0/+1
| |
* | Typos a/anДилян Палаузов2022-12-101-1/+1
| |
* | CMAKE option LIBICAL_SYNC_MODE_THREADLOCAL: Allow compiling all global ↵Markus Minichmayr2022-11-221-5/+5
| | | | | | | | variables with thread-local storage, thus avoiding the need for synchronization.
* | Mark mutable global variables as ICAL_GLOBAL_VAR, so we can specify storage ↵Markus Minichmayr2022-11-221-8/+8
| | | | | | | | modifiers (i.e. thread_local) if necessary.
* | Mark read-only static variables as const.Markus Minichmayr2022-11-221-1/+1
| |
* | REUSE complianceAllen Winter2022-06-061-10/+2
| | | | | | | | fixes: #489
* | time_t - replace type `time_t` and related functions with our own ↵Markus Minichmayr2022-06-031-5/+5
| | | | | | | | `icaltime_t`, etc. and define it centrally in `config_public.h.cmake` and `config.h.cmake`. This allows for easy replacement, should the system-defined time_t not be suitable. This might especially be the case on 32-bit systems where the range of time_t ends 2038.
* | Allow configuring implementation of `fprintf` and `assert` to allow more ↵Markus Minichmayr2022-01-221-6/+6
| | | | | | | | flexible use or to reduce program size.
* | Replaced malloc, realloc, free and strdup with corresponding icalmemory_* ↵Markus Minichmayr2022-01-221-32/+32
| | | | | | | | functions.
* | Merge pull request #501 from warmsocks/masterAllen Winter2021-08-151-1/+1
|\ \ | | | | | | Fix typos and misspellings found by CodeSpell 2.1.0.
| * | Fix typos and misspellings found by CodeSpell 2.1.0.Shaun Case2021-07-121-1/+1
| |/ | | | | | | Fix a few Python whitespace errors found by Syntastic.
* | src/libical/icaltimezone.c - cppcheck suppressionAllen Winter2021-08-141-0/+1
|/
* no_sanitize("thread") attributes for quieting sanitizerAllen Winter2021-01-091-2/+10
| | | | | also add "improve thread safety" to ReleaseNotes and a bit of code cleaning from recent contributions.
* Improve thread safety of icaltimezone_load_builtin_timezone()Milan Crha2021-01-091-0/+6
| | | | | | | | | Even the function does test whether the passed-in zone has set the component, it doesn't retest it when it acquires the lock, but other thread could already assign the component, which can cause use-after-free in certain thread interleaving. Signed-off-by: Allen Winter <allen.winter@kdab.com>
* src/libical/icaltimezone.c - minor coding styleAllen Winter2020-12-201-2/+3
|
* icaltimezone.c: Add compatibility code around read of builtin zones by TZIDMilan Crha2020-12-201-37/+59
| | | | | | | | | | Different versions of libical could you different TZID prefix for builtin zones and yet another TZID when it was configured to use internal zone data. The libical was unable to match builtin time zone by the "old" TZID when it had been reconfigured. This change adds compatibility code to make sure the time zones can be read regardless how the libical had been configured. Signed-off-by: Allen Winter <allen.winter@kdab.com>
* icaltimezone.c: Correct handling of builtin timezones propertiesMilan Crha2020-12-201-0/+42
| | | | | | | | Make the built-in time zones set expected TZID and LOCATION/X-LIC-LOCATION also for internal zone data, thus when the timezone component is stored to a string and read back it preserves these values. Signed-off-by: Allen Winter <allen.winter@kdab.com>
* Move some variables to the read-only sectionДилян Палаузов2020-10-311-1/+1
| | | | | | | so that they do not allocate additional memory in each binary, that uses libical. Signed-off-by: Allen Winter <allen.winter@kdab.com>
* Unify all visible docstrings to .h filesMichael McClurg2020-07-181-62/+0
| | | | Reduces redundancy and conflicting information
* Add missing, remove duplicate Doxygen filesMichael McClurg2020-07-181-4/+0
|
* More grammar fixesMichael McClurg2020-07-021-1/+1
|
* Use more Doxygen headers (@brief, @returns)Michael McClurg2020-07-021-60/+89
|
* Fix missing or unintentional docsMichael McClurg2020-07-021-5/+7
|
* Add more periods to end of sentencesMichael McClurg2020-06-301-2/+2
|
* More verb form fixesMichael McClurg2020-06-301-1/+1
|
* Include <limits.h> in files that use INT_MAX or CHAR_BITnia2020-02-091-0/+1
|
* various - use https instead of http where we canAllen Winter2019-12-141-2/+2
| | | | | Update Eric's email Remove softwarestudio.com which no longer exists as a domain
* icaltimezone.c: Fix race condition on zone changes arrayAdam Dingle2019-10-271-2/+2
|
* src/libical/icaltimezone.c - fix splint warningsAllen Winter2019-07-131-15/+16
|
* src/libical/icaltimezone.c - minor coding styleAllen Winter2019-07-131-20/+24
|
* icaltimezone.c: initialize struct icaldatetimeperiodtype fields individuallyKen Murchison2019-07-131-8/+8
|
* icaltimezone.c: initialize struct rdate fields individuallyKen Murchison2019-07-131-1/+6
|
* Added icaltimezone_truncate_vtimezone() - fixes issue #371Ken Murchison2019-07-131-0/+473
|
* icaltimezone.c - fix ical_tzid_prefix global var can be used uninitializedAllen Winter2018-07-231-10/+16
| | | | a slightly modified patch from Milan
* src/libical/icaltimezone.c - comment changes_lock() in icaltimezone_reset()Allen Winter2018-02-111-2/+2
|
* src/libical/icaltimezone.c - fix threading problems on BSD-type systemsfixthreadingAllen Winter2018-01-271-22/+2
|
* icaltimezone.c - Fix a multi-threaded deadlock in ↵Allen Winter2017-11-131-1/+3
| | | | icaltimezone_load_builtin_timezone()
* icaltimezone.c - fix build without PTHREADSAllen Winter2017-10-261-0/+2
|
* icaltimezone.c - handle data-race and use-after-free in multithreadedAllen Winter2017-10-261-22/+96
| | | | | | initial patch by Milan, with some additional work by me. Issue#319
* src/libical/icaltimezone.c - handle the BUILTIN_TZDATA caseAllen Winter2017-10-141-5/+10
|
* Merge branch 'remove-is_utc' of https://github.com/ksuther/libical into ↵Allen Winter2017-10-031-3/+2
|\ | | | | | | ksuther-remove-is_utc
| * Merge branch 'master' into remove-is_utcKent Sutherland2017-10-011-2/+2
| |\
| * | Remove is_utc and only use zone in icaltimetypeKent Sutherland2017-02-121-3/+2
| | | | | | | | | | | | | | | | | | | | | If zone is NULL then the time is floating. This simplifies things because we no longer have to check the case where is_utc = 1 but zone = NULL. Instead we can always just get if the zone is the same as the built-in UTC time zone (or use icaltime_is_utc). It also eliminates invalid configurations such as having is_utc = 1 but zone set to a non-UTC time zone. The removal of is_utc isn't complete, it hasn't been removed from documentation, Java, glib, libicalss, libicalvcal, and SWIG/Python wrappers.
* | | icaltimezone.c, icalssyacc.c, generator.c - clang-analyzer garbage cleaningAllen Winter2017-10-021-1/+1
| |/ |/|
* | Relicense to MPL 2.0 instead of MPL 1.0Allen Winter2017-05-071-2/+2
|/ | | | | | | | fix urls. make source license headers consistent GNU "Lesser" vs. GNU "Library" etc. issue: #297
* cleanup remaining comments about functions we decided not to deprecate.Allen Winter2017-01-011-4/+0
|
* * Signature changed for functions:Allen Winter2016-12-211-1/+1
| | | | | | | | | | | | + VObject *Parse_MIME_FromFileName(const char *fname) + icalgauge *icalgauge_new_from_sql(const char *sql, int expand) + const char *icallangbind_property_eval_string(icalproperty *prop, const char *sep) + const char *icallangbind_property_eval_string_r(icalproperty *prop, const char *sep) + void set_zone_directory(const char *path) + icalcalendar *icalcalendar_new(const char *dir) + int icalrecur_expand_recurrence(const char *rule, time_t start, int count, time_t *array) issue#276