PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ yydestruct()

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

Definition at line 1384 of file lwin_wkt_parse.c.

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

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

Here is the call graph for this function: