bye bye ksh/ksh_limval.h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

bye bye ksh/ksh_limval.h

Nicholas Marriott-2
ok?


Index: PROJECTS
===================================================================
RCS file: /cvs/src/bin/ksh/PROJECTS,v
retrieving revision 1.7
diff -u -p -r1.7 PROJECTS
--- PROJECTS 28 Nov 2013 10:33:37 -0000 1.7
+++ PROJECTS 14 Sep 2015 07:53:30 -0000
@@ -109,6 +109,3 @@ Things to be done in pdksh (see also the
 
  * teach shf_vfprintf() about long long's (%lld); also make %p use
   long longs if appropriate.
-
- * decide wether to keep currently disabled FP stuff in shf.c; if
-  not, eliminate ksh_limval.h (moving BITS to var.c).
Index: ksh_limval.h
===================================================================
RCS file: ksh_limval.h
diff -N ksh_limval.h
--- ksh_limval.h 13 Sep 2015 19:43:42 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,9 +0,0 @@
-/* $OpenBSD: ksh_limval.h,v 1.3 2015/09/13 19:43:42 tedu Exp $ */
-
-/* Wrapper around the values.h/limits.h includes/ifdefs */
-
-/* limits.h is included in sh.h */
-
-#ifndef BITS
-# define BITS(t) (CHAR_BIT * sizeof(t))
-#endif
Index: sh.h
===================================================================
RCS file: /cvs/src/bin/ksh/sh.h,v
retrieving revision 1.35
diff -u -p -r1.35 sh.h
--- sh.h 10 Sep 2015 22:48:58 -0000 1.35
+++ sh.h 14 Sep 2015 07:53:30 -0000
@@ -52,6 +52,8 @@ typedef int Tflag;
 #define NUFILE 32 /* Number of user-accessible files */
 #define FDBASE 10 /* First file usable by Shell */
 
+#define BITS(t) (CHAR_BIT * sizeof(t))
+
 /* Make MAGIC a char that might be printed to make bugs more obvious, but
  * not a char that is used often.  Also, can't use the high bit as it causes
  * portability problems (calling strchr(x, 0x80|'x') is error prone).
Index: shf.c
===================================================================
RCS file: /cvs/src/bin/ksh/shf.c,v
retrieving revision 1.17
diff -u -p -r1.17 shf.c
--- shf.c 13 Sep 2015 19:43:42 -0000 1.17
+++ shf.c 14 Sep 2015 07:53:30 -0000
@@ -6,7 +6,6 @@
 
 #include "sh.h"
 #include <sys/stat.h>
-#include "ksh_limval.h"
 
 
 /* flags to shf_emptybuf() */
Index: var.c
===================================================================
RCS file: /cvs/src/bin/ksh/var.c,v
retrieving revision 1.44
diff -u -p -r1.44 var.c
--- var.c 10 Sep 2015 11:37:42 -0000 1.44
+++ var.c 14 Sep 2015 07:53:30 -0000
@@ -2,7 +2,6 @@
 
 #include "sh.h"
 #include <time.h>
-#include "ksh_limval.h"
 #include <sys/stat.h>
 #include <ctype.h>