]> Cypherpunks repositories - gostls13.git/commitdiff
liblink: include missing pragmas for plan9 formatter
authorJeff Sickel <jas@corpus-callosum.com>
Wed, 22 Jan 2014 05:23:19 +0000 (06:23 +0100)
committerDavid du Colombier <0intro@gmail.com>
Wed, 22 Jan 2014 05:23:19 +0000 (06:23 +0100)
R=rsc, r, 0intro
CC=golang-codereviews
https://golang.org/cl/36060047

include/plan9/link.h
src/liblink/list5.c

index f65971efceb4b85fa81695506e8bc7d496f2be89..b499260274ecad4a3508c0a15eaa9674f61a6596 100644 (file)
@@ -3,3 +3,15 @@
 // license that can be found in the LICENSE file.
 
 #include "../link.h"
+
+#pragma        varargck        type    "@"     Addr*
+#pragma        varargck        type    "A"     int
+#pragma        varargck        type    "$"     char*
+#pragma        varargck        type    "D"     Addr*
+#pragma        varargck        type    "lD"    Addr*
+#pragma        varargck        type    "L"     int
+#pragma        varargck        type    "lS"    LSym*
+#pragma        varargck        type    "M"     Addr*
+#pragma        varargck        type    "P"     Prog*
+#pragma        varargck        type    "R"     int
+#pragma        varargck        type    "S"     char*
index ec954f6461cb1046356fb4582d8d56480a0b1016..69650e5ff3dd05dd3ae9e302ca8a9a416962257f 100644 (file)
@@ -43,7 +43,7 @@ static int    Aconv(Fmt *fp);
 static int     Dconv(Fmt *fp);
 static int     Mconv(Fmt *fp);
 static int     Pconv(Fmt *fp);
-static int     Rconv(Fmt *fp);
+static int     RAconv(Fmt *fp);
 static int     DSconv(Fmt *fp);
 
 void
@@ -54,7 +54,7 @@ listinit5(void)
        fmtinstall('$', DSconv);
        fmtinstall('M', Mconv);
        fmtinstall('D', Dconv);
-       fmtinstall('R', Rconv);
+       fmtinstall('@', RAconv);
 }
 
 static char *extra [] = {
@@ -85,10 +85,10 @@ Pconv(Fmt *fp)
                strcat(sc, ".U");
        if(a == AMOVM) {
                if(p->from.type == D_CONST)
-                       sprint(str, "   %A%s    %R,%D", a, sc, &p->from, &p->to);
+                       sprint(str, "   %A%s    %@,%D", a, sc, &p->from, &p->to);
                else
                if(p->to.type == D_CONST)
-                       sprint(str, "   %A%s    %D,%R", a, sc, &p->from, &p->to);
+                       sprint(str, "   %A%s    %D,%@", a, sc, &p->from, &p->to);
                else
                        sprint(str, "   %A%s    %D,%D", a, sc, &p->from, &p->to);
        } else
@@ -210,7 +210,7 @@ Dconv(Fmt *fp)
 }
 
 static int
-Rconv(Fmt *fp)
+RAconv(Fmt *fp)
 {
        char str[STRINGSZ];
        Addr *a;