chiark / gitweb /
parse-proto-spec makes a nice macro list
authorian <ian>
Tue, 31 May 2005 22:56:52 +0000 (22:56 +0000)
committerian <ian>
Tue, 31 May 2005 22:56:52 +0000 (22:56 +0000)
hostside/parse-proto-spec

index a15db77ecd28f6333562bae042ee8ef46f9e9f93..3b1507737da815efd804217b1943d1805828b725 100755 (executable)
@@ -46,7 +46,8 @@ while (<>) {
        $ybit= oct("0b$ybit");
     }
     for $yval ($ybit ? (0,1) : '') {
-       printf("%s( %-16s, 0x%02x, %2d )\n",
+       printf("%s( %-12s 0x%02x, %2d )\n",
+              $dname,
               sprintf("%s%s,",$cname, $yval),
               oct("0b$opcode") | $ybit *$yval,
               $arglen)