You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libkate/libkate-0.3.1-noredef.patch

31 lines
1020 B

diff -up libkate-0.3.1/tools/kate_parser.y.noredef libkate-0.3.1/tools/kate_parser.y
--- libkate-0.3.1/tools/kate_parser.y.noredef 2009-01-29 00:26:44.000000000 +0100
+++ libkate-0.3.1/tools/kate_parser.y 2009-04-04 00:59:29.000000000 +0200
@@ -1012,7 +1012,7 @@ static char *expand_numeric_entities(con
return newtext;
}
-static char *getline(const char **text)
+static char *getrawline(const char **text)
{
size_t rlen0;
int newline,in_newline=0;
@@ -1020,7 +1020,7 @@ static char *getline(const char **text)
int c;
if (!text || !*text) {
- yyerror("error: getline passed invalid text pointer");
+ yyerror("error: getrawline passed invalid text pointer");
exit(-1);
}
@@ -1126,7 +1126,7 @@ static char *trimtext(const char *text)
char *newtext=(char*)kate_malloc(1);
*newtext=0;
while (text && *text) {
- char *line=getline(&text);
+ char *line=getrawline(&text);
char *trimmed=trimline(line);
kate_free(line);
if (*trimmed && strcmp(trimmed,"\n")) {