shithub: 9ferno

Download patch

ref: 293649dd4e4cd185b9655834a7c04bf0d04aad3e
parent: 5c92b79792930589ac65a9477019719813b0931f
author: 9ferno <gophone2015@gmail.com>
date: Fri Aug 27 14:07:02 EDT 2021

moved ctype.c to libip

--- a/lib9/ctype.c	Fri Aug 27 14:04:55 2021
+++ /dev/null	Mon Oct 18 12:05:45 2021
@@ -1,24 +0,0 @@
-#include "u.h"
-#include "kern.h"
-
-uchar	_ctype[256] =
-{
-/*	 0	 1	 2	 3	 4	 5	 6	 7  */
-
-/*  0*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
-/* 10*/	_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_C,	_C,
-/* 20*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
-/* 30*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
-/* 40*/	_S|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
-/* 50*/	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
-/* 60*/	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,
-/* 70*/	_N|_X,	_N|_X,	_P,	_P,	_P,	_P,	_P,	_P,
-/*100*/	_P,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U,
-/*110*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
-/*120*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
-/*130*/	_U,	_U,	_U,	_P,	_P,	_P,	_P,	_P,
-/*140*/	_P,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L,
-/*150*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
-/*160*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
-/*170*/	_L,	_L,	_L,	_P,	_P,	_P,	_P,	_C,
-};
--- a/lib9/mkfile	Fri Aug 27 14:04:55 2021
+++ b/lib9/mkfile	Fri Aug 27 14:07:02 2021
@@ -6,7 +6,6 @@
 # files used by all models
 #
 COMMONFILES=\
-	ctype.$O\
 	convD2M.$O\
 	convM2D.$O\
 	convM2S.$O\
--- /dev/null	Mon Oct 18 12:05:45 2021
+++ b/libip/ctype.c	Fri Aug 27 14:07:02 2021
@@ -0,0 +1,24 @@
+#include "u.h"
+#include "kern.h"
+
+uchar	_ctype[256] =
+{
+/*	 0	 1	 2	 3	 4	 5	 6	 7  */
+
+/*  0*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
+/* 10*/	_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_C,	_C,
+/* 20*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
+/* 30*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,
+/* 40*/	_S|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
+/* 50*/	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,
+/* 60*/	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,
+/* 70*/	_N|_X,	_N|_X,	_P,	_P,	_P,	_P,	_P,	_P,
+/*100*/	_P,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U,
+/*110*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
+/*120*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,
+/*130*/	_U,	_U,	_U,	_P,	_P,	_P,	_P,	_P,
+/*140*/	_P,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L,
+/*150*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
+/*160*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,
+/*170*/	_L,	_L,	_L,	_P,	_P,	_P,	_P,	_C,
+};
--- a/libip/mkfile	Fri Aug 27 14:04:55 2021
+++ b/libip/mkfile	Fri Aug 27 14:07:02 2021
@@ -2,6 +2,7 @@
 
 LIB=libip.a
 OFILES=\
+	ctype.$O\
 	eipfmt.$O\
 	equivip.$O\
 	parseip.$O\