summaryrefslogtreecommitdiff
path: root/perly.tab
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2019-09-20 10:57:54 +0100
committerDavid Mitchell <davem@iabyn.com>2019-09-23 14:42:00 +0100
commitf417cfa90670b17255b02c7dc1a88924c102479f (patch)
tree3c2b0db38c681f9aca33e93bab8bfa1900d13c3e /perly.tab
parent558b227c020be1ce3d21af4f57ae649d8a2229eb (diff)
downloadperl-f417cfa90670b17255b02c7dc1a88924c102479f.tar.gz
OP_ARGCHECK: use custom aux struct
This op is of class OP_UNOP_AUX, Ops of this class have an op_aux pointer which typically points to a variable-length malloced array of IVs, UVs, etc. However in the specific case of OP_ARGCHECK the data stored in the aux struct is fixed. So this commit casts the aux pointer to a struct containing the relevant fields (number of parameters etc), rather than referring to them as aux[0], aux[1] etc. This makes the code more readable. Should be no functional changes.
Diffstat (limited to 'perly.tab')
-rw-r--r--perly.tab46
1 files changed, 23 insertions, 23 deletions
diff --git a/perly.tab b/perly.tab
index 0691f61b19..96709112a2 100644
--- a/perly.tab
+++ b/perly.tab
@@ -17,16 +17,16 @@
/* YYNSTATES -- Number of states. */
#define YYNSTATES 556
+/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned
+ by yylex, with out-of-bounds checking. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 342
-/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
- as returned by yylex, with out-of-bounds checking. */
#define YYTRANSLATE(YYX) \
- ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
- as returned by yylex. */
+ as returned by yylex, without out-of-bounds checking. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -81,24 +81,24 @@ static const yytype_uint16 yyrline[] =
567, 571, 576, 580, 584, 585, 589, 595, 600, 605,
606, 611, 612, 617, 618, 620, 625, 627, 639, 640,
645, 647, 651, 671, 672, 674, 680, 745, 747, 753,
- 755, 759, 765, 766, 771, 772, 776, 780, 780, 837,
- 838, 843, 854, 855, 858, 869, 871, 873, 875, 879,
- 881, 886, 890, 894, 898, 904, 909, 915, 921, 923,
- 925, 928, 927, 938, 939, 943, 947, 950, 955, 960,
- 963, 967, 971, 977, 985, 992, 998, 1000, 1002, 1007,
- 1009, 1011, 1016, 1018, 1020, 1022, 1024, 1026, 1028, 1030,
- 1032, 1034, 1036, 1041, 1043, 1046, 1048, 1050, 1053, 1056,
- 1067, 1070, 1077, 1079, 1081, 1083, 1085, 1088, 1094, 1096,
- 1100, 1101, 1102, 1103, 1104, 1106, 1108, 1110, 1112, 1114,
- 1116, 1118, 1120, 1122, 1124, 1126, 1128, 1130, 1132, 1142,
- 1152, 1162, 1172, 1174, 1176, 1179, 1184, 1188, 1190, 1192,
- 1194, 1197, 1199, 1202, 1204, 1206, 1208, 1210, 1212, 1214,
- 1216, 1218, 1221, 1223, 1225, 1227, 1229, 1231, 1235, 1238,
- 1237, 1250, 1251, 1252, 1256, 1258, 1260, 1265, 1267, 1270,
- 1272, 1274, 1279, 1281, 1286, 1287, 1292, 1293, 1299, 1303,
- 1304, 1305, 1308, 1309, 1312, 1313, 1316, 1320, 1324, 1330,
- 1336, 1338, 1342, 1346, 1347, 1351, 1352, 1356, 1357, 1362,
- 1364, 1366, 1369
+ 755, 759, 765, 766, 771, 772, 776, 780, 780, 839,
+ 840, 845, 856, 857, 860, 871, 873, 875, 877, 881,
+ 883, 888, 892, 896, 900, 906, 911, 917, 923, 925,
+ 927, 930, 929, 940, 941, 945, 949, 952, 957, 962,
+ 965, 969, 973, 979, 987, 994, 1000, 1002, 1004, 1009,
+ 1011, 1013, 1018, 1020, 1022, 1024, 1026, 1028, 1030, 1032,
+ 1034, 1036, 1038, 1043, 1045, 1048, 1050, 1052, 1055, 1058,
+ 1069, 1072, 1079, 1081, 1083, 1085, 1087, 1090, 1096, 1098,
+ 1102, 1103, 1104, 1105, 1106, 1108, 1110, 1112, 1114, 1116,
+ 1118, 1120, 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1144,
+ 1154, 1164, 1174, 1176, 1178, 1181, 1186, 1190, 1192, 1194,
+ 1196, 1199, 1201, 1204, 1206, 1208, 1210, 1212, 1214, 1216,
+ 1218, 1220, 1223, 1225, 1227, 1229, 1231, 1233, 1237, 1240,
+ 1239, 1252, 1253, 1254, 1258, 1260, 1262, 1267, 1269, 1272,
+ 1274, 1276, 1281, 1283, 1288, 1289, 1294, 1295, 1301, 1305,
+ 1306, 1307, 1310, 1311, 1314, 1315, 1318, 1322, 1326, 1332,
+ 1338, 1340, 1344, 1348, 1349, 1353, 1354, 1358, 1359, 1364,
+ 1366, 1368, 1371
};
#endif
@@ -1137,6 +1137,6 @@ static const toketypes yy_type_tab[] =
};
/* Generated from:
- * 4d7581de6482210c9b2f3302b589173c8d8c0a88724cc58b659ca9dcd2a35761 perly.y
+ * 2c3a1b30e52b1e872156c881cc6e702a9c0d1be569bfa579632b5eec73ffa9ef perly.y
* 0947213b55d0ed11693554bea04987e886cf285f5c14cf9075fa1e7acc3f4061 regen_perly.pl
* ex: set ro: */