PERFORCE change 123251 for review
Zhouyi ZHOU
zhouzhouyi at FreeBSD.org
Tue Jul 10 07:41:45 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=123251
Change 123251 by zhouzhouyi at zhouzhouyi_mactest on 2007/07/10 07:41:12
include <stdlib.h> to get rid of gcc warning when compiling mactest
Affected files ...
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mactestparser.tab.c#2 edit
.. //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mactestparser.y#3 edit
Differences ...
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mactestparser.tab.c#2 (text+ko) ====
@@ -71,6 +71,7 @@
#include <math.h>
#include <ctype.h>
#include <stdio.h>
+ #include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/uio.h>
@@ -110,11 +111,11 @@
#endif
#ifndef YYSTYPE
-#line 33 "mactestparser.y"
+#line 34 "mactestparser.y"
typedef union {long itype; char * namestring; struct mactestlog_record * mtpipetype;
struct labelstrings * lstype; struct modes_or_flags * mftype;} yystype;
-/* Line 193 of /usr/local/share/bison/yacc.c. */
-#line 118 "mactestparser.tab.c"
+/* Line 188 of /usr/local/share/bison/yacc.c. */
+#line 119 "mactestparser.tab.c"
# define YYSTYPE yystype
# define YYSTYPE_IS_TRIVIAL 1
#endif
@@ -135,7 +136,7 @@
/* Line 213 of /usr/local/share/bison/yacc.c. */
-#line 139 "mactestparser.tab.c"
+#line 140 "mactestparser.tab.c"
#if ! defined (yyoverflow) || YYERROR_VERBOSE
@@ -309,9 +310,9 @@
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const unsigned char yyrline[] =
{
- 0, 52, 52, 54, 58, 60, 61, 64, 66, 68,
- 70, 73, 75, 76, 79, 81, 82, 85, 89, 91,
- 92, 95, 98, 101
+ 0, 53, 53, 55, 59, 61, 62, 65, 67, 69,
+ 71, 74, 76, 77, 80, 82, 83, 86, 90, 92,
+ 93, 96, 99, 102
};
#endif
@@ -969,79 +970,79 @@
switch (yyn)
{
case 4:
-#line 59 "mactestparser.y"
+#line 60 "mactestparser.y"
{inserttail_mactestlog_record_chain(yyvsp[0].mtpipetype);}
break;
case 5:
-#line 60 "mactestparser.y"
+#line 61 "mactestparser.y"
{inserttail_mactestlog_record_chain(yyvsp[0].mtpipetype);}
break;
case 7:
-#line 65 "mactestparser.y"
+#line 66 "mactestparser.y"
{yyval.mtpipetype = new_mactestlog_record(strdup(yyvsp[-1].namestring), yyvsp[-2].itype);}
break;
case 8:
-#line 66 "mactestparser.y"
+#line 67 "mactestparser.y"
{
yyval.mtpipetype = new_mactestlog_record(stringsave, yyvsp[-3].itype);stringsave = 0;}
break;
case 9:
-#line 68 "mactestparser.y"
+#line 69 "mactestparser.y"
{
yyval.mtpipetype = new_mactestlog_record(stringsave, yyvsp[-3].itype);stringsave = 0;}
break;
case 10:
-#line 70 "mactestparser.y"
+#line 71 "mactestparser.y"
{yyval.mtpipetype = 0;}
break;
case 11:
-#line 74 "mactestparser.y"
+#line 75 "mactestparser.y"
{stringsave = strdup(yyvsp[0].namestring);}
break;
case 12:
-#line 75 "mactestparser.y"
+#line 76 "mactestparser.y"
{}
break;
case 14:
-#line 80 "mactestparser.y"
+#line 81 "mactestparser.y"
{ new_labelstrings(strdup(yyvsp[0].namestring));}
break;
case 15:
-#line 81 "mactestparser.y"
+#line 82 "mactestparser.y"
{ new_labelstrings(strdup(yyvsp[0].namestring));}
break;
case 18:
-#line 90 "mactestparser.y"
+#line 91 "mactestparser.y"
{ new_modes_or_flags(strdup(yyvsp[0].namestring));}
break;
case 19:
-#line 91 "mactestparser.y"
+#line 92 "mactestparser.y"
{ new_modes_or_flags(strdup(yyvsp[0].namestring));}
break;
case 21:
-#line 96 "mactestparser.y"
+#line 97 "mactestparser.y"
{}
break;
case 22:
-#line 99 "mactestparser.y"
+#line 100 "mactestparser.y"
{}
break;
case 23:
-#line 102 "mactestparser.y"
+#line 103 "mactestparser.y"
{}
break;
@@ -1049,7 +1050,7 @@
}
/* Line 1016 of /usr/local/share/bison/yacc.c. */
-#line 1053 "mactestparser.tab.c"
+#line 1054 "mactestparser.tab.c"
yyvsp -= yylen;
yyssp -= yylen;
@@ -1268,7 +1269,7 @@
}
-#line 107 "mactestparser.y"
+#line 108 "mactestparser.y"
int
@@ -1525,3 +1526,4 @@
}
*/
+
==== //depot/projects/soc2007/zhouzhouyi_mactest_soc/regression/mactest/mactestparser.y#3 (text+ko) ====
@@ -3,6 +3,7 @@
#include <math.h>
#include <ctype.h>
#include <stdio.h>
+ #include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/uio.h>
@@ -358,4 +359,4 @@
return 0;
}
-*/+*/
More information about the p4-projects
mailing list