]> git.wh0rd.org Git - nano.git/commitdiff
Move config.h up in include lists and remove actual_x inline tag
authorChris Allegretta <chrisa@asty.org>
Sat, 28 Apr 2001 18:03:52 +0000 (18:03 +0000)
committerChris Allegretta <chrisa@asty.org>
Sat, 28 Apr 2001 18:03:52 +0000 (18:03 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@616 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
cut.c
files.c
global.c
move.c
nano.c
search.c
utils.c
winio.c

index 1286f296b5e91b074e6c4efb22133bc192985633..fb84f8c66a7710340258aca1626d68745b475ab1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
 Cvs code -
+- General:
+       - Moved config.h up in all .c files #include list (Albert Chin).
 - nano.c:
   ABCD(), main()
        - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D].
@@ -6,6 +8,9 @@ Cvs code -
   do_replace()
         - If we manage to make it in somehow with VIEW_MODE on, abort 
           nicely (fixes BUG #59).                          
+- winio.c:
+  actual_x()
+       - Remove inline from function decl (Albert Chin).
 
 nano 1.0.1 - 04/06/2001
 - General:
diff --git a/cut.c b/cut.c
index 5e8cba7569e01ced4d6df49a475e2fbdfed9b0ec..eff32e3953e70e43ee6c43c947a24a6f0e8cca60 100644 (file)
--- a/cut.c
+++ b/cut.c
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
diff --git a/files.c b/files.c
index 1d749f961913bb570ec4528b485cc545d5f1f844..1cd7b20f9f1597d8057c9c1d0e8a43303725d915 100644 (file)
--- a/files.c
+++ b/files.c
@@ -19,6 +19,8 @@
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
@@ -31,7 +33,6 @@
 #include <dirent.h>
 #include <pwd.h>
 
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
index 77af9281d62765b68c33753d88908d4b567e813e..4bab460b15a3a52e9303c934b7a9cec72412a1fc 100644 (file)
--- a/global.c
+++ b/global.c
@@ -19,8 +19,9 @@
  *                                                                        *
  **************************************************************************/
 
-#include <sys/stat.h>
 #include "config.h"
+
+#include <sys/stat.h>
 #include "nano.h"
 #include "proto.h"
 
diff --git a/move.c b/move.c
index bda2c3c84573dd37755a30bdf83a89f16bb6d656..f7a9efa85b198ed2a6474cfd0412140f9ddc7743 100644 (file)
--- a/move.c
+++ b/move.c
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <stdio.h>
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
diff --git a/nano.c b/nano.c
index 731674ea0e4524cb708d6bd7805c706ac079c0e6..7125df7b179761b1df2337e88a435ccce1d152f2 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -19,6 +19,8 @@
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdarg.h>
@@ -38,7 +40,6 @@
 #include <limits.h>
 #include <assert.h>
 
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
index 34004a77b154b3fa07964106aecd73cc9405b305..cd46ab9709069487447df1e20d826ef0ab69446f 100644 (file)
--- a/search.c
+++ b/search.c
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
 #include <stdio.h>
 #include <ctype.h>
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
diff --git a/utils.c b/utils.c
index a13964198fa8c9a9eb4ea8dfaba8b655a9e09d43..db8fc22814ca861beefb8867d88ef7f04aaa5421 100644 (file)
--- a/utils.c
+++ b/utils.c
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
 
-#include "config.h"
 #include "nano.h"
 #include "proto.h"
 
diff --git a/winio.c b/winio.c
index ab232bef0619fdd2b1e9facf6bdaf586832ab7c7..cea024b1522b1b3fbc8173f0760d3a52bd9d3fe6 100644 (file)
--- a/winio.c
+++ b/winio.c
  *                                                                        *
  **************************************************************************/
 
+#include "config.h"
+
 #include <stdarg.h>
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include "config.h"
 #include "proto.h"
 #include "nano.h"
 
@@ -127,7 +128,7 @@ int actual_x_from_start(filestruct * fileptr, int xplus, int start)
 }
 
 /* Opposite of xplustabs */
-inline int actual_x(filestruct * fileptr, int xplus)
+int actual_x(filestruct * fileptr, int xplus)
 {
     return actual_x_from_start(fileptr, xplus, 0);
 }