[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] maint: regen src/parse-gram.[ch]
From: |
Jim Meyering |
Subject: |
[PATCH 3/3] maint: regen src/parse-gram.[ch] |
Date: |
Thu, 3 May 2012 23:18:31 +0200 |
From: Jim Meyering <address@hidden>
---
src/parse-gram.c | 8 +++-----
src/parse-gram.h | 12 ++++++------
2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/src/parse-gram.c b/src/parse-gram.c
index 7c87fce..e1c32cc 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 2.5.831-f2f0-dirty. */
+/* A Bison parser, made by GNU Bison 2.5.832-4247-dirty. */
/* Bison implementation for Yacc-like parsers in C
@@ -44,7 +44,7 @@
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.5.831-f2f0-dirty"
+#define YYBISON_VERSION "2.5.832-4247-dirty"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -3411,9 +3411,7 @@ add_param (param_type type, char *decl, location loc)
name_len++)
continue;
- name = xmalloc (name_len + 1);
- memcpy (name, name_start, name_len);
- name[name_len] = '\0';
+ name = xstrdup (name_start);
if (type & param_lex)
muscle_pair_list_grow ("lex_param", decl, name);
if (type & param_parse)
diff --git a/src/parse-gram.h b/src/parse-gram.h
index 95dca48..e39b4f1 100644
--- a/src/parse-gram.h
+++ b/src/parse-gram.h
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 2.4.687-d4fc-dirty. */
+/* A Bison parser, made by GNU Bison 2.5.832-4247-dirty. */
/* Bison interface for Yacc-like parsers in C
@@ -30,7 +30,7 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* "%code requires" blocks. */
-/* Line 2003 of yacc.c */
+/* Line 2005 of yacc.c */
#line 220 "src/parse-gram.y"
# ifndef PARAM_TYPE
@@ -45,7 +45,7 @@
# endif
-/* Line 2003 of yacc.c */
+/* Line 2005 of yacc.c */
#line 50 "src/parse-gram.h"
/* Tokens. */
@@ -174,7 +174,7 @@
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
-/* Line 2003 of yacc.c */
+/* Line 2005 of yacc.c */
#line 106 "src/parse-gram.y"
assoc assoc;
@@ -187,13 +187,13 @@ typedef union YYSTYPE
uniqstr uniqstr;
unsigned char character;
-/* Line 2003 of yacc.c */
+/* Line 2005 of yacc.c */
#line 244 "src/parse-gram.y"
param_type param;
-/* Line 2003 of yacc.c */
+/* Line 2005 of yacc.c */
#line 198 "src/parse-gram.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
--
1.7.10.1.433.g34875f4
- nuke strncpy, Jim Meyering, 2012/05/03
- [PATCH 1/3] maint: s/strncpy/memcpy/, when equivalent, Jim Meyering, 2012/05/03
- [PATCH 3/3] maint: regen src/parse-gram.[ch],
Jim Meyering <=
- [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/03
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/04
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/04
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/05
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/09