aboutsummaryrefslogtreecommitdiff
path: root/japanese/xjtext/files/patch-lex.l
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/xjtext/files/patch-lex.l')
-rw-r--r--japanese/xjtext/files/patch-lex.l22
1 files changed, 22 insertions, 0 deletions
diff --git a/japanese/xjtext/files/patch-lex.l b/japanese/xjtext/files/patch-lex.l
new file mode 100644
index 000000000000..3bddce729494
--- /dev/null
+++ b/japanese/xjtext/files/patch-lex.l
@@ -0,0 +1,22 @@
+--- lex.l.orig Sat Sep 4 22:45:16 1999
++++ lex.l Mon May 16 15:55:19 2005
+@@ -1,8 +1,8 @@
+ %{
+-#include <stdio.h>
+-#include <string.h>
+-#include <stream.h>
+-#include <ctype.h>
++#include <cstdio>
++#include <cstring>
++#include <iostream>
++#include <cctype>
+ #include "parsing.h"
+ #include "parser.tab.h"
+ int LineNumber= 0;
+@@ -72,5 +72,5 @@
+ %%
+
+ int yyerror(char* Error)
+-{ cerr << form("%s:%d: %s.\n",FileName,LineNumber+1,Error); return 0;}
++{ cerr << "%s:%d: %s.\n",FileName,LineNumber+1,Error; return 0;}
+