libk  Diff

Differences From Artifact [5422b4d7e5]:

To Artifact [23075063af]:


     1      1   BEGIN {
     2         -	if (out == "header") {
            2  +	if (out == "h") {
     3      3   		print "#ifndef KIplatform_syscalls"
     4      4   		print "#define KIplatform_syscalls"
     5         -		print "enum /* syscall numbers */ {"
            5  +		print "enum k_platform_syscall {"
     6      6   	}
     7      7   }
     8      8   
     9         -out == "header" { print "\tk_platform_syscall_"$1" = "$2"," }
    10         -out == "asm"    { print "%define sys."$1" "$2 }
            9  +out == "h" { print "\tk_platform_syscall_"$1" = "$2"," } # c header
           10  +out == "s" { print "%define sys."$1" "$2 } # assembly
    11     11   
    12     12   END {
    13         -	if (out == "header") {
    14         -		print "}"
           13  +	if (out == "h") {
           14  +		print "};"
    15     15   		print "#endif"
    16     16   	}
    17     17   }