summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ehmsen <ehmsen@gentoo.org>2006-01-25 16:09:19 +0000
committerMartin Ehmsen <ehmsen@gentoo.org>2006-01-25 16:09:19 +0000
commit223a7969e06d6c62ad3d73d2c00a5bfd3cc3372b (patch)
treec1ddea56e74f61ae852f6b40653c49fb842c4963 /dev-tex/cpp2latex/files
parentX is implicit (diff)
downloadgentoo-2-223a7969e06d6c62ad3d73d2c00a5bfd3cc3372b.tar.gz
gentoo-2-223a7969e06d6c62ad3d73d2c00a5bfd3cc3372b.tar.bz2
gentoo-2-223a7969e06d6c62ad3d73d2c00a5bfd3cc3372b.zip
Added patch and rev bump for fixing bug #44585.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-tex/cpp2latex/files')
-rw-r--r--dev-tex/cpp2latex/files/cpp2latex-2.3.patch44
-rw-r--r--dev-tex/cpp2latex/files/digest-cpp2latex-2.3-r11
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-tex/cpp2latex/files/cpp2latex-2.3.patch b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
new file mode 100644
index 000000000000..676b5ef3136c
--- /dev/null
+++ b/dev-tex/cpp2latex/files/cpp2latex-2.3.patch
@@ -0,0 +1,44 @@
+--- main.cpp Thu Mar 6 08:15:36 2003
++++ main.cpp Tue Jan 24 21:47:17 2006
+@@ -27,12 +27,14 @@
+ #include <stdio.h>
+ #include <getopt.h>
+
++using namespace std;
++
+ struct replace{
+ std::string voraus;
+ std::string ersetzt;
+ };
+
+-std::vector <replace> rules;
++std::vector<struct replace> rules;
+ std::string syntax( std::ifstream *src, char *c );
+ void initReplace();
+ bool satzzeichen( char c );
+@@ -162,9 +164,13 @@
+ if( comment && !comment1 )
+ {
+ file.get(c);
+- if(c=='/') { out+="/}"; comment=false; }
+- else { if(c=='\n') out+="\\\\"; }
+- if( !( (c=='*')||(c=='/') )) out+=c;
++ if(c=='/') {
++ out+="/}";
++ comment=false;
++ } else if (c=='\n') out+="\\\\";
++ /* .alex. 1 line substitution*/
++ else file.seekg(-1,ios::cur);
++ //if( !( (c=='*')||(c=='/') )) out+=c;
+ }
+ break;
+
+@@ -323,7 +329,7 @@
+ /** initialize the replacementrules */
+ void initReplace()
+ {
+-replace dummy;
++ struct replace dummy;
+ dummy.voraus = "and"; dummy.ersetzt = "\\textbf{and}"; rules.push_back(dummy);
+ dummy.voraus = "and_eq"; dummy.ersetzt = "\\textbf{and\\underline\\ eq}"; rules.push_back(dummy);
+ dummy.voraus = "asm"; dummy.ersetzt = "\\textbf{asm}"; rules.push_back(dummy);
diff --git a/dev-tex/cpp2latex/files/digest-cpp2latex-2.3-r1 b/dev-tex/cpp2latex/files/digest-cpp2latex-2.3-r1
new file mode 100644
index 000000000000..b7bdedaa6a38
--- /dev/null
+++ b/dev-tex/cpp2latex/files/digest-cpp2latex-2.3-r1
@@ -0,0 +1 @@
+MD5 bfe67773548df87c3e0975591f835c74 cpp2latex-2.3.tar.gz 483213