nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER


From: David Benbennick
Subject: [Nano-devel] definition of filestruct with ENABLE_MULTIBUFFER
Date: Sun, 10 Mar 2002 13:56:59 -0500 (EST)

In proto.h, there is an unused variable posible_max:

--- nano/proto.h        Sat Mar  9 20:22:21 2002
+++ nano-working/proto.h        Sun Mar 10 13:49:10 2002
@@ -30,7 +30,7 @@
 #include "nano.h"
 
 extern int editwinrows;
-extern int current_x, current_y, posible_max, totlines;
+extern int current_x, current_y, totlines;
 extern int placewewant;
 extern int mark_beginx, samelinewrap;
 extern long totsize;


Also, in nano.h, the filestruct type is being used for two different
things when it shouldn't be.  That is, each row of each file is a
filestruct containing data, a lineno, and prev and next pointers.  BUT, if
ENABLE_MULTIBUFFER is on, each row also has 7 file-list variables.

The result is that the structure goes from 16 to 44 bytes (on my
system) when ENABLE_MULTIBUFFER is turned on.

There should be two different structures: one for lines in each file, and
one for the list of files.  Shall I submit a patch with that change?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]