create core package
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
--- main.c.orig 2002-12-17 14:28:54.000000000 -0500
|
||||
+++ main.c 2002-12-17 14:29:31.000000000 -0500
|
||||
@@ -264,9 +264,9 @@
|
||||
text_file_name[len + 5] = 't';
|
||||
union_file_name[len + 5] = 'u';
|
||||
|
||||
- mktemp(action_file_name);
|
||||
- mktemp(text_file_name);
|
||||
- mktemp(union_file_name);
|
||||
+ mkstemp(action_file_name);
|
||||
+ mkstemp(text_file_name);
|
||||
+ mkstemp(union_file_name);
|
||||
|
||||
len = strlen(file_prefix);
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
diff -Naur yacc-1.9.1-orig/skeleton.c yacc-1.9.1/skeleton.c
|
||||
--- yacc-1.9.1-orig/skeleton.c 2008-07-17 20:01:30.000000000 +0300
|
||||
+++ yacc-1.9.1/skeleton.c 2008-07-17 20:02:55.000000000 +0300
|
||||
@@ -18,6 +18,7 @@
|
||||
"/*static char yysccsid[] = \"from: @(#)yaccpar 1.9 (Berkeley) 02/21/93\";*/",
|
||||
"static char yyrcsid[] = \"$Id: skeleton.c,v 1.2 1997/06/23 02:51:17 tdukes Exp $\";",
|
||||
"#endif",
|
||||
+ "#include <string.h>",
|
||||
"#define YYBYACC 1",
|
||||
"#define YYMAJOR 1",
|
||||
"#define YYMINOR 9",
|
||||
@@ -226,7 +227,10 @@
|
||||
" YYPREFIX, yystate, yyn, yyrule[yyn]);",
|
||||
"#endif",
|
||||
" yym = yylen[yyn];",
|
||||
- " yyval = yyvsp[1-yym];",
|
||||
+ " if (yym)",
|
||||
+ " yyval = yyvsp[1-yym];",
|
||||
+ " else",
|
||||
+ " memset(&yyval, 0, sizeof yyval);",
|
||||
" switch (yyn)",
|
||||
" {",
|
||||
0
|
||||
@@ -0,0 +1,24 @@
|
||||
--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000
|
||||
+++ byacc-1.9/defs.h Sat May 6 21:11:22 2000
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <assert.h>
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
-
|
||||
+#include <string.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
/* machine-dependent definitions */
|
||||
/* the following definitions are for the Tahoe */
|
||||
@@ -280,10 +281,3 @@
|
||||
extern int errno;
|
||||
|
||||
|
||||
-/* system functions */
|
||||
-
|
||||
-extern void free();
|
||||
-extern char *calloc();
|
||||
-extern char *malloc();
|
||||
-extern char *realloc();
|
||||
-extern char *strcpy();
|
||||
|
||||
Reference in New Issue
Block a user