summaryrefslogtreecommitdiff
path: root/src/cmd/cc/lexbody
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/cc/lexbody')
-rw-r--r--src/cmd/cc/lexbody17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/cmd/cc/lexbody b/src/cmd/cc/lexbody
index d339cf9a2..5fa980267 100644
--- a/src/cmd/cc/lexbody
+++ b/src/cmd/cc/lexbody
@@ -47,15 +47,9 @@ pragvararg(void)
}
void
-pragdynimport(void)
-{
- while(getnsc() != '\n')
- ;
-}
-
-void
-pragdynexport(void)
+pragcgo(char *name)
{
+ USED(name);
while(getnsc() != '\n')
;
}
@@ -244,11 +238,16 @@ lookup(void)
symb[1] = '"';
}
- // turn · into .
for(r=w=symb; *r; r++) {
+ // turn · (U+00B7) into .
+ // turn ∕ (U+2215) into /
if((uchar)*r == 0xc2 && (uchar)*(r+1) == 0xb7) {
*w++ = '.';
r++;
+ }else if((uchar)*r == 0xe2 && (uchar)*(r+1) == 0x88 && (uchar)*(r+2) == 0x95) {
+ *w++ = '/';
+ r++;
+ r++;
}else
*w++ = *r;
}