PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void yydestruct ( char *  yymsg,
int  yytype,
YYSTYPE yyvaluep,
YYLTYPE yylocationp 
) const
static

Definition at line 1467 of file lwin_wkt_parse.c.

References YYSTYPE::geometryvalue, lwgeom_free(), ptarray_free(), YYSTYPE::ptarrayvalue, YY_SYMBOL_PRINT, and YYUSE.

Referenced by yyparse().

1473 {
1474  YYUSE (yyvaluep);
1475  YYUSE (yylocationp);
1476 
1477  if (!yymsg)
1478  yymsg = "Deleting";
1479  YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
1480 
1481  switch (yytype)
1482  {
1483  case 28: /* "geometry_no_srid" */
1484 
1485 /* Line 1391 of yacc.c */
1486 #line 180 "lwin_wkt_parse.y"
1487  { lwgeom_free((yyvaluep->geometryvalue)); };
1488 
1489 /* Line 1391 of yacc.c */
1490 #line 1491 "lwin_wkt_parse.c"
1491  break;
1492  case 29: /* "geometrycollection" */
1493 
1494 /* Line 1391 of yacc.c */
1495 #line 181 "lwin_wkt_parse.y"
1496  { lwgeom_free((yyvaluep->geometryvalue)); };
1497 
1498 /* Line 1391 of yacc.c */
1499 #line 1500 "lwin_wkt_parse.c"
1500  break;
1501  case 31: /* "multisurface" */
1502 
1503 /* Line 1391 of yacc.c */
1504 #line 188 "lwin_wkt_parse.y"
1505  { lwgeom_free((yyvaluep->geometryvalue)); };
1506 
1507 /* Line 1391 of yacc.c */
1508 #line 1509 "lwin_wkt_parse.c"
1509  break;
1510  case 32: /* "surface_list" */
1511 
1512 /* Line 1391 of yacc.c */
1513 #line 167 "lwin_wkt_parse.y"
1514  { lwgeom_free((yyvaluep->geometryvalue)); };
1515 
1516 /* Line 1391 of yacc.c */
1517 #line 1518 "lwin_wkt_parse.c"
1518  break;
1519  case 33: /* "tin" */
1520 
1521 /* Line 1391 of yacc.c */
1522 #line 195 "lwin_wkt_parse.y"
1523  { lwgeom_free((yyvaluep->geometryvalue)); };
1524 
1525 /* Line 1391 of yacc.c */
1526 #line 1527 "lwin_wkt_parse.c"
1527  break;
1528  case 34: /* "polyhedralsurface" */
1529 
1530 /* Line 1391 of yacc.c */
1531 #line 194 "lwin_wkt_parse.y"
1532  { lwgeom_free((yyvaluep->geometryvalue)); };
1533 
1534 /* Line 1391 of yacc.c */
1535 #line 1536 "lwin_wkt_parse.c"
1536  break;
1537  case 35: /* "multipolygon" */
1538 
1539 /* Line 1391 of yacc.c */
1540 #line 187 "lwin_wkt_parse.y"
1541  { lwgeom_free((yyvaluep->geometryvalue)); };
1542 
1543 /* Line 1391 of yacc.c */
1544 #line 1545 "lwin_wkt_parse.c"
1545  break;
1546  case 36: /* "polygon_list" */
1547 
1548 /* Line 1391 of yacc.c */
1549 #line 168 "lwin_wkt_parse.y"
1550  { lwgeom_free((yyvaluep->geometryvalue)); };
1551 
1552 /* Line 1391 of yacc.c */
1553 #line 1554 "lwin_wkt_parse.c"
1554  break;
1555  case 37: /* "patch_list" */
1556 
1557 /* Line 1391 of yacc.c */
1558 #line 169 "lwin_wkt_parse.y"
1559  { lwgeom_free((yyvaluep->geometryvalue)); };
1560 
1561 /* Line 1391 of yacc.c */
1562 #line 1563 "lwin_wkt_parse.c"
1563  break;
1564  case 38: /* "polygon" */
1565 
1566 /* Line 1391 of yacc.c */
1567 #line 191 "lwin_wkt_parse.y"
1568  { lwgeom_free((yyvaluep->geometryvalue)); };
1569 
1570 /* Line 1391 of yacc.c */
1571 #line 1572 "lwin_wkt_parse.c"
1572  break;
1573  case 39: /* "polygon_untagged" */
1574 
1575 /* Line 1391 of yacc.c */
1576 #line 193 "lwin_wkt_parse.y"
1577  { lwgeom_free((yyvaluep->geometryvalue)); };
1578 
1579 /* Line 1391 of yacc.c */
1580 #line 1581 "lwin_wkt_parse.c"
1581  break;
1582  case 40: /* "patch" */
1583 
1584 /* Line 1391 of yacc.c */
1585 #line 192 "lwin_wkt_parse.y"
1586  { lwgeom_free((yyvaluep->geometryvalue)); };
1587 
1588 /* Line 1391 of yacc.c */
1589 #line 1590 "lwin_wkt_parse.c"
1590  break;
1591  case 41: /* "curvepolygon" */
1592 
1593 /* Line 1391 of yacc.c */
1594 #line 178 "lwin_wkt_parse.y"
1595  { lwgeom_free((yyvaluep->geometryvalue)); };
1596 
1597 /* Line 1391 of yacc.c */
1598 #line 1599 "lwin_wkt_parse.c"
1599  break;
1600  case 42: /* "curvering_list" */
1601 
1602 /* Line 1391 of yacc.c */
1603 #line 165 "lwin_wkt_parse.y"
1604  { lwgeom_free((yyvaluep->geometryvalue)); };
1605 
1606 /* Line 1391 of yacc.c */
1607 #line 1608 "lwin_wkt_parse.c"
1608  break;
1609  case 43: /* "curvering" */
1610 
1611 /* Line 1391 of yacc.c */
1612 #line 179 "lwin_wkt_parse.y"
1613  { lwgeom_free((yyvaluep->geometryvalue)); };
1614 
1615 /* Line 1391 of yacc.c */
1616 #line 1617 "lwin_wkt_parse.c"
1617  break;
1618  case 44: /* "patchring_list" */
1619 
1620 /* Line 1391 of yacc.c */
1621 #line 175 "lwin_wkt_parse.y"
1622  { lwgeom_free((yyvaluep->geometryvalue)); };
1623 
1624 /* Line 1391 of yacc.c */
1625 #line 1626 "lwin_wkt_parse.c"
1626  break;
1627  case 45: /* "ring_list" */
1628 
1629 /* Line 1391 of yacc.c */
1630 #line 174 "lwin_wkt_parse.y"
1631  { lwgeom_free((yyvaluep->geometryvalue)); };
1632 
1633 /* Line 1391 of yacc.c */
1634 #line 1635 "lwin_wkt_parse.c"
1635  break;
1636  case 46: /* "patchring" */
1637 
1638 /* Line 1391 of yacc.c */
1639 #line 164 "lwin_wkt_parse.y"
1640  { ptarray_free((yyvaluep->ptarrayvalue)); };
1641 
1642 /* Line 1391 of yacc.c */
1643 #line 1644 "lwin_wkt_parse.c"
1644  break;
1645  case 47: /* "ring" */
1646 
1647 /* Line 1391 of yacc.c */
1648 #line 163 "lwin_wkt_parse.y"
1649  { ptarray_free((yyvaluep->ptarrayvalue)); };
1650 
1651 /* Line 1391 of yacc.c */
1652 #line 1653 "lwin_wkt_parse.c"
1653  break;
1654  case 48: /* "compoundcurve" */
1655 
1656 /* Line 1391 of yacc.c */
1657 #line 177 "lwin_wkt_parse.y"
1658  { lwgeom_free((yyvaluep->geometryvalue)); };
1659 
1660 /* Line 1391 of yacc.c */
1661 #line 1662 "lwin_wkt_parse.c"
1662  break;
1663  case 49: /* "compound_list" */
1664 
1665 /* Line 1391 of yacc.c */
1666 #line 173 "lwin_wkt_parse.y"
1667  { lwgeom_free((yyvaluep->geometryvalue)); };
1668 
1669 /* Line 1391 of yacc.c */
1670 #line 1671 "lwin_wkt_parse.c"
1671  break;
1672  case 50: /* "multicurve" */
1673 
1674 /* Line 1391 of yacc.c */
1675 #line 184 "lwin_wkt_parse.y"
1676  { lwgeom_free((yyvaluep->geometryvalue)); };
1677 
1678 /* Line 1391 of yacc.c */
1679 #line 1680 "lwin_wkt_parse.c"
1680  break;
1681  case 51: /* "curve_list" */
1682 
1683 /* Line 1391 of yacc.c */
1684 #line 172 "lwin_wkt_parse.y"
1685  { lwgeom_free((yyvaluep->geometryvalue)); };
1686 
1687 /* Line 1391 of yacc.c */
1688 #line 1689 "lwin_wkt_parse.c"
1689  break;
1690  case 52: /* "multilinestring" */
1691 
1692 /* Line 1391 of yacc.c */
1693 #line 185 "lwin_wkt_parse.y"
1694  { lwgeom_free((yyvaluep->geometryvalue)); };
1695 
1696 /* Line 1391 of yacc.c */
1697 #line 1698 "lwin_wkt_parse.c"
1698  break;
1699  case 53: /* "linestring_list" */
1700 
1701 /* Line 1391 of yacc.c */
1702 #line 171 "lwin_wkt_parse.y"
1703  { lwgeom_free((yyvaluep->geometryvalue)); };
1704 
1705 /* Line 1391 of yacc.c */
1706 #line 1707 "lwin_wkt_parse.c"
1707  break;
1708  case 54: /* "circularstring" */
1709 
1710 /* Line 1391 of yacc.c */
1711 #line 176 "lwin_wkt_parse.y"
1712  { lwgeom_free((yyvaluep->geometryvalue)); };
1713 
1714 /* Line 1391 of yacc.c */
1715 #line 1716 "lwin_wkt_parse.c"
1716  break;
1717  case 55: /* "linestring" */
1718 
1719 /* Line 1391 of yacc.c */
1720 #line 182 "lwin_wkt_parse.y"
1721  { lwgeom_free((yyvaluep->geometryvalue)); };
1722 
1723 /* Line 1391 of yacc.c */
1724 #line 1725 "lwin_wkt_parse.c"
1725  break;
1726  case 56: /* "linestring_untagged" */
1727 
1728 /* Line 1391 of yacc.c */
1729 #line 183 "lwin_wkt_parse.y"
1730  { lwgeom_free((yyvaluep->geometryvalue)); };
1731 
1732 /* Line 1391 of yacc.c */
1733 #line 1734 "lwin_wkt_parse.c"
1734  break;
1735  case 57: /* "triangle_list" */
1736 
1737 /* Line 1391 of yacc.c */
1738 #line 166 "lwin_wkt_parse.y"
1739  { lwgeom_free((yyvaluep->geometryvalue)); };
1740 
1741 /* Line 1391 of yacc.c */
1742 #line 1743 "lwin_wkt_parse.c"
1743  break;
1744  case 58: /* "triangle" */
1745 
1746 /* Line 1391 of yacc.c */
1747 #line 196 "lwin_wkt_parse.y"
1748  { lwgeom_free((yyvaluep->geometryvalue)); };
1749 
1750 /* Line 1391 of yacc.c */
1751 #line 1752 "lwin_wkt_parse.c"
1752  break;
1753  case 59: /* "triangle_untagged" */
1754 
1755 /* Line 1391 of yacc.c */
1756 #line 197 "lwin_wkt_parse.y"
1757  { lwgeom_free((yyvaluep->geometryvalue)); };
1758 
1759 /* Line 1391 of yacc.c */
1760 #line 1761 "lwin_wkt_parse.c"
1761  break;
1762  case 60: /* "multipoint" */
1763 
1764 /* Line 1391 of yacc.c */
1765 #line 186 "lwin_wkt_parse.y"
1766  { lwgeom_free((yyvaluep->geometryvalue)); };
1767 
1768 /* Line 1391 of yacc.c */
1769 #line 1770 "lwin_wkt_parse.c"
1770  break;
1771  case 61: /* "point_list" */
1772 
1773 /* Line 1391 of yacc.c */
1774 #line 170 "lwin_wkt_parse.y"
1775  { lwgeom_free((yyvaluep->geometryvalue)); };
1776 
1777 /* Line 1391 of yacc.c */
1778 #line 1779 "lwin_wkt_parse.c"
1779  break;
1780  case 62: /* "point_untagged" */
1781 
1782 /* Line 1391 of yacc.c */
1783 #line 190 "lwin_wkt_parse.y"
1784  { lwgeom_free((yyvaluep->geometryvalue)); };
1785 
1786 /* Line 1391 of yacc.c */
1787 #line 1788 "lwin_wkt_parse.c"
1788  break;
1789  case 63: /* "point" */
1790 
1791 /* Line 1391 of yacc.c */
1792 #line 189 "lwin_wkt_parse.y"
1793  { lwgeom_free((yyvaluep->geometryvalue)); };
1794 
1795 /* Line 1391 of yacc.c */
1796 #line 1797 "lwin_wkt_parse.c"
1797  break;
1798  case 64: /* "ptarray" */
1799 
1800 /* Line 1391 of yacc.c */
1801 #line 162 "lwin_wkt_parse.y"
1802  { ptarray_free((yyvaluep->ptarrayvalue)); };
1803 
1804 /* Line 1391 of yacc.c */
1805 #line 1806 "lwin_wkt_parse.c"
1806  break;
1807 
1808  default:
1809  break;
1810  }
1811 }
POINTARRAY * ptarrayvalue
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
void ptarray_free(POINTARRAY *pa)
Definition: ptarray.c:315
#define YYUSE(e)
LWGEOM * geometryvalue
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)

Here is the call graph for this function:

Here is the caller graph for this function: