mirror of git://git.sv.gnu.org/nano.git
A few more comment tweaks.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4878 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
d1238c02d3
commit
044e4d2ae0
|
@ -8,6 +8,7 @@
|
||||||
* src/global.c (replace_scs_for): Condense the function a bit.
|
* src/global.c (replace_scs_for): Condense the function a bit.
|
||||||
* src/help.c (help_init): No need to keep looping when two are found.
|
* src/help.c (help_init): No need to keep looping when two are found.
|
||||||
* src/global.c: Improve compilation with --disable-browser.
|
* src/global.c: Improve compilation with --disable-browser.
|
||||||
|
* src/nano.h, src/*.c: A few more comment tweaks.
|
||||||
|
|
||||||
2014-05-12 Benno Schulenberg <bensberg@justemail.net>
|
2014-05-12 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c (do_spell): Provide startup feedback, as for the linter.
|
* src/text.c (do_spell): Provide startup feedback, as for the linter.
|
||||||
|
|
|
@ -2517,7 +2517,7 @@ int diralphasort(const void *va, const void *vb)
|
||||||
/* Standard function brain damage: We should be sorting
|
/* Standard function brain damage: We should be sorting
|
||||||
* alphabetically and case-insensitively according to the current
|
* alphabetically and case-insensitively according to the current
|
||||||
* locale, but there's no standard strcasecoll() function, so we
|
* locale, but there's no standard strcasecoll() function, so we
|
||||||
* have to use multibyte strcasecmp() instead, */
|
* have to use multibyte strcasecmp() instead. */
|
||||||
return mbstrcasecmp(a, b);
|
return mbstrcasecmp(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Suppress warnings for __attribute__((warn_unused_result)) */
|
/* Suppress warnings for __attribute__((warn_unused_result)). */
|
||||||
#define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0)
|
#define IGNORE_CALL_RESULT(call) do { if (call) {} } while(0)
|
||||||
|
|
||||||
/* Macros for flags. */
|
/* Macros for flags. */
|
||||||
|
|
|
@ -319,7 +319,7 @@ void do_statusbar_output(char *output, size_t output_len, bool
|
||||||
char_buf_len)))
|
char_buf_len)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* More dangerousness fun =) */
|
/* More dangerousness fun. =) */
|
||||||
answer = charealloc(answer, answer_len + (char_buf_len * 2));
|
answer = charealloc(answer, answer_len + (char_buf_len * 2));
|
||||||
|
|
||||||
assert(statusbar_x <= answer_len);
|
assert(statusbar_x <= answer_len);
|
||||||
|
|
|
@ -948,7 +948,7 @@ void parse_linter(char *ptr)
|
||||||
if (endsyntax->linter != NULL)
|
if (endsyntax->linter != NULL)
|
||||||
free(endsyntax->linter);
|
free(endsyntax->linter);
|
||||||
|
|
||||||
/* Let them unset the linter by using "" */
|
/* Let them unset the linter by using "". */
|
||||||
if (!strcmp(ptr, "\"\""))
|
if (!strcmp(ptr, "\"\""))
|
||||||
endsyntax->linter = NULL;
|
endsyntax->linter = NULL;
|
||||||
else
|
else
|
||||||
|
|
|
@ -2000,7 +2000,7 @@ char *display_string(const char *buf, size_t start_col, size_t len, bool
|
||||||
}
|
}
|
||||||
/* If buf contains a control character, interpret it. If buf
|
/* If buf contains a control character, interpret it. If buf
|
||||||
* contains an invalid multibyte control character, display it
|
* contains an invalid multibyte control character, display it
|
||||||
* as such.*/
|
* as such. */
|
||||||
} else if (is_cntrl_mbchar(buf_mb)) {
|
} else if (is_cntrl_mbchar(buf_mb)) {
|
||||||
char *ctrl_buf_mb = charalloc(mb_cur_max());
|
char *ctrl_buf_mb = charalloc(mb_cur_max());
|
||||||
int ctrl_buf_mb_len, i;
|
int ctrl_buf_mb_len, i;
|
||||||
|
|
Loading…
Reference in New Issue