specify pathnames for includes
[unix-history] / usr / src / sys / stand.att / sys.c
index 91c21cc..7d93341 100644 (file)
@@ -3,19 +3,21 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)sys.c       7.6 (Berkeley) %G%
+ *     @(#)sys.c       7.8 (Berkeley) %G%
  */
 
  */
 
-#include "param.h"
-#include "inode.h"
-#include "fs.h"
-#include "dir.h"
-#include "reboot.h"
+#include "sys/param.h"
+#include "sys/time.h"
+#include "sys/vnode.h"
+#include "ufs/inode.h"
+#include "ufs/fs.h"
+#include "ufs/dir.h"
+#include "sys/reboot.h"
 #include "saio.h"
 
 #include "saio.h"
 
-#define        isdigit(c)      ((c) >= '0' && (c) <= '9')
+#define        isdigit(c)      ((u_int)((c) - '0') <= 9)
 #define        isspace(c)      ((c) == ' ' || (c) == '\t')
 #define        isspace(c)      ((c) == ' ' || (c) == '\t')
-#define        isupper(c)      ((c) >= 'A' && (c) <= 'Z')
+#define        isupper(c)      ((u_int)((c) - 'A') <= 'Z' - 'A')
 #define        tolower(c)      ((c) - 'A' + 'a')
 
 ino_t  dlook();
 #define        tolower(c)      ((c) - 'A' + 'a')
 
 ino_t  dlook();