summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/opsymbols.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/opsymbols.pl')
-rw-r--r--Build/source/utils/asymptote/opsymbols.pl8
1 files changed, 2 insertions, 6 deletions
diff --git a/Build/source/utils/asymptote/opsymbols.pl b/Build/source/utils/asymptote/opsymbols.pl
index 16ade5374ac..3f18388bc53 100644
--- a/Build/source/utils/asymptote/opsymbols.pl
+++ b/Build/source/utils/asymptote/opsymbols.pl
@@ -20,7 +20,7 @@ print header <<END;
// symbols.
#ifndef OPSYMBOL
-#define OPSYMBOL(str, name) extern symbol *name
+#define OPSYMBOL(str, name) extern sym::symbol name
#endif
END
@@ -31,7 +31,7 @@ sub add {
my $name = $_[1];
print header <<END;
#ifndef PRESYM
-#define $name symbol::opTrans("$sym")
+#define $name sym::symbol::opTrans("$sym")
#endif
END
}
@@ -40,14 +40,10 @@ open(lexer, "camp.l") ||
die("Couldn't open camp.l");
while (<lexer>) {
- #print $_;
- #if (m/^"(\S+)"\s+\{\s+DEFSYMBOL\((\w+)\);/) {
if (m/^"(\S+)"\s*{\s*DEFSYMBOL\((\w+)\);/) {
- print $1 . " " . $2 . "\n";
add($1, $2);
}
if (m/^(\w+)\s*{\s*DEFSYMBOL\((\w+)\);/) {
- print $1 . " " . $2 . "\n";
add($1, $2);
}
}