Module Name: src Committed By: msaitoh Date: Tue Aug 21 08:22:33 UTC 2018
Modified Files: src/sys/rump/include/rump: makerumpdefs.sh Log Message: rumpdefs.h, rumperr.h and rumperrno2host.h are generated from makerumpdefs.sh. Don't edit those files directly. Use __inline instead of inline in the script file. OK'd by christos. To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/sys/rump/include/rump/makerumpdefs.sh Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/rump/include/rump/makerumpdefs.sh diff -u src/sys/rump/include/rump/makerumpdefs.sh:1.29 src/sys/rump/include/rump/makerumpdefs.sh:1.30 --- src/sys/rump/include/rump/makerumpdefs.sh:1.29 Tue Feb 2 01:15:24 2016 +++ src/sys/rump/include/rump/makerumpdefs.sh Tue Aug 21 08:22:33 2018 @@ -8,7 +8,7 @@ echo Generating rumpdefs.h rm -f rumpdefs.h exec 3>&1 > rumpdefs.h -printf '/* $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 pooka Exp $ */\n\n' +printf '/* $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $ */\n\n' printf '/*\n *\tAUTOMATICALLY GENERATED. DO NOT EDIT.\n */\n\n' printf '#ifndef _RUMP_RUMPDEFS_H_\n' printf '#define _RUMP_RUMPDEFS_H_\n\n' @@ -135,12 +135,12 @@ exec 1>&3 echo Generating rumperr.h rm -f rumperr.h exec > rumperr.h -printf '/* $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 pooka Exp $ */\n\n' +printf '/* $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $ */\n\n' printf '/*\n *\tAUTOMATICALLY GENERATED. DO NOT EDIT.\n */\n' fromvers ../../../sys/errno.h -printf "\nstatic inline const char *\nrump_strerror(int error)\n{\n\n" +printf "\nstatic __inline const char *\nrump_strerror(int error)\n{\n\n" printf "\tswitch (error) {\n\tcase 0:\n" printf "\t\t return \"No error: zero, zip, zilch, none!\";\n" awk '/^#define[ ]*E.*[0-9]/{ @@ -176,13 +176,13 @@ fi echo Generating rumperrno2host.h 1>&3 rm -f rumperrno2host.h exec > rumperrno2host.h -printf '/* $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 pooka Exp $ */\n\n' +printf '/* $NetBSD: makerumpdefs.sh,v 1.30 2018/08/21 08:22:33 msaitoh Exp $ */\n\n' printf '/*\n *\tAUTOMATICALLY GENERATED. DO NOT EDIT.\n */\n' fromvers ../../../sys/errno.h printf "\n#ifndef ERANGE\n#error include ISO C style errno.h first\n#endif\n" -printf "\nstatic inline int \nrump_errno2host(int rumperrno)\n{\n\n" +printf "\nstatic __inline int \nrump_errno2host(int rumperrno)\n{\n\n" printf "\tswitch (rumperrno) {\n\tcase 0:\n" printf "\t\t return 0;\n" awk '/^#define[ ]*E.*[0-9]/{