PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ yydestruct()

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

Definition at line 1376 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().

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