summaryrefslogtreecommitdiff
path: root/devel/doc++/patches/patch-src_doc2dbxml.ll
diff options
context:
space:
mode:
Diffstat (limited to 'devel/doc++/patches/patch-src_doc2dbxml.ll')
-rw-r--r--devel/doc++/patches/patch-src_doc2dbxml.ll49
1 files changed, 47 insertions, 2 deletions
diff --git a/devel/doc++/patches/patch-src_doc2dbxml.ll b/devel/doc++/patches/patch-src_doc2dbxml.ll
index 9fd89532156..f42837687e6 100644
--- a/devel/doc++/patches/patch-src_doc2dbxml.ll
+++ b/devel/doc++/patches/patch-src_doc2dbxml.ll
@@ -1,6 +1,6 @@
-$NetBSD: patch-src_doc2dbxml.ll,v 1.1 2011/11/25 21:38:09 joerg Exp $
+$NetBSD: patch-src_doc2dbxml.ll,v 1.2 2013/04/30 22:16:12 joerg Exp $
---- src/doc2dbxml.ll.orig 2011-11-25 17:19:02.000000000 +0000
+--- src/doc2dbxml.ll.orig 2002-05-09 06:11:14.000000000 +0000
+++ src/doc2dbxml.ll
@@ -25,12 +25,14 @@
@@ -19,3 +19,48 @@ $NetBSD: patch-src_doc2dbxml.ll,v 1.1 2011/11/25 21:38:09 joerg Exp $
#include "classgraph.h"
#include "doc.h"
+@@ -56,7 +58,7 @@ static int skip = 0;
+ static int tab = 0;
+ static int yyLineNr = 0;
+ static Entry* ref = 0;
+-static Entry* noref = ref + 1;
++static Entry* noref = ::ref + 1;
+ static char yyFileName[264];
+ static bool mathmode = false;
+ static int tabFlag = 0;
+@@ -145,28 +147,28 @@ static void closeVerbMode()
+ }
+
+ <Ref>[^}]* {
+- if(ref == 0)
++ if(::ref == 0)
+ {
+ McString tmp = yytext;
+- ref = getRefEntry(tmp, current);
++ ::ref = getRefEntry(tmp, current);
+ }
+ REJECT;
+ }
+
+ <Ref>"}" {
+- if(ref && ref != noref)
++ if(::ref && ::ref != noref)
+ {
+ fprintf(out, " ($\\rightarrow$ ");
+- if(MAKE_DOC(ref))
++ if(MAKE_DOC(::ref))
+ {
+- ref->dumpNumber(out);
++ ::ref->dumpNumber(out);
+ fprintf(out, ",");
+ }
+ fprintf(out, " {\\em page }\\pageref{cxx.");
+- ref->dumpNumber(out);
++ ::ref->dumpNumber(out);
+ fprintf(out, "})");
+ }
+- ref = 0;
++ ::ref = 0;
+ BEGIN(0);
+ }
+