Mercurial > vim
comparison src/ex_cmds.c @ 1883:c8f343a465a2 v7.2.180
updated for version 7.2-180
author | vimboss |
---|---|
date | Sun, 17 May 2009 11:33:22 +0000 |
parents | e8eeeff19eae |
children | 9230c45fdde6 |
comparison
equal
deleted
inserted
replaced
1882:c8b87fa14d27 | 1883:c8f343a465a2 |
---|---|
2253 * | 2253 * |
2254 * Check for a long line as written by viminfo_writestring(). | 2254 * Check for a long line as written by viminfo_writestring(). |
2255 * | 2255 * |
2256 * Return the string in allocated memory (NULL when out of memory). | 2256 * Return the string in allocated memory (NULL when out of memory). |
2257 */ | 2257 */ |
2258 /*ARGSUSED*/ | |
2259 char_u * | 2258 char_u * |
2260 viminfo_readstring(virp, off, convert) | 2259 viminfo_readstring(virp, off, convert) |
2261 vir_T *virp; | 2260 vir_T *virp; |
2262 int off; /* offset for virp->vir_line */ | 2261 int off; /* offset for virp->vir_line */ |
2263 int convert; /* convert the string */ | 2262 int convert UNUSED; /* convert the string */ |
2264 { | 2263 { |
2265 char_u *retval; | 2264 char_u *retval; |
2266 char_u *s, *d; | 2265 char_u *s, *d; |
2267 long len; | 2266 long len; |
2268 | 2267 |
2734 * Check if it is allowed to overwrite a file. If b_flags has BF_NOTEDITED, | 2733 * Check if it is allowed to overwrite a file. If b_flags has BF_NOTEDITED, |
2735 * BF_NEW or BF_READERR, check for overwriting current file. | 2734 * BF_NEW or BF_READERR, check for overwriting current file. |
2736 * May set eap->forceit if a dialog says it's OK to overwrite. | 2735 * May set eap->forceit if a dialog says it's OK to overwrite. |
2737 * Return OK if it's OK, FAIL if it is not. | 2736 * Return OK if it's OK, FAIL if it is not. |
2738 */ | 2737 */ |
2739 /*ARGSUSED*/ | |
2740 static int | 2738 static int |
2741 check_overwrite(eap, buf, fname, ffname, other) | 2739 check_overwrite(eap, buf, fname, ffname, other) |
2742 exarg_T *eap; | 2740 exarg_T *eap; |
2743 buf_T *buf; | 2741 buf_T *buf; |
2744 char_u *fname; /* file name to be used (can differ from | 2742 char_u *fname; /* file name to be used (can differ from |