summaryrefslogtreecommitdiff
path: root/src/time.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1413: compiler warning for unused variablev9.0.1413Bram Moolenaar2023-03-171-6/+3
| | | | | Problem: Compiler warning for unused variable. Solution: Move variable declaration. (John Marriott)
* patch 9.0.1411: accuracy of profiling is not optimalv9.0.1411Ernie Rael2023-03-161-4/+13
| | | | | Problem: Accuracy of profiling is not optimal. Solution: Use CLOCK_MONOTONIC if possible. (Ernie Rael, closes #12129)
* patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan2023-02-211-1/+1
| | | | | Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
* patch 9.0.1245: code is indented more than necessaryv9.0.1245Yegappan Lakshmanan2023-01-251-74/+78
| | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11879)
* patch 9.0.0990: callback name argument is changed by setqflist()v9.0.0990Bram Moolenaar2022-12-021-0/+2
| | | | | | Problem: Callback name argument is changed by setqflist(). Solution: Use the expanded function name for the callback, do not store it in the argument. (closes #11653)
* patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977Bram Moolenaar2022-11-301-2/+2
| | | | | | Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
* patch 9.0.0763: MS-Windows: warning for using int for size_tv9.0.0763Bram Moolenaar2022-10-151-1/+1
| | | | | Problem: MS-Windows: warning for using int for size_t. Solution: Declare variable as size_t.
* patch 9.0.0733: use of strftime() is not safev9.0.0733Dominique Pelle2022-10-121-11/+20
| | | | | | | Problem: Use of strftime() is not safe. Solution: Check the return value of strftime(). Use a larger buffer and correctly pass the available space. (Dominique Pellé, closes #11348)
* patch 9.0.0682: crash when popup with deleted timer is closedv9.0.0682Bram Moolenaar2022-10-071-3/+15
| | | | | | Problem: Crash when popup with deleted timer is closed. (Igbanam Ogbuluijah) Solution: Check the timer still exists. (closes #11301)
* patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar2022-09-171-6/+4
| | | | | Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
* patch 9.0.0359: error message for wrong argument type is not specificv9.0.0359Yegappan Lakshmanan2022-09-021-15/+5
| | | | | | Problem: Error message for wrong argument type is not specific. Solution: Include more information in the error. (Yegappan Lakshmanan, closes #11037)
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-5/+3
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0288: when 'cmdheight' is zero some messages are not displayedv9.0.0288Bram Moolenaar2022-08-271-3/+19
| | | | | Problem: When 'cmdheight' is zero some messages are not displayed. Solution: Use a popup notification window.
* patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar2022-07-231-1/+1
| | | | | Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
* patch 8.2.5107: some callers of rettv_list_alloc() check for not OKv8.2.5107Bram Moolenaar2022-06-161-2/+2
| | | | | | Problem: Some callers of rettv_list_alloc() check for not OK. (Christ van Willegen) Solution: Use "==" instead of "!=" when checking the return value.
* patch 8.2.4887: channel log does not show invoking a timer callbackv8.2.4887Bram Moolenaar2022-05-061-0/+14
| | | | | Problem: Channel log does not show invoking a timer callback. Solution: Add a ch_log() call.
* patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan2022-04-041-1/+1
| | | | | Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
* patch 8.2.4229: possible crash when invoking timer callback failsv8.2.4229Bram Moolenaar2022-01-271-0/+8
| | | | | | Problem: Possible crash when invoking timer callback fails. Solution: Initialize the typval. Give an error for an empty callback. (closes #9636)
* patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199K.Takata2022-01-241-17/+3
| | | | | Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
* patch 8.2.4155: translating strftime() argument results in check errorv8.2.4155Bram Moolenaar2022-01-201-0/+1
| | | | | Problem: Translating strftime() argument results in check error. Solution: Add gettext comment.
* patch 8.2.4035: timer triggered at the debug prompt may cause troublev8.2.4035Bram Moolenaar2022-01-071-2/+3
| | | | | Problem: Timer triggered at the debug prompt may cause trouble. Solution: Do not trigger any timer at the debug prompt. (closes #9481)
* patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar2021-12-311-5/+5
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3768: timer_info() has the wrong repeat value in a timer callbackv8.2.3768Bram Moolenaar2021-12-091-1/+2
| | | | | | Problem: timer_info() has the wrong repeat value in a timer callback. Solution: Do not add one to the repeat value when in the callback. (closes #9294)
* patch 8.2.3763: when editing the cmdline a callback may cause a scroll upv8.2.3763Bram Moolenaar2021-12-091-1/+1
| | | | | | | Problem: When editing the command line a FocusLost callback may cause the screen to scroll up. Solution: Do not redraw at the last line but at the same place where the command line was before. (closes #9295)
* patch 8.2.3341: Vim9: function call aborted despite try/catchv8.2.3341Bram Moolenaar2021-08-141-2/+2
| | | | | Problem: Vim9: function call aborted despite try/catch. (Naohiro Ono) Solution: Ignore error caught by try/catch. (closes #8755)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-0/+24
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3211: Vim9: argument types are not checked at compile timev8.2.3211Yegappan Lakshmanan2021-07-241-1/+8
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Fix type check for matchaddpos(). (Yegappan Lakshmanan, closes #8619)
* patch 8.2.3190: error messages are spread outv8.2.3190Bram Moolenaar2021-07-201-3/+3
| | | | | Problem: Error messages are spread out. Solution: Move error messages to errors.h and give them a clear name.
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-3/+7
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3162: Vim9: argument types are not checked at compile timev8.2.3162Yegappan Lakshmanan2021-07-151-11/+16
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
* patch 8.2.3161: Vim9: no error when reltime() has invalid argumentsv8.2.3161Bram Moolenaar2021-07-141-0/+12
| | | | | Problem: Vim9: no error when reltime() has invalid arguments. Solution: Add an error. (closes #8562)
* patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata2021-06-021-2/+1
| | | | | Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
* patch 8.2.2894: MS-Windows: using enc_locale() for strftime() might not workv8.2.2894K.Takata2021-05-281-1/+15
| | | | | Problem: MS-Windows: using enc_locale() for strftime() might not work. Solution: Use wcsftime(). (Ken Takata, closes #8271)
* patch 8.2.2380: Vim9: occasional crash when using try/catch and a timerv8.2.2380Bram Moolenaar2021-01-201-0/+3
| | | | | | Problem: Vim9: occasional crash when using try/catch and a timer. Solution: Save and restore "need_rethrow" when invoking a timer callback. (closes #7708)
* patch 8.2.1961: various comments can be improvedv8.2.1961Bram Moolenaar2020-11-051-0/+2
| | | | | Problem: Various comments can be improved. Solution: Various comment adjustments.
* patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()v8.2.1628Bram Moolenaar2020-09-061-1/+1
| | | | | Problem: Vim9: cannot pass "true" to timer_paused(). Solution: Use tv_get_bool(). (closes #6891)
* patch 8.2.0949: strptime() does not use DSTv8.2.0949Bram Moolenaar2020-06-101-0/+1
| | | | | Problem: Strptime() does not use DST. Solution: Set the tm_isdst field to -1. (Tomáš Janoušek, closes #6230)
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-1/+1
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-2/+5
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.2.0256: time and timer related code is spread outv8.2.0256Bram Moolenaar2020-02-141-0/+1041
Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)