File: tao-fix-parser-types.patch

package info (click to toggle)
guix 1.4.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 161,500 kB
  • sloc: lisp: 861,023; cpp: 10,741; javascript: 9,632; sh: 8,913; makefile: 951; ansic: 558; python: 129; sql: 33; sed: 16
file content (26 lines) | stat: -rw-r--r-- 622 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Taken from Debian:
https://salsa.debian.org/multimedia-team/taopm/-/raw/master/debian/patches/02-fix-parser-yyerror.diff

Description: Use a constant char, dummy comment.
Author: Tiago Bortoletto Vaz <tiago@debian.org>
Last-Update: 2013-04-17
--- a/taoparse/taoparser.yy
+++ b/taoparse/taoparser.yy
@@ -23,7 +23,7 @@
 #include <stdio.h>
 #include "taoparserdefs.h"
 
-int yyerror(char *s);
+int yyerror(const char *s);
 
 //#ifdef LINUX
 int yylex(void);
@@ -2924,7 +2924,7 @@
     } 
 
 
-int yyerror (char *s)
+int yyerror (const char *s)
     {
     parse_error(what_I_expected_here);
     std::cout << "PARSE_FAILED";