janitorial/white-space/dos-line-end cleanup
authorNeal Andrew Crook <neal@pippaluk.org.uk>
Thu, 7 Jul 2016 21:57:24 +0000 (22:57 +0100)
committerNeal Andrew Crook <neal@pippaluk.org.uk>
Thu, 7 Jul 2016 21:57:24 +0000 (22:57 +0100)
Applications/V7/.gitignore
Applications/rpilot-1.4.2/.gitignore [new file with mode: 0644]
Library/libs/fputs.c
Library/libs/strchr.c
Library/libs/strrchr.c

index 2c167a4..6b2838f 100644 (file)
@@ -28,8 +28,8 @@ test
 time
 tsort
 wall
-# from cmd/sh
-sh
+# from cmd/sh/
+cmd/sh/sh
 # from games/
 arithmetic
 backgammon
diff --git a/Applications/rpilot-1.4.2/.gitignore b/Applications/rpilot-1.4.2/.gitignore
new file mode 100644 (file)
index 0000000..8f25692
--- /dev/null
@@ -0,0 +1 @@
+rpilot
index 6e3f2a2..3028bad 100644 (file)
@@ -3,7 +3,7 @@
 int fputs(const void *str, FILE * fp)
 {
        register int n = 0;
-       char *s = str;
+       const char *s = str;
 
        while (*s) {
                if (putc(*s++, fp) == EOF)
index 0b0d215..d38a185 100644 (file)
@@ -1,17 +1,17 @@
-/* string.c\r
- * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>\r
- * This file is part of the Linux-8086 C library and is distributed\r
- * under the GNU Library General Public License.\r
- */  \r
-    \r
-#include <string.h>\r
-\r
-/* FIXME: asm version ?? */    \r
-/********************** Function strchr ************************************/ \r
-char *strchr(const char *s, int c) \r
+/* string.c
+ * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+
+#include <string.h>
+
+/* FIXME: asm version ?? */
+/********************** Function strchr ************************************/
+char *strchr(const char *s, int c)
 {
        register char ch;
-       \r
+
        for (;;) {
                if ((ch = *s) == c)
                        return s;
index a8c3823..223f166 100644 (file)
@@ -1,17 +1,17 @@
-/* string.c\r
- * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>\r
- * This file is part of the Linux-8086 C library and is distributed\r
- * under the GNU Library General Public License.\r
- */  \r
-    \r
-#include <string.h>\r
-    \r
-/********************** Function strrchr ************************************/ \r
-char *strrchr(const char *s, int c) \r
+/* string.c
+ * Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
+ * This file is part of the Linux-8086 C library and is distributed
+ * under the GNU Library General Public License.
+ */
+
+#include <string.h>
+
+/********************** Function strrchr ************************************/
+char *strrchr(const char *s, int c)
 {
        register const char *p = s + strlen(s);
-        \r
-       /* For null it's just like strlen */ \r
+
+       /* For null it's just like strlen */
        if (c == '\0')
                return p;
        while (p != s) {