Fixing compilation and avoiding a warning with --enable-tiny.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4911 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-05-26 07:53:20 +00:00
parent 5a86c522bb
commit c3c2c66697
3 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2014-05-26 Benno Schulenberg <bensberg@justemail.net>
* src/cut.c (cut_line): Fix compilation with --enable-tiny.
* src/text.c (do_linter): Avoid a warning with --enable-tiny.
2014-05-25 Benno Schulenberg <bensberg@justemail.net> 2014-05-25 Benno Schulenberg <bensberg@justemail.net>
* src/global.c: Cut down on the size of tiny nano, by not compiling * src/global.c: Cut down on the size of tiny nano, by not compiling
the function strtosc() when --disable-nanorc is given or implied. the function strtosc() when --disable-nanorc is given or implied.

View File

@ -44,8 +44,10 @@ void cutbuffer_reset(void)
* current line. */ * current line. */
void cut_line(void) void cut_line(void)
{ {
#ifndef NANO_TINY
if (!openfile->mark_begin) if (!openfile->mark_begin)
openfile->mark_begin = openfile->current; openfile->mark_begin = openfile->current;
#endif
if (openfile->current != openfile->filebot) if (openfile->current != openfile->filebot)
move_to_filestruct(&cutbuffer, &cutbottom, openfile->current, 0, move_to_filestruct(&cutbuffer, &cutbottom, openfile->current, 0,

View File

@ -3297,7 +3297,9 @@ void do_linter(void)
} }
} }
blank_statusbar(); blank_statusbar();
#ifndef NANO_TINY
free_lints_and_return: free_lints_and_return:
#endif
for (tmplint = lints; tmplint != NULL; tmplint = tmplint->next) { for (tmplint = lints; tmplint != NULL; tmplint = tmplint->next) {
free(tmplint->msg); free(tmplint->msg);
free(tmplint->filename); free(tmplint->filename);