summaryrefslogtreecommitdiff
path: root/src/if_cscope.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.1183: assert_fails() checks the last error messagev8.2.1183Bram Moolenaar2020-07-111-1/+0
| | | | | | Problem: assert_fails() checks the last error message. Solution: Check the first error, it is more relevant. Fix all the tests that rely on the old behavior.
* patch 8.1.2387: using old C style commentsv8.1.2387Bram Moolenaar2019-12-041-191/+187
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.1991: still cannot build with eval but without cscopev8.1.1991Bram Moolenaar2019-09-051-28/+30
| | | | | Problem: Still cannot build with eval but without cscope. Solution: Move f_cscope_connection() outside of #ifdef.
* patch 8.1.1989: the evalfunc.c file is still too bigv8.1.1989Bram Moolenaar2019-09-051-2/+30
| | | | | | | Problem: The evalfunc.c file is still too big. Solution: Move f_pathshorten() to filepath.c. Move f_cscope_connection() to if_cscope.c. Move diff_ functions to diff.c. Move timer_ functions to ex_cmds2.c. move callback functions to evalvars.c.
* patch 8.1.1979: code for handling file names is spread outv8.1.1979Bram Moolenaar2019-09-041-4/+1
| | | | | Problem: Code for handling file names is spread out. Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-4/+0
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-33/+33
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-11/+11
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-3/+3
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-12/+12
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-14/+15
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0753: printf format not checked for semsg()v8.1.0753Bram Moolenaar2019-01-151-1/+1
| | | | | | Problem: printf format not checked for semsg(). Solution: Add GNUC attribute and fix reported problems. (Dominique Pelle, closes #3805)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-30/+30
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-11/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0268: file type checking has too many #ifdefv8.1.0268Bram Moolenaar2018-08-111-6/+1
| | | | | Problem: File type checking has too many #ifdef. Solution: Always define the S_IF macros. (Ken Takata, closes #3306)
* patch 8.1.0211: expanding a file name "~" results in $HOMEv8.1.0211Bram Moolenaar2018-07-251-1/+1
| | | | | Problem: Expanding a file name "~" results in $HOME. (Aidan Shafran) Solution: Change "~" to "./~" before expanding. (closes #3072)
* patch 8.0.1564: too many #ifdefsv8.0.1564Bram Moolenaar2018-03-041-6/+2
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and increases code size of tiny Vim by only 40 Kbyte.
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-11/+6
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1442: using pointer before it is setv8.0.1442Bram Moolenaar2018-01-301-1/+1
| | | | | Problem: Using pointer before it is set. Solution: Search in whole buffer instead of next token.
* patch 8.0.1439: if cscope fails a search Vim may hangv8.0.1439Bram Moolenaar2018-01-301-1/+4
| | | | | | Problem: If cscope fails a search Vim may hang. Solution: Bail out when a search error is encountered. (Safouane Baroudi, closes #2598)
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-8/+2
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-10/+10
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-1/+1
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0420: text garbled when the system encoding differs from 'encoding'v8.0.0420Bram Moolenaar2017-03-051-1/+1
| | | | | | Problem: When running :make the output may be in the system encoding, different from 'encoding'. Solution: Add the 'makeencoding' option. (Ken Takata)
* patch 8.0.0192: cannot build with tiny featuresv8.0.0192Bram Moolenaar2017-01-151-1/+1
| | | | | | Problem: Build fails with tiny features. Solution: Change #ifdef for hash_clear(). Avoid warning for unused argument.
* patch 8.0.0081v8.0.0081Bram Moolenaar2016-11-121-96/+33
| | | | | Problem: Inconsistent function names. Solution: Rename do_cscope to ex_cscope. Clean up comments.
* patch 8.0.0074v8.0.0074Bram Moolenaar2016-11-101-1/+1
| | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where.
* patch 8.0.0068v8.0.0068Bram Moolenaar2016-11-061-4/+4
| | | | | | Problem: Checking did_throw after executing autocommands is wrong. (Daniel Hahler) Solution: Call aborting() instead, and only when autocommands were executed.
* patch 8.0.0029v8.0.0029Bram Moolenaar2016-10-121-15/+6
| | | | | | Problem: Code for MS-Windows is complicated because of the exceptions for old systems. Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.1990v7.4.1990Bram Moolenaar2016-07-051-4/+4
| | | | | Problem: Cscope items are not sorted. Solution: Put the new "a" command first. (Ken Takata)
* patch 7.4.1975v7.4.1975Bram Moolenaar2016-07-011-7/+7
| | | | | | Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)
* patch 7.4.1952v7.4.1952Bram Moolenaar2016-06-211-5/+12
| | | | | Problem: Cscope interface does not support finding assignments. Solution: Add the "a" command. (ppettina, closes #882)
* patch 7.4.1410v7.4.1410Bram Moolenaar2016-02-231-0/+3
| | | | | Problem: Leaking memory in cscope interface. Solution: Free memory when no tab is found. (Christian Brabandt)
* patch 7.4.1406v7.4.1406Bram Moolenaar2016-02-231-5/+6
| | | | | Problem: Leaking memory in cs_print_tags_priv(). Solution: Free tbuf. (idea by Forrest Fleming)
* patch 7.4.1334v7.4.1334Bram Moolenaar2016-02-161-3/+4
| | | | | Problem: Many compiler warnings with MingW. Solution: Add type casts. (Yasuhiro Matsumoto)
* patch 7.4.1208v7.4.1208Bram Moolenaar2016-01-301-119/+84
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1198v7.4.1198Bram Moolenaar2016-01-291-36/+36
| | | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
* patch 7.4.822v7.4.822Bram Moolenaar2015-08-111-3/+8
| | | | | Problem: More problems reported by coverity. Solution: Avoid the warnings. (Christian Brabandt)
* updated for version 7.4.684v7.4.684Bram Moolenaar2015-03-311-1/+1
| | | | | | Problem: When starting several Vim instances in diff mode, the temp files used may not be unique. (Issue 353) Solution: Add an argument to vim_tempname() to keep the file.
* updated for version 7.4.624v7.4.624Bram Moolenaar2015-02-101-0/+16
| | | | | Problem: May leak memory or crash when vim_realloc() returns NULL. Solution: Handle a NULL value properly. (Mike Williams)
* updated for version 7.4.544v7.4.544Bram Moolenaar2014-12-131-2/+2
| | | | | | Problem: Warnings for unused arguments when compiling with a combination of features. Solution: Add "UNUSED".
* updated for version 7.3.1276v7.3.1276Bram Moolenaar2013-06-301-0/+9
| | | | | | Problem: When using a cscope connection resizing the window may send SIGWINCH to cscope and it quits. Solution: Call setpgid(0, 0) in the child process. (Narendran Gopalakrishnan)
* updated for version 7.3.1180v7.3.1180Bram Moolenaar2013-06-121-0/+15
| | | | | | Problem: When current directory changes, path from cscope may no longer be valid. (AS Budden) Solution: Always store the absolute path. (Christian Brabandt)
* updated for version 7.3.1038v7.3.1038Bram Moolenaar2013-05-291-12/+14
| | | | | | Problem: Crash when using Cscope. Solution: Avoid negative argument to vim_strncpy(). (Narendran Gopalakrishnan)
* updated for version 7.3.925v7.3.925Bram Moolenaar2013-05-061-3/+2
| | | | | Problem: Typos in source files. Solution: Fix the typos. (Ken Takata)
* updated for version 7.3.211v7.3.211Bram Moolenaar2011-06-121-1/+1
| | | | | Problem: Compiler warning. Solution: Add type cast.
* updated for version 7.3.210v7.3.210Bram Moolenaar2011-06-121-16/+35
| | | | | Problem: Can't always find the file when using cscope. Solution: Add the 'cscoperelative' option. (Raghavendra D Prabhu)
* updated for version 7.3.172v7.3.172Bram Moolenaar2011-05-051-10/+5
| | | | | | | Problem: MS-Windows: rename() might delete the file if the name differs but it's actually the same file. Solution: Use the file handle to check if it's the same file. (Yukihiro Nakadaira)
* updated for version 7.3.136v7.3.136Bram Moolenaar2011-03-031-1/+0
| | | | | Problem: Duplicate include of assert.h. Solution: Remove it.