From 0cb36265d2f76a3445823ece7944e9c1c8c0c341 Mon Sep 17 00:00:00 2001 From: Bartlomiej Puget Date: Mon, 22 Feb 2016 02:50:14 +0100 Subject: fix Xioctl-proto.defs creation * hurd/Makefile (%.h): Remove heading spaces. (%ioctl-requests.list): Protect asterisk. * hurd/gensym.awk: Do not print newline in __asm statement. --- hurd/gensym.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hurd/gensym.awk') diff --git a/hurd/gensym.awk b/hurd/gensym.awk index 6c6e1a17..e5157c39 100644 --- a/hurd/gensym.awk +++ b/hurd/gensym.awk @@ -34,7 +34,7 @@ BEGIN { # Take an arbitrarily complex C symbol or expression and constantize it. /^expr/ { - print "__asm (\""; + printf "__asm (\""; if ($3 == "") printf "* %s mAgIc%%0\" : : \"i\" (%s));\n", $2, $2; else @@ -43,7 +43,7 @@ BEGIN { # Output a symbol defining the size of a C structure. /^size/ { - print "__asm (\""; + printf "__asm (\""; if ($4 == "") printf "* %s_SIZE mAgIc%%0\" : : \"i\" (sizeof(struct %s)));\n", toupper($3), $2; @@ -54,7 +54,7 @@ BEGIN { # Output a symbol defining the byte offset of an element of a C structure. /^offset/ { - print "__asm (\""; + printf "__asm (\""; if ($5 == "") { printf "* %s_%s mAgIc%%0\" : : \"i\" (&((struct %s*)0)->%s));\n", -- cgit v1.2.3