summaryrefslogtreecommitdiffstats
path: root/src/userfunc.c
AgeCommit message (Collapse)Author
2021-07-15patch 8.2.3171: another illegal memory access in testv8.2.3171Bram Moolenaar
Problem: Another illegal memory access in test. Solution: Check pointer is after the start of the line.
2021-07-15patch 8.2.3170: Illegal memory access in testv8.2.3170Bram Moolenaar
Problem: Illegal memory access in test. Solution: Check pointer is not before the start of the line.
2021-07-15patch 8.2.3169: Vim9: cannot handle nested inline functionv8.2.3169Bram Moolenaar
Problem: Vim9: cannot handle nested inline function. Solution: Check for nested inline function. (closes #8575)
2021-07-08patch 8.2.3129: Vim9: imported uninitialized list does not get type checkedv8.2.3129Bram Moolenaar
Problem: Vim9: imported uninitialized list does not get type checked. Solution: Get type from imported variable.
2021-07-08patch 8.2.3128: Vim9: uninitialzed list does not get type checkedv8.2.3128Bram Moolenaar
Problem: Vim9: uninitialzed list does not get type checked. Solution: Set the type when initializing the variable. (closes #8529)
2021-07-04patch 8.2.3107: Vim9: error for arguments while type didn't specify argumentsv8.2.3107Bram Moolenaar
Problem: Vim9: error for arguments while type didn't specify arguments. Solution: Do not update that type to check when no argument count is specified. (closes #8492)
2021-07-04patch 8.2.3105: Vim9: type of partial is wrong when it has argumentsv8.2.3105Bram Moolenaar
Problem: Vim9: type of partial is wrong when it has arguments. Solution: Subtract arguments from the count. (issue #8492)
2021-07-03patch 8.2.3089: garbage collection has useless codev8.2.3089Bram Moolenaar
Problem: Garbage collection has useless code. Solution: Bail out when aborting. (closes #8504)
2021-06-27patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar
Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
2021-06-26patch 8.2.3060: Vim9: cannot use ternary operator in parenthesisv8.2.3060Bram Moolenaar
Problem: Vim9: cannot use ternary operator in parenthesis. Solution: Do not use "=~" for a default argument value. (closes #8462)
2021-06-26patch 8.2.3059: Vim9: memory leak when using lambdav8.2.3059Bram Moolenaar
Problem: Vim9: memory leak when using lambda. Solution: Do not store the default value strings when skipping.
2021-06-26patch 8.2.3058: Vim9: cannot use ternary operator in parenthesisv8.2.3058Bram Moolenaar
Problem: Vim9: cannot use ternary operator in parenthesis. Solution: Do not use "==" for a default argument value. (closes #8462)
2021-06-26patch 8.2.3056: Vim9: using default value in lambda gives confusing errorv8.2.3056Bram Moolenaar
Problem: Vim9: using default value in lambda gives confusing error. Solution: Pass "default_args" on the first pass to get the arguments. (closes #8455)
2021-06-21patch 8.2.3031: no error if a function name starts with an underscorev8.2.3031Bram Moolenaar
Problem: No error if a function name starts with an underscore. (Naohiro Ono) Solution: In Vim9 script disallow a function name starting with an underscore, as is mentioned in the help. (closes #8414)
2021-06-13patch 8.2.2985: Vim9: a compiled function cannot be debuggedv8.2.2985Bram Moolenaar
Problem: Vim9: a compiled function cannot be debugged. Solution: Add initial debugging support.
2021-06-12patch 8.2.2983: Vim9: an inline function requires specifying the return typev8.2.2983Bram Moolenaar
Problem: Vim9: an inline function requires specifying the return type. Solution: Make the return type optional.
2021-06-06patch 8.2.2951: Vim9: cannot use heredoc for :python, :lua, etc.v8.2.2951Bram Moolenaar
Problem: Vim9: cannot use heredoc in :def function for :python, :lua, etc. Solution: Concatenate the heredoc lines and pass them in the ISN_EXEC_SPLIT instruction.
2021-05-24patch 8.2.2882: Vim9: memory leak when lambda has an errorv8.2.2882Bram Moolenaar
Problem: Vim9: memory leak when lambda has an error. Solution: Free the list of argument types on failure.
2021-05-18patch 8.2.2866: Vim9: memory leak when using inline functionv8.2.2866Bram Moolenaar
Problem: Vim9: memory leak when using inline function. Solution: Remember what strings to free.
2021-05-18patch 8.2.2865: skipping over function body failsv8.2.2865Bram Moolenaar
Problem: Skipping over function body fails. Solution: Do not define the function when skipping.
2021-05-18patch 8.2.2864: Vim9: crash when using inline functionv8.2.2864Bram Moolenaar
Problem: Vim9: crash when using inline function. Solution: Check for NULL pointer. Make using inline function work inside lambda. (closes #8217)
2021-04-14patch 8.2.2764: memory leak when default function argument is allocatedv8.2.2764Bram Moolenaar
Problem: Memory leak when default function argument is allocated. Solution: Free the expression result.
2021-04-12patch 8.2.2758: Vim9: wrong line number for autoload function with wrong namev8.2.2758Bram Moolenaar
Problem: Vim9: wrong line number for autoload function with wrong name. Solution: Set and restore SOURCING_LNUM. (closes #8100)
2021-04-10patch 8.2.2751: Coverity warns for using NULL pointerv8.2.2751Bram Moolenaar
Problem: Coverity warns for using NULL pointer. Solution: Check for NULL in calling function.
2021-04-10patch 8.2.2746: check for duplicate arguments does not workv8.2.2746Bram Moolenaar
Problem: Check for duplicate arguments does not work. Solution: Correct condition.
2021-04-10patch 8.2.2745: Vim9: missing part of the argument changev8.2.2745Bram Moolenaar
Problem: Vim9: missing part of the argument change. Solution: Add missing changes.
2021-04-09patch 8.2.2740: Vim9: lambda with varargs doesn't workv8.2.2740Bram Moolenaar
Problem: Vim9: lambda with varargs doesn't work. Solution: Make "...name" work. Require type to be a list.
2021-04-09patch 8.2.2739: Vim9: a lambda accepts too many arguments at the script levelv8.2.2739Bram Moolenaar
Problem: Vim9: a lambda accepts too many arguments at the script level. Solution: Do not set uf_varargs in Vim9 script.
2021-04-06patch 8.2.2726: confusing error message with white space before commav8.2.2726Bram Moolenaar
Problem: Confusing error message with white space before comma in the arguments of a function declaration. Solution: Give a specific error message. (closes #2235)
2021-03-29patch 8.2.2677: Vim9: cannot use only some of the default argumentsv8.2.2677Bram Moolenaar
Problem: Vim9: cannot use only some of the default arguments. Solution: Use v:none to use default argument value. Remove uf_def_arg_idx[], use JUMP_IF_ARG_SET. (closes #6504)
2021-03-27patch 8.2.2663: Vim9: leaking memory when inline function has an errorv8.2.2663Bram Moolenaar
Problem: Vim9: leaking memory when inline function has an error. Solution: Free the partially allocated function.
2021-03-22patch 8.2.2645: using inline function is not properly testedv8.2.2645Bram Moolenaar
Problem: Using inline function is not properly tested. Solution: Add test cases, esp. for errors. Minor code improvements.
2021-03-22patch 8.2.2642: Vim9: no clear error for wrong inline functionv8.2.2642Bram Moolenaar
Problem: Vim9: no clear error for wrong inline function. Solution: Check for something following the "{".
2021-03-21patch 8.2.2636: memory leak when compiling inline functionv8.2.2636Bram Moolenaar
Problem: Memory leak when compiling inline function. Solution: Free the prefetched line.
2021-03-21patch 8.2.2635: Vim9: cannot define an inline functionv8.2.2635Bram Moolenaar
Problem: Vim9: cannot define an inline function. Solution: Make an inline function mostly work.
2021-03-17patch 8.2.2614: Vim9: function is deleted while executingv8.2.2614Bram Moolenaar
Problem: Vim9: function is deleted while executing. Solution: increment the call count, when more than zero do not delete the function but mark it as dead. (closes #7977)
2021-03-06patch 8.2.2576: Vim9: defining a :func function checks for white spacev8.2.2576Bram Moolenaar
Problem: Vim9: defining a :func function checks for white space after a comma in the arguments. Solution: Only check for white space in a :def function. (closes #7930)
2021-02-28patch 8.2.2558: no error if a lambda argument shadows a variablev8.2.2558Bram Moolenaar
Problem: No error if a lambda argument shadows a variable. Solution: Check that the argument name shadows a local, argument or script variable. (closes #7898)
2021-02-23patch 8.2.2544: Vim9: error for argument when checking for lambdav8.2.2544Bram Moolenaar
Problem: Vim9: error for argument when checking for lambda. Solution: Respect the skip flag. (closes #7887)
2021-02-21patch 8.2.2540: Vim9: no error for using script var name for argumentv8.2.2540Bram Moolenaar
Problem: Vim9: no error for using script var name for argument. Solution: Check for this error. (closes #7868)
2021-02-20patch 8.2.2536: Coverity complains about unchecked return valuev8.2.2536Bram Moolenaar
Problem: Coverity complains about unchecked return value. Solution: Add (void).
2021-02-19patch 8.2.2530: Vim9: not enough testing for profilingv8.2.2530Bram Moolenaar
Problem: Vim9: not enough testing for profiling. Solution: Add a test with nested functions and a lambda. Fix profiling for calling a compiled function.
2021-02-12patch 8.2.2505: Vim9: crash after defining function with invalid return typev8.2.2505Bram Moolenaar
Problem: Vim9: crash after defining function with invalid return type. Solution: Clear function growarrays. Fix memory leak.
2021-02-07patch 8.2.2486: Vim9: some errors for white space do not show contextv8.2.2486Bram Moolenaar
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
2021-02-07patch 8.2.2481: Vim9: confusing error when variable arguments have defaultv8.2.2481Bram Moolenaar
Problem: Vim9: confusing error when variable arguments have a default value. Solution: Give a specific error message. (closes #7793)
2021-02-07patch 8.2.2480: Vim9: some errors for white space do not show contextv8.2.2480Bram Moolenaar
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
2021-02-03patch 8.2.2456: Coverity warning for strcpy() into fixed size arrayv8.2.2456Bram Moolenaar
Problem: Coverity warning for strcpy() into fixed size array. Solution: Add a type cast to hopefully silence the bogus warning.
2021-01-31patch 8.2.2445: Vim9: no proper error for lambda missing return typev8.2.2445Bram Moolenaar
Problem: Vim9: no proper error for lambda missing return type. Solution: Check for this error. (closes #7758)
2021-01-24patch 8.2.2405: Vim9: no need to allow white space before "(" for :defv8.2.2405Bram Moolenaar
Problem: Vim9: no need to allow white space before "(" for :def. Solution: Give an error for stray white space. (issue #7734)
2021-01-24patch 8.2.2400: Vim9: compiled functions are not profiledv8.2.2400Bram Moolenaar
Problem: Vim9: compiled functions are not profiled. Solution: Add initial changes to profile compiled functions. Fix that a script-local function was hard to debug.