PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ yydestruct()

static void yydestruct ( const char *  yymsg,
int  yytype,
YYSTYPE yyvaluep,
YYLTYPE yylocationp 
)
static

Definition at line 1399 of file lwin_wkt_parse.c.

References lwgeom_free(), ptarray_free(), YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.

Referenced by yyparse().

1400 {
1401  YYUSE (yyvaluep);
1402  YYUSE (yylocationp);
1403  if (!yymsg)
1404  yymsg = "Deleting";
1405  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1406 
1408  switch (yytype)
1409  {
1410  case 28: /* geometry_no_srid */
1411 #line 190 "lwin_wkt_parse.y" /* yacc.c:1257 */
1412  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1413 #line 1391 "lwin_wkt_parse.c" /* yacc.c:1257 */
1414  break;
1415 
1416  case 29: /* geometrycollection */
1417 #line 191 "lwin_wkt_parse.y" /* yacc.c:1257 */
1418  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1419 #line 1397 "lwin_wkt_parse.c" /* yacc.c:1257 */
1420  break;
1421 
1422  case 31: /* multisurface */
1423 #line 198 "lwin_wkt_parse.y" /* yacc.c:1257 */
1424  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1425 #line 1403 "lwin_wkt_parse.c" /* yacc.c:1257 */
1426  break;
1427 
1428  case 32: /* surface_list */
1429 #line 177 "lwin_wkt_parse.y" /* yacc.c:1257 */
1430  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1431 #line 1409 "lwin_wkt_parse.c" /* yacc.c:1257 */
1432  break;
1433 
1434  case 33: /* tin */
1435 #line 205 "lwin_wkt_parse.y" /* yacc.c:1257 */
1436  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1437 #line 1415 "lwin_wkt_parse.c" /* yacc.c:1257 */
1438  break;
1439 
1440  case 34: /* polyhedralsurface */
1441 #line 204 "lwin_wkt_parse.y" /* yacc.c:1257 */
1442  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1443 #line 1421 "lwin_wkt_parse.c" /* yacc.c:1257 */
1444  break;
1445 
1446  case 35: /* multipolygon */
1447 #line 197 "lwin_wkt_parse.y" /* yacc.c:1257 */
1448  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1449 #line 1427 "lwin_wkt_parse.c" /* yacc.c:1257 */
1450  break;
1451 
1452  case 36: /* polygon_list */
1453 #line 178 "lwin_wkt_parse.y" /* yacc.c:1257 */
1454  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1455 #line 1433 "lwin_wkt_parse.c" /* yacc.c:1257 */
1456  break;
1457 
1458  case 37: /* patch_list */
1459 #line 179 "lwin_wkt_parse.y" /* yacc.c:1257 */
1460  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1461 #line 1439 "lwin_wkt_parse.c" /* yacc.c:1257 */
1462  break;
1463 
1464  case 38: /* polygon */
1465 #line 201 "lwin_wkt_parse.y" /* yacc.c:1257 */
1466  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1467 #line 1445 "lwin_wkt_parse.c" /* yacc.c:1257 */
1468  break;
1469 
1470  case 39: /* polygon_untagged */
1471 #line 203 "lwin_wkt_parse.y" /* yacc.c:1257 */
1472  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1473 #line 1451 "lwin_wkt_parse.c" /* yacc.c:1257 */
1474  break;
1475 
1476  case 40: /* patch */
1477 #line 202 "lwin_wkt_parse.y" /* yacc.c:1257 */
1478  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1479 #line 1457 "lwin_wkt_parse.c" /* yacc.c:1257 */
1480  break;
1481 
1482  case 41: /* curvepolygon */
1483 #line 188 "lwin_wkt_parse.y" /* yacc.c:1257 */
1484  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1485 #line 1463 "lwin_wkt_parse.c" /* yacc.c:1257 */
1486  break;
1487 
1488  case 42: /* curvering_list */
1489 #line 175 "lwin_wkt_parse.y" /* yacc.c:1257 */
1490  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1491 #line 1469 "lwin_wkt_parse.c" /* yacc.c:1257 */
1492  break;
1493 
1494  case 43: /* curvering */
1495 #line 189 "lwin_wkt_parse.y" /* yacc.c:1257 */
1496  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1497 #line 1475 "lwin_wkt_parse.c" /* yacc.c:1257 */
1498  break;
1499 
1500  case 44: /* patchring_list */
1501 #line 185 "lwin_wkt_parse.y" /* yacc.c:1257 */
1502  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1503 #line 1481 "lwin_wkt_parse.c" /* yacc.c:1257 */
1504  break;
1505 
1506  case 45: /* ring_list */
1507 #line 184 "lwin_wkt_parse.y" /* yacc.c:1257 */
1508  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1509 #line 1487 "lwin_wkt_parse.c" /* yacc.c:1257 */
1510  break;
1511 
1512  case 46: /* patchring */
1513 #line 174 "lwin_wkt_parse.y" /* yacc.c:1257 */
1514  { ptarray_free(((*yyvaluep).ptarrayvalue)); }
1515 #line 1493 "lwin_wkt_parse.c" /* yacc.c:1257 */
1516  break;
1517 
1518  case 47: /* ring */
1519 #line 173 "lwin_wkt_parse.y" /* yacc.c:1257 */
1520  { ptarray_free(((*yyvaluep).ptarrayvalue)); }
1521 #line 1499 "lwin_wkt_parse.c" /* yacc.c:1257 */
1522  break;
1523 
1524  case 48: /* compoundcurve */
1525 #line 187 "lwin_wkt_parse.y" /* yacc.c:1257 */
1526  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1527 #line 1505 "lwin_wkt_parse.c" /* yacc.c:1257 */
1528  break;
1529 
1530  case 49: /* compound_list */
1531 #line 183 "lwin_wkt_parse.y" /* yacc.c:1257 */
1532  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1533 #line 1511 "lwin_wkt_parse.c" /* yacc.c:1257 */
1534  break;
1535 
1536  case 50: /* multicurve */
1537 #line 194 "lwin_wkt_parse.y" /* yacc.c:1257 */
1538  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1539 #line 1517 "lwin_wkt_parse.c" /* yacc.c:1257 */
1540  break;
1541 
1542  case 51: /* curve_list */
1543 #line 182 "lwin_wkt_parse.y" /* yacc.c:1257 */
1544  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1545 #line 1523 "lwin_wkt_parse.c" /* yacc.c:1257 */
1546  break;
1547 
1548  case 52: /* multilinestring */
1549 #line 195 "lwin_wkt_parse.y" /* yacc.c:1257 */
1550  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1551 #line 1529 "lwin_wkt_parse.c" /* yacc.c:1257 */
1552  break;
1553 
1554  case 53: /* linestring_list */
1555 #line 181 "lwin_wkt_parse.y" /* yacc.c:1257 */
1556  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1557 #line 1535 "lwin_wkt_parse.c" /* yacc.c:1257 */
1558  break;
1559 
1560  case 54: /* circularstring */
1561 #line 186 "lwin_wkt_parse.y" /* yacc.c:1257 */
1562  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1563 #line 1541 "lwin_wkt_parse.c" /* yacc.c:1257 */
1564  break;
1565 
1566  case 55: /* linestring */
1567 #line 192 "lwin_wkt_parse.y" /* yacc.c:1257 */
1568  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1569 #line 1547 "lwin_wkt_parse.c" /* yacc.c:1257 */
1570  break;
1571 
1572  case 56: /* linestring_untagged */
1573 #line 193 "lwin_wkt_parse.y" /* yacc.c:1257 */
1574  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1575 #line 1553 "lwin_wkt_parse.c" /* yacc.c:1257 */
1576  break;
1577 
1578  case 57: /* triangle_list */
1579 #line 176 "lwin_wkt_parse.y" /* yacc.c:1257 */
1580  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1581 #line 1559 "lwin_wkt_parse.c" /* yacc.c:1257 */
1582  break;
1583 
1584  case 58: /* triangle */
1585 #line 206 "lwin_wkt_parse.y" /* yacc.c:1257 */
1586  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1587 #line 1565 "lwin_wkt_parse.c" /* yacc.c:1257 */
1588  break;
1589 
1590  case 59: /* triangle_untagged */
1591 #line 207 "lwin_wkt_parse.y" /* yacc.c:1257 */
1592  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1593 #line 1571 "lwin_wkt_parse.c" /* yacc.c:1257 */
1594  break;
1595 
1596  case 60: /* multipoint */
1597 #line 196 "lwin_wkt_parse.y" /* yacc.c:1257 */
1598  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1599 #line 1577 "lwin_wkt_parse.c" /* yacc.c:1257 */
1600  break;
1601 
1602  case 61: /* point_list */
1603 #line 180 "lwin_wkt_parse.y" /* yacc.c:1257 */
1604  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1605 #line 1583 "lwin_wkt_parse.c" /* yacc.c:1257 */
1606  break;
1607 
1608  case 62: /* point_untagged */
1609 #line 200 "lwin_wkt_parse.y" /* yacc.c:1257 */
1610  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1611 #line 1589 "lwin_wkt_parse.c" /* yacc.c:1257 */
1612  break;
1613 
1614  case 63: /* point */
1615 #line 199 "lwin_wkt_parse.y" /* yacc.c:1257 */
1616  { lwgeom_free(((*yyvaluep).geometryvalue)); }
1617 #line 1595 "lwin_wkt_parse.c" /* yacc.c:1257 */
1618  break;
1619 
1620  case 64: /* ptarray */
1621 #line 172 "lwin_wkt_parse.y" /* yacc.c:1257 */
1622  { ptarray_free(((*yyvaluep).ptarrayvalue)); }
1623 #line 1601 "lwin_wkt_parse.c" /* yacc.c:1257 */
1624  break;
1625 
1626 
1627  default:
1628  break;
1629  }
1631 }
#define YY_IGNORE_MAYBE_UNINITIALIZED_END
#define YYUSE(E)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1063
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:330
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
Here is the call graph for this function:
Here is the caller graph for this function: