aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-11-28 23:14:31 -0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-11-28 17:20:07 -0800
commit9744421f3ca0a6f812182b52745dcfabdcb987f8 (patch)
treed045f106d92109414229748cb5bdacd9f73a50d9
parenta1891f8efcfdd78dc2f0494f8abad2dc366b6f29 (diff)
downloaduemacs-9744421f3ca0a6f812182b52745dcfabdcb987f8.tar.gz
uemacs: Move MAXNLINE constant from estruct.h to file.c
This constant is used only there, so there is no reason for it to be in estruct.h Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--estruct.h4
-rw-r--r--file.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/estruct.h b/estruct.h
index 9105703..86361ed 100644
--- a/estruct.h
+++ b/estruct.h
@@ -242,10 +242,6 @@
#define CTLX 0x0400 /* ^X flag, or'ed in */
#define SPEC 0x0800 /* special key (function keys) */
-#if PKCODE
-#define MAXNLINE 10000000 /* max lines from one file */
-#endif
-
#ifdef FALSE
#undef FALSE
#endif
diff --git a/file.c b/file.c
index 29529c3..f3c980c 100644
--- a/file.c
+++ b/file.c
@@ -15,6 +15,11 @@
#include "efunc.h"
#include "line.h"
+#if defined(PKCODE)
+/* Max number of lines from one file. */
+#define MAXNLINE 10000000
+#endif
+
/*
* Read a file into the current
* buffer. This is really easy; all you do it