[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER
From: |
David Lawrence Ramsey |
Subject: |
Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER |
Date: |
Wed, 13 Mar 2002 09:17:04 -0800 (PST) |
--- David Benbennick <address@hidden> wrote:
>Below is a patch to allow ENABLE_MULTIBUFFER and NANO_SMALL together. The
>change is in global.c.
You'll also need to modify configure.ac, since if --enable-tiny is used,
--enable-multibuffer is turned off:
AC_ARG_ENABLE(multibuffer,
[ --enable-multibuffer Enable multiple file buffers; this is disabled if
--enable-tiny is used],
[if test x$enableval = xyes && test x$tiny_support != xyes; then
AC_DEFINE(ENABLE_MULTIBUFFER) multibuffer_support=yes
fi])
should be
AC_ARG_ENABLE(multibuffer,
[ --enable-multibuffer Enable multiple file buffers],
[if test x$enableval = xyes; then
AC_DEFINE(ENABLE_MULTIBUFFER) multibuffer_support=yes
fi])
Sorry about the lack of line numbers, since I'm not in front of my Linux box,
but it should be easy enough to find (just search it for the "this is disabled
if --enable-tiny is used" string).
>Also included is a slight fix to the get_next_filename() function of
>files.c, now allowing it to return name.INT_MAX.
Good one.
>Furthermore, I plug a tiny memory leak in nano.c (sort of silly, since it
>is in die_save_file()), and remove two redundant prototypes from proto.h.
One tiny bit about the memory leak fix: you've used eight spaces instead of a
tab. That chunk of the patch should be:
diff -u nano/nano.c nano-working/nano.c
--- nano/nano.c Sat Mar 9 15:05:26 2002
+++ nano-working/nano.c Wed Mar 13 05:59:00 2002
@@ -180,6 +180,7 @@
if (strcmp(ret, ""))
i = write_file(ret, 1, 0, 0);
name = ret;
+ free(buf);
}
if (i != -1)
_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!
_____________________________________________________________
Run a small business? Then you need professional email like address@hidden from
Everyone.net http://www.everyone.net?tag
- [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Benbennick, 2002/03/10
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/11
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/12
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Benbennick, 2002/03/13
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER,
David Lawrence Ramsey <=
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/22
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/26
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/26
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/26
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/31
- Re: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER, David Lawrence Ramsey, 2002/03/31