Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern recognize ^if and ^endif in input master syscall fi...



details:   https://anonhg.NetBSD.org/src/rev/2fa3a5a7ad41
branches:  trunk
changeset: 499805:2fa3a5a7ad41
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Wed Nov 29 22:09:05 2000 +0000

description:
recognize ^if and ^endif in input master syscall file specially - output it
like #if and #endif to sysdcl; this can be used to insert ifdefs
to generated *sysent.c

diffstat:

 sys/kern/makesyscalls.sh |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 35f4a8a7f6e0 -r 2fa3a5a7ad41 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Wed Nov 29 21:51:49 2000 +0000
+++ b/sys/kern/makesyscalls.sh  Wed Nov 29 22:09:05 2000 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh -
-#      $NetBSD: makesyscalls.sh,v 1.38 2000/11/13 21:32:16 jdolecek Exp $
+#      $NetBSD: makesyscalls.sh,v 1.39 2000/11/29 22:09:05 jdolecek Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -243,6 +243,15 @@
        print > sysnamesbottom
        next
 }
+$1 ~ /^if/ {
+       print "#"$0 > sysdcl
+       next
+}
+$1 ~ /^endif/ {
+       print "#"$0 > sysdcl
+       next
+}
+       
 syscall != $1 {
        printf "%s: line %d: syscall number out of sync at %d\n", \
           infile, NR, syscall



Home | Main Index | Thread Index | Old Index