GRASS Programmer's Manual
6.4.3(2013)-r
|
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <grass/sqlp.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
union | YYSTYPE |
union | yyalloc |
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.7.12-4996" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | YYDEBUG 1 |
#define | YYERROR_VERBOSE 1 |
#define | YY_NULL 0 |
#define | YYERROR_VERBOSE 1 |
#define | YY_YY_Y_TAB_H_INCLUDED |
#define | YYTOKENTYPE |
#define | COMPARISON_OPERATOR 258 |
#define | NAME 259 |
#define | STRING 260 |
#define | INTNUM 261 |
#define | FLOATNUM 262 |
#define | ADD 263 |
#define | DROP 264 |
#define | COLUMN 265 |
#define | EQUAL 266 |
#define | SELECT 267 |
#define | FROM 268 |
#define | WHERE 269 |
#define | DELETE 270 |
#define | INSERT 271 |
#define | INTO 272 |
#define | VALUES 273 |
#define | UPDATE 274 |
#define | SET 275 |
#define | AND 276 |
#define | OR 277 |
#define | NOT 278 |
#define | ALTER 279 |
#define | TABLE 280 |
#define | CREATE 281 |
#define | NULL_VALUE 282 |
#define | VARCHAR 283 |
#define | INT 284 |
#define | INTEGER 285 |
#define | DOUBLE 286 |
#define | PRECISION 287 |
#define | DATE 288 |
#define | TIME 289 |
#define | ORDER 290 |
#define | BY 291 |
#define | IS 292 |
#define | ASC 293 |
#define | DESC 294 |
#define | YYSTYPE_IS_TRIVIAL 1 |
#define | yystype YYSTYPE /* obsolescent; will be withdrawn */ |
#define | YYSTYPE_IS_DECLARED 1 |
#define | YYSIZE_T unsigned int |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(Msgid) Msgid |
#define | __attribute__(Spec) /* empty */ |
#define | YYUSE(E) ((void) (E)) |
#define | YYID(N) (N) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(Dst, Src, Count) |
#define | YYFINAL 27 |
#define | YYLAST 156 |
#define | YYNTOKENS 48 |
#define | YYNNTS 32 |
#define | YYNRULES 87 |
#define | YYNSTATES 157 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 294 |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -52 |
#define | YYTABLE_NINF -1 |
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-52))) |
#define | yytable_value_is_error(Yytable_value) YYID (0) |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYFAIL goto yyerrlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YYLEX yylex () |
#define | YYFPRINTF fprintf |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYCASE_(N, S) |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YY_INITIAL_VALUE(Value) /* Nothing. */ |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYSYNTAX_ERROR |
Typedefs | |
typedef union YYSTYPE | YYSTYPE |
typedef unsigned char | yytype_uint8 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef short int | yytype_int16 |
Enumerations | |
enum | yytokentype { COMPARISON_OPERATOR = 258, NAME = 259, STRING = 260, INTNUM = 261, FLOATNUM = 262, ADD = 263, DROP = 264, COLUMN = 265, EQUAL = 266, SELECT = 267, FROM = 268, WHERE = 269, DELETE = 270, INSERT = 271, INTO = 272, VALUES = 273, UPDATE = 274, SET = 275, AND = 276, OR = 277, NOT = 278, ALTER = 279, TABLE = 280, CREATE = 281, NULL_VALUE = 282, VARCHAR = 283, INT = 284, INTEGER = 285, DOUBLE = 286, PRECISION = 287, DATE = 288, TIME = 289, ORDER = 290, BY = 291, IS = 292, ASC = 293, DESC = 294, COMPARISON_OPERATOR = 258, NAME = 259, STRING = 260, INTNUM = 261, FLOATNUM = 262, ADD = 263, DROP = 264, COLUMN = 265, EQUAL = 266, SELECT = 267, FROM = 268, WHERE = 269, DELETE = 270, INSERT = 271, INTO = 272, VALUES = 273, UPDATE = 274, SET = 275, AND = 276, OR = 277, NOT = 278, ALTER = 279, TABLE = 280, CREATE = 281, NULL_VALUE = 282, VARCHAR = 283, INT = 284, INTEGER = 285, DOUBLE = 286, PRECISION = 287, DATE = 288, TIME = 289, ORDER = 290, BY = 291, IS = 292, ASC = 293, DESC = 294 } |
Functions | |
int | yyparse () |
int | yylex (void) |
YYUSE (yyo) | |
YYUSE (yyoutput) | |
YYUSE (yytype) | |
else | YYFPRINTF (yyoutput,"nterm %s (", yytname[yytype]) |
yy_symbol_value_print (yyoutput, yytype, yyvaluep) | |
YYFPRINTF (yyoutput,")") | |
for (;yybottom<=yytop;yybottom++) | |
YYFPRINTF (stderr,"\n") | |
YYFPRINTF (stderr,"Reducing stack by rule %d (line %lu):\n", yyrule-1, yylno) | |
for (yyi=0;yyi< yynrhs;yyi++) | |
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp) | |
YYSTYPE yylval | YY_INITIAL_VALUE (yyval_default) |
YYDPRINTF ((stderr,"Starting parse\n")) | |
if (yyss+yystacksize-1<=yyssp) | |
YYDPRINTF ((stderr,"Entering state %d\n", yystate)) | |
if (yychar==YYEMPTY) | |
if (yychar<=YYEOF) | |
YY_SYMBOL_PRINT ("Next token is", yytoken,&yylval,&yylloc) | |
if (yyn<=0) | |
YY_SYMBOL_PRINT ("Shifting", yytoken,&yylval,&yylloc) | |
YY_REDUCE_PRINT (yyn) | |
switch (yyn) | |
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn],&yyval,&yyloc) | |
YYPOPSTACK (yylen) | |
YY_STACK_PRINT (yyss, yyssp) | |
if (!yyerrstatus) | |
if (yyerrstatus==3) | |
for (;;) | |
YY_IGNORE_MAYBE_UNINITIALIZED_END | YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp) |
yydestruct ("Cleanup: discarding lookahead", yytoken,&yylval) | |
while (yyssp!=yyss) | |
YYSTACK_FREE (yyss) | |
YYSTACK_FREE (yymsg) | |
return | YYID (yyresult) |
#define COLUMN 265 |
Definition at line 161 of file y.tab.c.
Referenced by set_value(), and while().
#define EQUAL 266 |
Definition at line 162 of file y.tab.c.
Referenced by order_intersects(), segs_intersect(), and while().
#define FROM 268 |
Definition at line 164 of file y.tab.c.
Referenced by GS_get_from(), GS_get_from_real(), GS_get_modelposition(), GS_get_selected_point_on_surface(), GS_get_viewdir(), GS_init_view(), Gs_load_3dview(), GS_look_here(), gs_los_intersect(), gs_los_intersect1(), GS_moveto(), Gs_save_3dview(), GS_set_viewdir(), gs_setlos_enterdata(), gsd_check_focus(), gsd_get_los(), gsd_get_zup(), gsd_set_view(), gsd_zup_twist(), Nviz_set_cplane_here(), print_frto(), and while().
#define SET 275 |
Definition at line 171 of file y.tab.c.
Referenced by G__read_Cell_head_array(), and while().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
#define YYABORT goto yyabortlab |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYCASE_ | ( | N, | |
S | |||
) |
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
#define YYDPRINTF | ( | Args | ) |
#define yyerrok (yyerrstatus = 0) |
#define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-52))) |
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
#define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
#define YYSYNTAX_ERROR |
Referenced by if().
#define yytable_value_is_error | ( | Yytable_value | ) | YYID (0) |
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
typedef short int yytype_int16 |
typedef short int yytype_int8 |
typedef unsigned short int yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum yytokentype |
for | ( | ;yybottom<=yytop;yybottom++ | ) |
Definition at line 950 of file y.tab.c.
References YYFPRINTF.
Referenced by avl_delete(), avl_probe(), free_slice_buff(), G3d_getBlockNocache(), G_site_get(), gvl_file_start_read(), I_cluster_begin(), I_cluster_reclass(), I_cluster_sum2(), N_les_integrate_dirichlet_2d(), N_les_integrate_dirichlet_3d(), NetA_flow(), shift_slices(), tavl_delete(), V_clear(), and Vect_line_reverse().
for | ( | ;; | ) |
Definition at line 2151 of file y.tab.c.
References YY_STACK_PRINT, YYABORT, yydestruct(), YYLAST, yyn, yypact_value_is_default, YYPOPSTACK, yyssp, yystate, and YYTERROR.
if | ( | yyss+yystacksize-1<= | yyssp | ) |
Definition at line 1412 of file y.tab.c.
References YY_, YYABORT, YYDPRINTF, YYMAXDEPTH, YYSIZE_T, yyss, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yyvs, and yyalloc::yyvs_alloc.
if | ( | yyn<= | 0 | ) |
if | ( | ! | yyerrstatus | ) |
Definition at line 2060 of file y.tab.c.
References YY_, yyerror(), yymsgbuf, yynerrs, YYSTACK_ALLOC, YYSTACK_FREE, and YYSYNTAX_ERROR.
if | ( | yyerrstatus | = = 3 | ) |
switch | ( | yyn | ) |
Definition at line 1575 of file y.tab.c.
References YYSTYPE::node, NULL, sqpAssignment(), sqpColumn(), sqpColumnDef(), sqpCommand(), sqpNewColumnNode(), sqpNewExpressionNode(), sqpNewValueNode(), sqpOperatorCode(), sqpOrderColumn(), sqpTable(), and sqpValue().
Referenced by alloc_slice_buff(), and read_slice().
while | ( | yyssp! | = yyss | ) |
Definition at line 2226 of file y.tab.c.
References yydestruct(), and YYPOPSTACK.
YY_REDUCE_PRINT | ( | yyn | ) |
YY_SYMBOL_PRINT | ( | "Next token is" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | "Shifting" | , |
yytoken | , | ||
& | yylval, | ||
& | yylloc | ||
) |
YY_SYMBOL_PRINT | ( | ) |
YY_IGNORE_MAYBE_UNINITIALIZED_END YY_SYMBOL_PRINT | ( | "Shifting" | , |
yystos | [yyn], | ||
yyvsp | , | ||
yylsp | |||
) |
yydestruct | ( | "Cleanup: discarding lookahead" | , |
yytoken | , | ||
& | yylval | ||
) |
YYDPRINTF | ( | (stderr,"Starting parse\n") | ) |
YYDPRINTF | ( | (stderr,"Entering state %d\n", yystate) | ) |
else YYFPRINTF | ( | yyoutput | ) |
YYFPRINTF | ( | yyoutput | , |
" | |||
) |
YYFPRINTF | ( | stderr | , |
"\n" | |||
) |
int yylex | ( | void | ) |
int yyparse | ( | ) |
YYPOPSTACK | ( | yylen | ) |
YYSTACK_FREE | ( | yyss | ) |
YYSTACK_FREE | ( | yymsg | ) |
YYUSE | ( | yyo | ) |
YYUSE | ( | yyoutput | ) |
YYUSE | ( | yytype | ) |
yynewstate __pad0__ |
yysetstate __pad1__ |
continue |
else |
int |
Definition at line 1344 of file y.tab.c.
Referenced by colorrules.VectorColorTable::AddTemporaryColumn(), utils::BBoxAfterRotation(), btree_update(), c_quant(), layertree.LayerTree::ChangeLayerOpacity(), render.Map::ChangeMapSize(), dialogs.ItemCheckListCtrl::CheckItemById(), frame.PsMapBufferedWindow::ComputeZoom(), utils::convertRGB(), D_get_a(), D_get_d(), D_popup(), python.db::db_describe(), db_select_int(), dfread_header(), dfread_header_old(), dfwrite_header(), dig__fread_port_I(), dig__fwrite_port_I(), dig_fread(), mapwindow.BufferedWindow::DisplayToWind(), utils::DMS2Deg(), frame.PsMapBufferedWindow::DrawBitmap(), drawchar(), manager.GCP::DrawGCP(), frame.PsMapBufferedWindow::DrawGraphics(), wxdigit.IVDigit::EditLine(), mapwindow.GLWindow::EraseMap(), wxnviz.Nviz::FlyThrough(), mapdisplay.MapFrame::FormatDist(), frame.MapFrame::FormatDist(), free_data_buffs(), G3d_flushAllTiles(), G3d_getVolumeA(), G__interpolate_color_rule(), G__lookup_colors(), G__read_row_ptrs(), G_get_color(), G_get_default_color(), G_get_null_value_color(), G_get_raster_color(), G_get_raster_sample_bilinear(), G_get_raster_sample_cubic(), G_get_raster_sample_nearest(), G_is_little_endian(), G_list_element(), G_make_histogram_log_colors(), G_parse_color_rule(), G_quant_get_cell_value(), G_rotate_around_point_int(), G_set_d_raster_cat(), G_str_to_color(), get_char_vects(), statusbar.SbGoTo::GetCenterString(), dialogs::getColsChoice(), wxnviz.Nviz::GetDistanceAlongSurface(), dialogs.ItemCheckListCtrl::GetItems(), utils::GetSettingsPath(), dialogs.DisplayAttributesDialog::GetSQLString(), dialogs.VDigitDuplicatesDialog::GetUnSelected(), Gp_set_color(), gpd_obj_site_attr(), GS_getlight_position(), Gs_load_3dview(), gs_malloc_lookup(), gsd_coarse_surf_map(), gsd_get_nice_range(), gsd_norm_arrows(), gsd_ortho_wall(), gsd_put_legend(), gsd_set_material(), gsd_surf_const(), gsd_surf_map(), gsd_surf_map_old(), gsd_triangulated_wall(), gsd_wire_arrows(), gsds_alloc_typbuff(), gvld_isosurf(), gvld_slice(), I_compute_georef_equations(), I_new_control_point(), IL_grid_calc_2d(), IL_resample_interp_segments_2d(), IL_vector_input_data_2d(), wxdigit.IVDigit::InitCats(), gselect.ColumnSelect::InsertColumns(), frame.MapFrame::MeasureDist(), wxdigit.IVDigit::MoveSelectedLines(), wxdigit.IVDigit::MoveSelectedVertex(), N_les_integrate_dirichlet_3d(), Nviz_color_from_str(), Nviz_set_viewpoint_persp(), mapwindow.GLWindow::NvizCmdCommand(), dialogs.VDigitCategoryDialog::OnAddCat(), manager.LayerBook::OnAddLayer(), manager.LayerBook::OnChangeLayer(), statusbar.SbMapScale::OnChangeMapScale(), dialogs.ModelConditionDialog::OnCheckItemElse(), dialogs.ModelConditionDialog::OnCheckItemIf(), goutput.GMConsole::OnCmdDone(), tools::OnCPlaneChanging(), tools::OnCPlaneReset(), tools::OnCPlaneSelection(), tools::OnCPlaneShading(), manager.AttributeManager::OnDataItemAdd(), manager.AttributeManager::OnDataItemDeleteAll(), frame.ModelFrame::OnDeleteData(), manager.LayerBook::OnDeleteLayer(), dialogs.VDigitCategoryDialog::OnEndEdit(), dialogs.ItemListCtrl::OnEndEdit(), frame.ModelFrame::OnExportImage(), dialogs.VDigitCategoryDialog::OnFeature(), dialogs.DisplayAttributesDialog::OnFeature(), statusbar.SbGoTo::OnGoTo(), wizard.EPSGPage::OnItemSelected(), colorrules.VectorColorTable::OnLayerSelection(), mapwindow.VDigitWindow::OnLeftDownAddLine(), preferences.PreferencesDialog::OnLoadEpsgCodes(), manager.LayerBook::OnModifyLayer(), mapwindow.MapWindow::OnMotion(), gprint.MapPrint::OnPrintPage(), dialogs.ItemListCtrl::OnRemove(), preferences.PreferencesDialog::OnSetEpsgCode(), tools::OnSurfaceModeAll(), wizard.EPSGPage::OnText(), dialogs.RegionDef::OnValue(), utils::PaperMapCoordinates(), mapwindow.BufferedWindow::Pixel2Cell(), manager.TableListCtrl::Populate(), PS_scaled_raster(), quad_compare(), quad_divide_data(), instructions.Mapinfo::Read(), instructions.Text::Read(), instructions.Scalebar::Read(), instructions.RasterLegend::Read(), instructions.VectorLegend::Read(), colorrules.ColorTable::ReadColorTable(), utils::ReadEpsgCodes(), layertree.LayerTree::RecreateItem(), goutput.GMConsole::Redirect(), python.core::region(), royston(), rtree_write_branch(), mapwindow.BufferedWindow::SaveRegion(), mapwindow.BufferedWindow::SaveToFile(), settings.Settings::SaveToFile(), segment_setup(), wxdigit.IVDigit::SelectLinesByQuery(), python.core::set_raise_on_error(), wxnviz.Nviz::SetFringe(), debug.DebugMsg::SetLevel(), wxnviz.Nviz::SetLight(), model.ModelData::SetPropDialog(), statusbar.SbCoordinates::Show(), statusbar.SbRegionExtent::Show(), SHPWriteObject(), slice_calc(), toolbars.VDigitToolbar::StartEditing(), dialogs.DisplayAttributesDialog::UpdateDialog(), manager.AttributeManager::UpdateDialog(), tools::UpdateFrameIndex(), preferences.VDigitSettingsDialog::UpdateSettings(), dialogs.OptDialog::UpdateSettings(), wxdisplay.DisplayDriver::UpdateSettings(), tools::UpdateSettings(), V1_read_next_line_ogr(), V2_read_line_ogr(), Vect_array_to_cat_list(), Vect_build_ogr(), Vect_line_reverse(), Vect_new_varray(), Vect_point_buffer2(), Vect_str_to_cat_list(), python.vector::vector_db(), python.vector::vector_db_select(), python.vector::vector_layer_db(), python.vector::vector_what(), main.MapApp::watcher(), while(), and frame.PsMapBufferedWindow::Zoom().
return |
Definition at line 897 of file y.tab.c.
Referenced by gvl_file_set_slices_param().
int yyi |
yytype_int16* yyss |
yytype_int16 yyssa[YYINITDEPTH] |
yystacksize = YYINITDEPTH |
yytype_int16* yytop |
YYSTYPE yyvsa[YYINITDEPTH] |