branches/innodb+: Merge revisions 4150:4528 from branches/zip:
------------------------------------------------------------------------
r4152 | marko | 2009-02-10 12:52:27 +0200 (Tue, 10 Feb 2009) | 12 lines
branches/zip: When innodb_use_sys_malloc is set, ignore
innodb_additional_mem_pool_size, because nothing will
be allocated from mem_comm_pool.
mem_pool_create(): Remove the assertion about size. The function will
work with any size. However, an assertion would fail in ut_malloc_low()
when size==0.
mem_init(): When srv_use_sys_malloc is set, pass size=1 to mem_pool_create().
mem0mem.c: Add #include "srv0srv.h" that is needed by mem0dbg.c.
------------------------------------------------------------------------
r4153 | vasil | 2009-02-10 22:58:17 +0200 (Tue, 10 Feb 2009) | 14 lines
branches/zip:
(followup to r4145) Non-functional change:
Change the os_atomic_increment() and os_compare_and_swap() functions
to macros to avoid artificial limitations on the types of those
functions' arguments. As a consequence typecasts from the source
code can be removed.
Also remove Google's copyright from os0sync.ic because that file no longer
contains code from Google.
Approved by: Marko (rb://88), also ok from Inaam via IM
------------------------------------------------------------------------
r4163 | marko | 2009-02-12 00:14:19 +0200 (Thu, 12 Feb 2009) | 4 lines
branches/zip: Make innodb_thread_concurrency=0 the default.
The old default was 8.
------------------------------------------------------------------------
r4169 | calvin | 2009-02-12 10:37:10 +0200 (Thu, 12 Feb 2009) | 3 lines
branches/zip: Adjust the result file of innodb_thread_concurrency_basic
test. The default value of innodb_thread_concurrency is changed to 0
(from 8) via r4163.
------------------------------------------------------------------------
r4174 | vasil | 2009-02-12 17:38:27 +0200 (Thu, 12 Feb 2009) | 4 lines
branches/zip:
Fix pathname of the file to patch.
------------------------------------------------------------------------
r4176 | vasil | 2009-02-13 10:06:31 +0200 (Fri, 13 Feb 2009) | 7 lines
branches/zip:
Fix the failing mysql-test partition_innodb, which failed only if run after
innodb_trx_weight (or other test that would leave LATEST DEADLOCK ERROR into
the output of SHOW ENGINE INNODB STATUS). Find further explanation for the
failure at the top of the added patch partition_innodb.diff.
------------------------------------------------------------------------
r4198 | vasil | 2009-02-17 09:06:07 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
Add the full text of the GPLv2 license into the root directory of the
plugin. In previous releases this file was copied from an external source
(https://svn.innodb.com/svn/plugin/trunk/support/COPYING) "manually" when
creating the source and binary archives. It is less confusing to have this
present in the root directory of the SVN branch.
------------------------------------------------------------------------
r4199 | vasil | 2009-02-17 09:11:58 +0200 (Tue, 17 Feb 2009) | 4 lines
branches/zip:
Add Google's license into COPYING.Google.
------------------------------------------------------------------------
r4200 | vasil | 2009-02-17 09:56:33 +0200 (Tue, 17 Feb 2009) | 11 lines
branches/zip:
To the files touched by the Google patch from c4144 (excluding
include/os0sync.ic because later we removed Google code from that file):
* Remove the Google license
* Remove old Innobase copyright lines
* Add a reference to the Google license and to the GPLv2 license at the top,
as recommended by the lawyers at Oracle Legal.
------------------------------------------------------------------------
r4201 | vasil | 2009-02-17 10:12:02 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 1/28]
------------------------------------------------------------------------
r4202 | vasil | 2009-02-17 10:15:06 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 2/28]
------------------------------------------------------------------------
r4203 | vasil | 2009-02-17 10:25:45 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 3/28]
------------------------------------------------------------------------
r4204 | vasil | 2009-02-17 10:55:41 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 4/28]
------------------------------------------------------------------------
r4205 | vasil | 2009-02-17 10:59:22 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 5/28]
------------------------------------------------------------------------
r4206 | vasil | 2009-02-17 11:02:27 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 6/28]
------------------------------------------------------------------------
r4207 | vasil | 2009-02-17 11:04:28 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 7/28]
------------------------------------------------------------------------
r4208 | vasil | 2009-02-17 11:06:49 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 8/28]
------------------------------------------------------------------------
r4209 | vasil | 2009-02-17 11:10:18 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 9/28]
------------------------------------------------------------------------
r4210 | vasil | 2009-02-17 11:12:41 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 10/28]
------------------------------------------------------------------------
r4211 | vasil | 2009-02-17 11:14:40 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 11/28]
------------------------------------------------------------------------
r4212 | vasil | 2009-02-17 11:18:35 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 12/28]
------------------------------------------------------------------------
r4213 | vasil | 2009-02-17 11:24:40 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 13/28]
------------------------------------------------------------------------
r4214 | vasil | 2009-02-17 11:27:31 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 13/28]
------------------------------------------------------------------------
r4215 | vasil | 2009-02-17 11:29:55 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 15/28]
------------------------------------------------------------------------
r4216 | vasil | 2009-02-17 11:33:38 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 16/28]
------------------------------------------------------------------------
r4217 | vasil | 2009-02-17 11:36:44 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 17/28]
------------------------------------------------------------------------
r4218 | vasil | 2009-02-17 11:39:11 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 18/28]
------------------------------------------------------------------------
r4219 | vasil | 2009-02-17 11:41:24 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 19/28]
------------------------------------------------------------------------
r4220 | vasil | 2009-02-17 11:43:50 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 20/28]
------------------------------------------------------------------------
r4221 | vasil | 2009-02-17 11:46:52 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 21/28]
------------------------------------------------------------------------
r4222 | vasil | 2009-02-17 11:50:12 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 22/28]
------------------------------------------------------------------------
r4223 | vasil | 2009-02-17 11:53:58 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 23/28]
------------------------------------------------------------------------
r4224 | vasil | 2009-02-17 12:01:41 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 24/28]
------------------------------------------------------------------------
r4225 | vasil | 2009-02-17 12:05:45 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 25/28]
------------------------------------------------------------------------
r4226 | vasil | 2009-02-17 12:09:16 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 26/28]
------------------------------------------------------------------------
r4227 | vasil | 2009-02-17 12:12:56 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 27/28]
------------------------------------------------------------------------
r4228 | vasil | 2009-02-17 12:14:04 +0200 (Tue, 17 Feb 2009) | 8 lines
branches/zip:
* Remove old Innobase copyright lines from C source files
* Add a reference to the GPLv2 license as recommended by the lawyers
at Oracle Legal
[Step 28/28]
------------------------------------------------------------------------
r4229 | vasil | 2009-02-17 12:30:55 +0200 (Tue, 17 Feb 2009) | 4 lines
branches/zip:
Add the copyright notice to the non C files.
------------------------------------------------------------------------
r4231 | marko | 2009-02-17 14:26:53 +0200 (Tue, 17 Feb 2009) | 12 lines
Minor cleanup of the Google SMP patch.
sync_array_object_signalled(): Add a (void) cast to eliminate a gcc warning
about the return value of os_atomic_increment() being ignored.
rw_lock_create_func(): Properly indent the preprocessor directives.
rw_lock_x_lock_low(), rw_lock_x_lock_func_nowait(): Split lines correctly.
rw_lock_set_writer_id_and_recursion_flag(): Silence a Valgrind warning.
Do not mix statements and variable declarations.
------------------------------------------------------------------------
r4232 | marko | 2009-02-17 14:59:54 +0200 (Tue, 17 Feb 2009) | 3 lines
branches/zip: When assigning lock->recursive = FALSE, also flag
lock->writer_thread invalid, so that Valgrind will catch more errors.
This is related to Issue #175.
------------------------------------------------------------------------
r4242 | marko | 2009-02-18 17:01:09 +0200 (Wed, 18 Feb 2009) | 2 lines
branches/zip: UT_DBG_STOP: Use do{} while(0) to silence a g++-4.3.2 warning
about a while(0); statement. This should fix (part of) Issue #176.
------------------------------------------------------------------------
r4243 | marko | 2009-02-18 17:04:03 +0200 (Wed, 18 Feb 2009) | 3 lines
branches/zip: buf_buddy_get_slot(): Fix a gcc 4.3.2 warning
about an empty body of a "for" statement.
This fixes part of Issue #176.
------------------------------------------------------------------------
r4244 | marko | 2009-02-18 17:25:45 +0200 (Wed, 18 Feb 2009) | 11 lines
branches/zip: Protect ut_total_allocated_memory with ut_list_mutex.
Unprotected updates to ut_total_allocated_memory in
os_mem_alloc_large() and os_mem_free_large(), called during
fast index creation, may corrupt the variable and cause assertion failures.
Also, add UNIV_MEM_ALLOC() and UNIV_MEM_FREE() instrumentation around
os_mem_alloc_large() and os_mem_free_large(), so that Valgrind can
detect more errors.
rb://90 approved by Heikki Tuuri. This addresses Issue #177.
------------------------------------------------------------------------
r4248 | marko | 2009-02-19 11:52:39 +0200 (Thu, 19 Feb 2009) | 2 lines
branches/zip: page_zip_set_size(): Fix a g++ 4.3.2 warning
about an empty body in a "for" statement. This closes Issue #176.
------------------------------------------------------------------------
r4251 | inaam | 2009-02-19 15:46:27 +0200 (Thu, 19 Feb 2009) | 8 lines
branches/zip: Issue #178 rb://91
Change plug.in to have same CXXFLAGS as CFLAGS. This is to ensure that
both .c and .cc files get compiled with same flags. To fix the issue
where UNIV_LINUX was defined only in .c files.
Approved by: Marko
------------------------------------------------------------------------
r4258 | vasil | 2009-02-20 11:52:19 +0200 (Fri, 20 Feb 2009) | 7 lines
branches/zip:
Cleanup in ChangeLog:
* Wrap lines at 78 characters
* Changed files are listed alphabetically
* White-space cleanup
------------------------------------------------------------------------
r4259 | vasil | 2009-02-20 11:59:42 +0200 (Fri, 20 Feb 2009) | 6 lines
branches/zip:
ChangeLog: Remove include/os0sync.ic from the entry about the google patch,
this file was modified later to not include Google's code.
------------------------------------------------------------------------
r4262 | vasil | 2009-02-20 14:56:59 +0200 (Fri, 20 Feb 2009) | 373 lines
branches/zip:
Merge revisions 4035:4261 from branches/5.1:
------------------------------------------------------------------------
r4065 | sunny | 2009-01-29 16:01:36 +0200 (Thu, 29 Jan 2009) | 8 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: In the last round of AUTOINC cleanup we assumed that AUTOINC
is only defined for integer columns. This caused an assertion failure when
we checked for the maximum value of a column type. We now calculate the
max value for floating-point autoinc columns too.
Fix Bug#42400 - InnoDB autoinc code can't handle floating-point columns
rb://84 and Mantis issue://162
------------------------------------------------------------------------
r4111 | sunny | 2009-02-03 22:06:52 +0200 (Tue, 03 Feb 2009) | 2 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1: Add the ULL suffix otherwise there is an overflow.
------------------------------------------------------------------------
r4128 | vasil | 2009-02-08 21:36:45 +0200 (Sun, 08 Feb 2009) | 18 lines
Changed paths:
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1:
Merge a change from MySQL:
------------------------------------------------------------
revno: 2709.20.31
committer: Timothy Smith <timothy.smith@sun.com>
branch nick: 51
timestamp: Fri 2008-12-19 01:28:51 +0100
message:
Disable part of innodb-autoinc.test, because the MySQL server asserts when
compiled --with-debug, due to bug 39828, "autoinc wraps around when offset and
increment > 1". This change should be reverted when that bug is fixed (and a
a few other minor changes to the test as described in comments).
modified:
mysql-test/r/innodb-autoinc.result
mysql-test/t/innodb-autoinc.test
------------------------------------------------------------------------
r4129 | vasil | 2009-02-08 21:54:25 +0200 (Sun, 08 Feb 2009) | 310 lines
Changed paths:
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1:
Merge a change from MySQL:
[looks like the changes to innodb-autoinc.test were made as part of
the following huge merge, but we are merging only changes to that file]
------------------------------------------------------------
revno: 2546.47.1
committer: Luis Soares <luis.soares@sun.com>
branch nick: 5.1-rpl
timestamp: Fri 2009-01-23 13:22:05 +0100
message:
merge: 5.1 -> 5.1-rpl
conflicts:
Text conflict in client/mysqltest.cc
Text conflict in mysql-test/include/wait_until_connected_again.inc
Text conflict in mysql-test/lib/mtr_report.pm
Text conflict in mysql-test/mysql-test-run.pl
Text conflict in mysql-test/r/events_bugs.result
Text conflict in mysql-test/r/log_state.result
Text conflict in mysql-test/r/myisam_data_pointer_size_func.result
Text conflict in mysql-test/r/mysqlcheck.result
Text conflict in mysql-test/r/query_cache.result
Text conflict in mysql-test/r/status.result
Text conflict in mysql-test/suite/binlog/r/binlog_index.result
Text conflict in mysql-test/suite/binlog/r/binlog_innodb.result
Text conflict in mysql-test/suite/rpl/r/rpl_packet.result
Text conflict in mysql-test/suite/rpl/t/rpl_packet.test
Text conflict in mysql-test/t/disabled.def
Text conflict in mysql-test/t/events_bugs.test
Text conflict in mysql-test/t/log_state.test
Text conflict in mysql-test/t/myisam_data_pointer_size_func.test
Text conflict in mysql-test/t/mysqlcheck.test
Text conflict in mysql-test/t/query_cache.test
Text conflict in mysql-test/t/rpl_init_slave_func.test
Text conflict in mysql-test/t/status.test
removed:
mysql-test/suite/parts/r/partition_bit_ndb.result
mysql-test/suite/parts/t/partition_bit_ndb.test
mysql-test/suite/parts/t/partition_sessions.test
mysql-test/suite/sys_vars/inc/tmp_table_size_basic.inc
mysql-test/suite/sys_vars/r/tmp_table_size_basic_32.result
mysql-test/suite/sys_vars/r/tmp_table_size_basic_64.result
mysql-test/suite/sys_vars/t/tmp_table_size_basic_32.test
mysql-test/suite/sys_vars/t/tmp_table_size_basic_64.test
mysql-test/t/log_bin_trust_function_creators_func-master.opt
mysql-test/t/rpl_init_slave_func-slave.opt
added:
mysql-test/include/check_events_off.inc
mysql-test/include/cleanup_fake_relay_log.inc
mysql-test/include/have_simple_parser.inc
mysql-test/include/no_running_event_scheduler.inc
mysql-test/include/no_running_events.inc
mysql-test/include/running_event_scheduler.inc
mysql-test/include/setup_fake_relay_log.inc
mysql-test/include/wait_condition_sp.inc
mysql-test/r/fulltext_plugin.result
mysql-test/r/have_simple_parser.require
mysql-test/r/innodb_bug38231.result
mysql-test/r/innodb_bug39438.result
mysql-test/r/innodb_mysql_rbk.result
mysql-test/r/partition_innodb_semi_consistent.result
mysql-test/r/query_cache_28249.result
mysql-test/r/status2.result
mysql-test/std_data/bug40482-bin.000001
mysql-test/suite/binlog/r/binlog_innodb_row.result
mysql-test/suite/binlog/t/binlog_innodb_row.test
mysql-test/suite/rpl/r/rpl_binlog_corruption.result
mysql-test/suite/rpl/t/rpl_binlog_corruption-master.opt
mysql-test/suite/rpl/t/rpl_binlog_corruption.test
mysql-test/suite/sys_vars/r/tmp_table_size_basic.result
mysql-test/suite/sys_vars/t/tmp_table_size_basic.test
mysql-test/t/fulltext_plugin-master.opt
mysql-test/t/fulltext_plugin.test
mysql-test/t/innodb_bug38231.test
mysql-test/t/innodb_bug39438-master.opt
mysql-test/t/innodb_bug39438.test
mysql-test/t/innodb_mysql_rbk-master.opt
mysql-test/t/innodb_mysql_rbk.test
mysql-test/t/partition_innodb_semi_consistent-master.opt
mysql-test/t/partition_innodb_semi_consistent.test
mysql-test/t/query_cache_28249.test
mysql-test/t/status2.test
renamed:
mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result => mysql-test/suite/funcs_1/r/is_coll_char_set_appl.result
mysql-test/suite/funcs_1/t/is_collation_character_set_applicability.test => mysql-test/suite/funcs_1/t/is_coll_char_set_appl.test
modified:
.bzr-mysql/default.conf
CMakeLists.txt
client/mysql.cc
client/mysql_upgrade.c
client/mysqlcheck.c
client/mysqltest.cc
configure.in
extra/resolve_stack_dump.c
extra/yassl/include/openssl/ssl.h
include/config-win.h
include/m_ctype.h
include/my_global.h
mysql-test/extra/binlog_tests/database.test
mysql-test/extra/rpl_tests/rpl_auto_increment.test
mysql-test/include/commit.inc
mysql-test/include/have_32bit.inc
mysql-test/include/have_64bit.inc
mysql-test/include/index_merge1.inc
mysql-test/include/linux_sys_vars.inc
mysql-test/include/windows_sys_vars.inc
mysql-test/lib/mtr_report.pm
mysql-test/mysql-test-run.pl
mysql-test/r/alter_table.result
mysql-test/r/commit_1innodb.result
mysql-test/r/create.result
mysql-test/r/csv.result
mysql-test/r/ctype_ucs.result
mysql-test/r/date_formats.result
mysql-test/r/events_bugs.result
mysql-test/r/events_scheduling.result
mysql-test/r/fulltext.result
mysql-test/r/func_if.result
mysql-test/r/func_in.result
mysql-test/r/func_str.result
mysql-test/r/func_time.result
mysql-test/r/grant.result
mysql-test/r/index_merge_myisam.result
mysql-test/r/information_schema.result
mysql-test/r/innodb-autoinc.result
mysql-test/r/innodb.result
mysql-test/r/innodb_mysql.result
mysql-test/r/log_bin_trust_function_creators_func.result
mysql-test/r/log_state.result
mysql-test/r/myisampack.result
mysql-test/r/mysql.result
mysql-test/r/mysqlcheck.result
mysql-test/r/partition_datatype.result
mysql-test/r/partition_mgm.result
mysql-test/r/partition_pruning.result
mysql-test/r/query_cache.result
mysql-test/r/read_buffer_size_basic.result
mysql-test/r/read_rnd_buffer_size_basic.result
mysql-test/r/rpl_init_slave_func.result
mysql-test/r/select.result
mysql-test/r/status.result
mysql-test/r/strict.result
mysql-test/r/temp_table.result
mysql-test/r/type_bit.result
mysql-test/r/type_date.result
mysql-test/r/type_float.result
mysql-test/r/warnings_engine_disabled.result
mysql-test/r/xml.result
mysql-test/suite/binlog/r/binlog_database.result
mysql-test/suite/binlog/r/binlog_index.result
mysql-test/suite/binlog/r/binlog_innodb.result
mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result
mysql-test/suite/binlog/t/binlog_innodb.test
mysql-test/suite/funcs_1/r/is_columns_is.result
mysql-test/suite/funcs_1/r/is_engines.result
mysql-test/suite/funcs_1/r/storedproc.result
mysql-test/suite/funcs_1/storedproc/param_check.inc
mysql-test/suite/funcs_2/t/disabled.def
mysql-test/suite/ndb/t/disabled.def
mysql-test/suite/parts/r/partition_bit_innodb.result
mysql-test/suite/parts/r/partition_bit_myisam.result
mysql-test/suite/parts/r/partition_special_innodb.result
mysql-test/suite/parts/t/disabled.def
mysql-test/suite/parts/t/partition_special_innodb.test
mysql-test/suite/parts/t/partition_value_innodb.test
mysql-test/suite/parts/t/partition_value_myisam.test
mysql-test/suite/parts/t/partition_value_ndb.test
mysql-test/suite/rpl/r/rpl_auto_increment.result
mysql-test/suite/rpl/r/rpl_packet.result
mysql-test/suite/rpl/r/rpl_row_create_table.result
mysql-test/suite/rpl/r/rpl_slave_skip.result
mysql-test/suite/rpl/r/rpl_trigger.result
mysql-test/suite/rpl/t/disabled.def
mysql-test/suite/rpl/t/rpl_packet.test
mysql-test/suite/rpl/t/rpl_row_create_table.test
mysql-test/suite/rpl/t/rpl_slave_skip.test
mysql-test/suite/rpl/t/rpl_trigger.test
mysql-test/suite/rpl_ndb/t/disabled.def
mysql-test/suite/sys_vars/inc/key_buffer_size_basic.inc
mysql-test/suite/sys_vars/inc/sort_buffer_size_basic.inc
mysql-test/suite/sys_vars/r/key_buffer_size_basic_32.result
mysql-test/suite/sys_vars/r/key_buffer_size_basic_64.result
mysql-test/suite/sys_vars/r/sort_buffer_size_basic_32.result
mysql-test/suite/sys_vars/r/sort_buffer_size_basic_64.result
mysql-test/t/alter_table.test
mysql-test/t/create.test
mysql-test/t/csv.test
mysql-test/t/ctype_ucs.test
mysql-test/t/date_formats.test
mysql-test/t/disabled.def
mysql-test/t/events_bugs.test
mysql-test/t/events_scheduling.test
mysql-test/t/fulltext.test
mysql-test/t/func_if.test
mysql-test/t/func_in.test
mysql-test/t/func_str.test
mysql-test/t/func_time.test
mysql-test/t/grant.test
mysql-test/t/information_schema.test
mysql-test/t/innodb-autoinc.test
mysql-test/t/innodb.test
mysql-test/t/innodb_mysql.test
mysql-test/t/log_bin_trust_function_creators_func.test
mysql-test/t/log_state.test
mysql-test/t/myisam_data_pointer_size_func.test
mysql-test/t/myisampack.test
mysql-test/t/mysql.test
mysql-test/t/mysqlcheck.test
mysql-test/t/partition_innodb_stmt.test
mysql-test/t/partition_mgm.test
mysql-test/t/partition_pruning.test
mysql-test/t/query_cache.test
mysql-test/t/rpl_init_slave_func.test
mysql-test/t/select.test
mysql-test/t/status.test
mysql-test/t/strict.test
mysql-test/t/temp_table.test
mysql-test/t/type_bit.test
mysql-test/t/type_date.test
mysql-test/t/type_float.test
mysql-test/t/warnings_engine_disabled.test
mysql-test/t/xml.test
mysys/my_getopt.c
mysys/my_init.c
scripts/mysql_install_db.sh
sql-common/my_time.c
sql/field.cc
sql/field.h
sql/filesort.cc
sql/ha_partition.cc
sql/ha_partition.h
sql/item.cc
sql/item_cmpfunc.cc
sql/item_func.h
sql/item_strfunc.cc
sql/item_sum.cc
sql/item_timefunc.cc
sql/item_timefunc.h
sql/log.cc
sql/log.h
sql/log_event.cc
sql/log_event.h
sql/mysql_priv.h
sql/mysqld.cc
sql/opt_range.cc
sql/partition_info.cc
sql/repl_failsafe.cc
sql/rpl_constants.h
sql/set_var.cc
sql/slave.cc
sql/spatial.h
sql/sql_acl.cc
sql/sql_base.cc
sql/sql_binlog.cc
sql/sql_class.h
sql/sql_cursor.cc
sql/sql_delete.cc
sql/sql_lex.cc
sql/sql_lex.h
sql/sql_locale.cc
sql/sql_parse.cc
sql/sql_partition.cc
sql/sql_plugin.cc
sql/sql_plugin.h
sql/sql_profile.cc
sql/sql_repl.cc
sql/sql_select.cc
sql/sql_select.h
sql/sql_show.cc
sql/sql_table.cc
sql/sql_trigger.cc
sql/sql_trigger.h
sql/table.cc
sql/table.h
sql/unireg.cc
storage/csv/ha_tina.cc
storage/federated/ha_federated.cc
storage/heap/ha_heap.cc
storage/innobase/Makefile.am
storage/innobase/btr/btr0sea.c
storage/innobase/buf/buf0lru.c
storage/innobase/dict/dict0dict.c
storage/innobase/dict/dict0mem.c
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.h
storage/innobase/include/btr0sea.h
storage/innobase/include/dict0dict.h
storage/innobase/include/dict0mem.h
storage/innobase/include/ha_prototypes.h
storage/innobase/include/lock0lock.h
storage/innobase/include/row0mysql.h
storage/innobase/include/sync0sync.ic
storage/innobase/include/ut0ut.h
storage/innobase/lock/lock0lock.c
storage/innobase/os/os0file.c
storage/innobase/plug.in
storage/innobase/row/row0mysql.c
storage/innobase/row/row0sel.c
storage/innobase/srv/srv0srv.c
storage/innobase/srv/srv0start.c
storage/innobase/ut/ut0ut.c
storage/myisam/ft_boolean_search.c
strings/ctype.c
strings/xml.c
tests/mysql_client_test.c
win/configure.js
mysql-test/suite/funcs_1/t/is_coll_char_set_appl.test
------------------------------------------------------------------------
r4165 | calvin | 2009-02-12 01:34:27 +0200 (Thu, 12 Feb 2009) | 1 line
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1: minor non-functional changes.
------------------------------------------------------------------------
------------------------------------------------------------------------
r4263 | vasil | 2009-02-20 15:00:46 +0200 (Fri, 20 Feb 2009) | 4 lines
branches/zip:
Add a ChangeLog entry for a change in r4262.
------------------------------------------------------------------------
r4265 | marko | 2009-02-20 22:31:03 +0200 (Fri, 20 Feb 2009) | 5 lines
branches/zip: Make innodb_use_sys_malloc=ON the default.
Replace srv_use_sys_malloc with UNIV_LIKELY(srv_use_sys_malloc)
to improve branch prediction in the default case.
Approved by Ken over the IM.
------------------------------------------------------------------------
r4266 | vasil | 2009-02-20 23:29:32 +0200 (Fri, 20 Feb 2009) | 7 lines
branches/zip:
Add a sentence at the top of COPYING.Google to clarify that this license
does not apply to the whole InnoDB.
Suggested by: Ken
------------------------------------------------------------------------
r4268 | marko | 2009-02-23 12:43:51 +0200 (Mon, 23 Feb 2009) | 9 lines
branches/zip: Initialize ut_list_mutex at startup. Without this fix,
ut_list_mutex would be used uninitialized when innodb_use_sys_malloc=1.
This fix addresses Issue #181.
ut_mem_block_list_init(): Rename to ut_mem_init() and make public.
ut_malloc_low(), ut_free_all_mem(): Add ut_a(ut_mem_block_list_inited).
mem_init(): Call ut_mem_init().
------------------------------------------------------------------------
r4269 | marko | 2009-02-23 15:09:49 +0200 (Mon, 23 Feb 2009) | 7 lines
branches/zip: When freeing an uncompressed BLOB page, tolerate garbage in
FIL_PAGE_TYPE. (Bug #43043, Issue #182)
btr_check_blob_fil_page_type(): New function.
btr_free_externally_stored_field(), btr_copy_blob_prefix():
Call btr_check_blob_fil_page_type() to check FIL_PAGE_TYPE.
------------------------------------------------------------------------
r4272 | marko | 2009-02-23 23:10:18 +0200 (Mon, 23 Feb 2009) | 8 lines
branches/zip: Adjust the fix of Issue #182 in r4269 per Inaam's suggestion.
btr_check_blob_fil_page_type(): Replace the parameter
const char* op
with
ibool read. Do not print anything about page type mismatch
when reading a BLOB page in Antelope format.
Print space id before page number.
------------------------------------------------------------------------
r4273 | marko | 2009-02-24 00:11:11 +0200 (Tue, 24 Feb 2009) | 1 line
branches/zip: ut_mem_init(): Add the assertion !ut_mem_block_list_inited.
------------------------------------------------------------------------
r4274 | marko | 2009-02-24 00:14:38 +0200 (Tue, 24 Feb 2009) | 12 lines
branches/zip: Fix bugs in the fix of Issue #181. Tested inside and
outside Valgrind, with innodb_use_sys_malloc set to 0 and 1.
mem_init(): Invoke ut_mem_init() before mem_pool_create(), because
the latter one will invoke ut_malloc().
srv_general_init(): Do not initialize the memory subsystem (mem_init()).
innobase_init(): Initialize the memory subsystem (mem_init()) before
calling srv_parse_data_file_paths_and_sizes(), which needs ut_malloc().
Call ut_free_all_mem() in error handling to clean up after the mem_init().
------------------------------------------------------------------------
r4280 | marko | 2009-02-24 15:14:59 +0200 (Tue, 24 Feb 2009) | 1 line
branches/zip: Remove unused function os_mem_alloc_nocache().
------------------------------------------------------------------------
r4281 | marko | 2009-02-24 16:02:48 +0200 (Tue, 24 Feb 2009) | 1 line
branches/zip: Remove the unused function dict_index_get_type().
------------------------------------------------------------------------
r4283 | marko | 2009-02-24 23:06:56 +0200 (Tue, 24 Feb 2009) | 1 line
branches/zip: srv0start.c: Remove unnecessary #include "mem0pool.h".
------------------------------------------------------------------------
r4284 | marko | 2009-02-24 23:26:38 +0200 (Tue, 24 Feb 2009) | 1 line
branches/zip: mem0mem.c: Remove unnecessary #include "mach0data.h".
------------------------------------------------------------------------
r4288 | vasil | 2009-02-25 10:48:07 +0200 (Wed, 25 Feb 2009) | 21 lines
branches/zip: Merge revisions 4261:4287 from branches/5.1:
------------------------------------------------------------------------
r4287 | sunny | 2009-02-25 05:32:01 +0200 (Wed, 25 Feb 2009) | 10 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: Fix Bug#42714 AUTO_INCREMENT errors in 5.1.31. There are two
changes to the autoinc handling.
1. To fix the immediate problem from the bug report, we must ensure that the
value written to the table is always less than the max value stored in
dict_table_t.
2. The second related change is that according to MySQL documentation when
the offset is greater than the increment, we should ignore the offset.
------------------------------------------------------------------------
------------------------------------------------------------------------
r4289 | vasil | 2009-02-25 10:53:51 +0200 (Wed, 25 Feb 2009) | 4 lines
branches/zip:
Add ChangeLog entry for the fix in r4288.
------------------------------------------------------------------------
r4290 | vasil | 2009-02-25 11:05:44 +0200 (Wed, 25 Feb 2009) | 11 lines
branches/zip:
Make ChangeLog entries for bugs in bugs.mysql.com in the form:
Fix Bug#12345 bug title
(for bugs after 1.0.2 was released and the ChangeLog published)
There is no need to bloat the ChangeLog with information that is available
via bugs.mysql.com.
Discussed with: Marko
------------------------------------------------------------------------
r4291 | vasil | 2009-02-25 11:08:32 +0200 (Wed, 25 Feb 2009) | 4 lines
branches/zip:
Fix Bug synopsis and remove explanation
------------------------------------------------------------------------
r4292 | marko | 2009-02-25 12:09:15 +0200 (Wed, 25 Feb 2009) | 25 lines
branches/zip: Correct the initialization of the memory subsystem once
again, to finally put Issue #181 to rest.
Revert some parts of r4274. It is best not to call ut_malloc() before
srv_general_init().
mem_init(): Do not call ut_mem_init().
srv_general_init(): Initialize the memory subsystem in two phases:
first ut_mem_init(), then mem_init(). This is because os_sync_init()
and sync_init() depend on ut_mem_init() and mem_init() depends on
os_sync_init() or sync_init().
srv_parse_data_file_paths_and_sizes(),
srv_parse_log_group_home_dirs(): Remove the output parameters. Assign
to the global variables directly. Allocate memory with malloc()
instead of ut_malloc(), because these functions will be called before
srv_general_init().
srv_free_paths_and_sizes(): New function, for cleaning up after
srv_parse_data_file_paths_and_sizes() and
srv_parse_log_group_home_dirs().
rb://92 approved by Sunny Bains
------------------------------------------------------------------------
r4297 | vasil | 2009-02-25 17:19:19 +0200 (Wed, 25 Feb 2009) | 4 lines
branches/zip:
White-space cleanup in the ChangeLog
------------------------------------------------------------------------
r4301 | vasil | 2009-02-25 21:33:32 +0200 (Wed, 25 Feb 2009) | 5 lines
branches/zip:
Do not output the commands that restore the environment because they depend
on the state of the environment before the test starts executing.
------------------------------------------------------------------------
r4315 | vasil | 2009-02-26 09:21:20 +0200 (Thu, 26 Feb 2009) | 5 lines
branches/zip:
Apply any necessary patches to the mysql tree at the end of setup.sh
This step was previously done manually (and sometimes forgotten).
------------------------------------------------------------------------
r4319 | marko | 2009-02-26 23:27:51 +0200 (Thu, 26 Feb 2009) | 6 lines
branches/zip: btr_check_blob_fil_page_type(): Do not report
FIL_PAGE_TYPE mismatch even when purging a BLOB.
Heavy users may have large data files created with MySQL 5.0 or earlier,
and they don not want to have the error log flooded with such messages.
This fixes Issue #182.
------------------------------------------------------------------------
r4320 | inaam | 2009-02-27 02:13:19 +0200 (Fri, 27 Feb 2009) | 8 lines
branches/zip
This is to revert the changes made to the plug.in (r4251) as a fix for
issue# 178. Changes to plug.in will not propogate to a plugin
installation unless autotools are rerun which is unacceptable.
A fix for issue# 178 will be committed in a separate commit.
------------------------------------------------------------------------
r4321 | inaam | 2009-02-27 02:16:46 +0200 (Fri, 27 Feb 2009) | 6 lines
branches/zip
This is a fix for issue#178. Instead of using UNIV_LINUX which is
defined through CFLAGS we use compiler generated define __linux__
that is effective for both .c and .cc files.
------------------------------------------------------------------------
r4324 | vasil | 2009-02-27 13:27:18 +0200 (Fri, 27 Feb 2009) | 39 lines
branches/zip:
Add FreeBSD to the list of the operating systems that have
sizeof(pthread_t) == sizeof(void*) (i.e. word size).
On FreeBSD pthread_t is defined like:
/usr/include/sys/_pthreadtypes.h:
typedef struct pthread *pthread_t;
I did the following tests (per Inaam's recommendation):
a) appropriate version of GCC is available on that platform (4.1.2 or
higher for atomics to be available)
On FreeBSD 6.x the default compiler is 3.4.6, on FreeBSD 7.x the default
one is 4.2.1. One can always install the version of choice from the ports
collection. If gcc 3.x is used then HAVE_GCC_ATOMIC_BUILTINS will not be
defined and thus the change I am committing will make no difference.
b) find out if sizeof(pthread_t) == sizeof(long)
On 32 bit both are 4 bytes, on 64 bit both are 8 bytes.
c) find out the compiler generated platform define (e.g.: __aix, __sunos__
etc.)
The macro is __FreeBSD__.
d) patch univ.i with the appropriate platform define
e) build the mysql
f) ensure it is using atomic builtins (look at the err.log message at
system startup. It should say we are using atomics for both mutexes and
rw-locks)
g) do sanity testing (keeping in view the smp changes)
I ran the mysql-test suite. All tests pass.
------------------------------------------------------------------------
r4353 | vasil | 2009-03-05 09:27:29 +0200 (Thu, 05 Mar 2009) | 6 lines
branches/zip:
As suggested by Ken, print a message that says that the Google SMP patch
(GCC atomics) is disabled if it is. Also extend the message when the patch
is partially enabled to make it clear that it is partially enabled.
------------------------------------------------------------------------
r4356 | vasil | 2009-03-05 13:49:51 +0200 (Thu, 05 Mar 2009) | 4 lines
branches/zip:
Fix typo made in r4353.
------------------------------------------------------------------------
r4357 | vasil | 2009-03-05 16:38:59 +0200 (Thu, 05 Mar 2009) | 23 lines
branches/zip:
Implement a check whether pthread_t objects can be used by GCC atomic
builtin functions. This check is implemented in plug.in and defines the
macro HAVE_ATOMIC_PTHREAD_T. This macro is checked in univ.i and the
relevant part of the code enabled (the one that uses GCC atomics against
pthread_t objects).
In addition to this, the same program that is compiled as part of the
plug.in check is added in ut/ut0auxconf.c. In the InnoDB Plugin source
archives that are shipped to the users, a generated Makefile.in is added.
That Makefile.in will be modified to compile ut/ut0auxconf.c and define
the macro HAVE_ATOMIC_PTHREAD_T if the compilation succeeds. I.e.
Makefile.in will emulate the work that is done by plug.in. This is done in
order to make the check happen and HAVE_ATOMIC_PTHREAD_T eventually
defined without regenerating MySQL's ./configure from
./storage/innobase/plug.in. The point is not to ask users to install the
autotools and regenerate ./configure.
rb://95
Approved by: Marko
------------------------------------------------------------------------
r4360 | vasil | 2009-03-05 22:23:17 +0200 (Thu, 05 Mar 2009) | 21 lines
branches/zip: Merge revisions 4287:4357 from branches/5.1:
------------------------------------------------------------------------
r4325 | sunny | 2009-03-02 02:28:52 +0200 (Mon, 02 Mar 2009) | 10 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: Bug#43203: Overflow from auto incrementing causes server segv
It was not a SIGSEGV but an assertion failure. The assertion was checking
the invariant that *first_value passed in by MySQL doesn't contain a value
that is greater than the max value for that type. The assertion has been
changed to a check and if the value is greater than the max we report a
generic AUTOINC failure.
rb://93
Approved by Heikki
------------------------------------------------------------------------
------------------------------------------------------------------------
r4361 | vasil | 2009-03-05 22:27:54 +0200 (Thu, 05 Mar 2009) | 30 lines
branches/zip: Merge revision 4358 from branches/5.1 (resolving a conflict):
------------------------------------------------------------------------
r4358 | vasil | 2009-03-05 21:21:10 +0200 (Thu, 05 Mar 2009) | 21 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1:
Merge a change from MySQL:
------------------------------------------------------------
revno: 2728.19.1
committer: Alfranio Correia <alfranio.correia@sun.com>
branch nick: mysql-5.1-bugteam
timestamp: Tue 2009-02-03 11:36:46 +0000
message:
BUG#42445 Warning messages in innobase/handler/ha_innodb.cc
There was a type casting problem in the storage/innobase/handler/ha_innodb.cc,
(int ha_innobase::write_row(...)). Innobase uses has an internal error variable
of type 'ulint' while mysql uses an 'int'.
To fix the problem the function manipulates an error variable of
type 'ulint' and only casts it into 'int' when needs to return the value.
modified:
storage/innobase/handler/ha_innodb.cc
------------------------------------------------------------------------
------------------------------------------------------------------------
r4362 | vasil | 2009-03-05 22:29:07 +0200 (Thu, 05 Mar 2009) | 23 lines
branches/zip: Merge revision 4359 from branches/5.1:
------------------------------------------------------------------------
r4359 | vasil | 2009-03-05 21:42:01 +0200 (Thu, 05 Mar 2009) | 14 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1:
Merge a change from MySQL:
------------------------------------------------------------
revno: 2747
committer: Timothy Smith <timothy.smith@sun.com>
branch nick: 51
timestamp: Fri 2009-01-16 17:49:07 +0100
message:
Add another cast to ignore int/ulong difference in error types, silence warning on Win64
modified:
storage/innobase/handler/ha_innodb.cc
------------------------------------------------------------------------
------------------------------------------------------------------------
r4363 | vasil | 2009-03-05 22:31:37 +0200 (Thu, 05 Mar 2009) | 4 lines
branches/zip:
Add ChangeLog entry for the bugfix in c4360.
------------------------------------------------------------------------
r4378 | calvin | 2009-03-09 10:10:17 +0200 (Mon, 09 Mar 2009) | 7 lines
branches/zip: remove compile flag MYSQL_SERVER for dynamic plugin
The dynamic plugin on Windows used to be built with MYSQL_SERVER
compile flag, while it is not the case for other platforms.
r3797 assumed MYSQL_SERVER was not defined for dynamic plugin,
which introduced the engine crash during dropping a database.
------------------------------------------------------------------------
r4396 | marko | 2009-03-12 09:22:27 +0200 (Thu, 12 Mar 2009) | 3 lines
branches/zip: btr_store_big_rec_extern_fields(): Initialize FIL_PAGE_TYPE
in a separate redo log entry. This will make ibbackup --apply-log
debugging easier.
------------------------------------------------------------------------
r4397 | marko | 2009-03-12 09:26:11 +0200 (Thu, 12 Mar 2009) | 3 lines
branches/zip: trx_sys_create_doublewrite_buf(): As the dummy change,
initialize FIL_PAGE_TYPE. This will make it easier to write the debug
assertions for ibbackup --apply-log.
------------------------------------------------------------------------
r4401 | marko | 2009-03-12 10:26:40 +0200 (Thu, 12 Mar 2009) | 19 lines
branches/zip: Merge revisions 4359:4400 from branches/5.1:
------------------------------------------------------------------------
r4399 | marko | 2009-03-12 09:38:05 +0200 (Thu, 12 Mar 2009) | 2 lines
branches/5.1: row_sel_get_clust_rec_for_mysql(): Store the cursor position
also for unlock_row(). (Bug #39320)
------------------------------------------------------------------------
r4400 | marko | 2009-03-12 10:06:44 +0200 (Thu, 12 Mar 2009) | 5 lines
branches/5.1: Fix a bug in multi-table semi-consistent reads.
Remember the acquired record locks per table handle (row_prebuilt_t)
rather than per transaction (trx_t), so that unlock_row should successfully
unlock all non-matching rows in multi-table operations.
This deficiency was found while investigating Bug #39320.
------------------------------------------------------------------------
These were submitted as rb://94 and rb://96 and approved by Heikki Tuuri.
------------------------------------------------------------------------
r4455 | marko | 2009-03-16 11:43:34 +0200 (Mon, 16 Mar 2009) | 2 lines
branches/zip: UT_LIST_VALIDATE(): Add the parameter ASSERTION and
adjust all callers.
------------------------------------------------------------------------
r4456 | marko | 2009-03-16 12:59:25 +0200 (Mon, 16 Mar 2009) | 6 lines
branches/zip: UT_LIST_VALIDATE(): Assert that the link is non-NULL
before dereferencing it. In this way, ut_list_node_313 will be
pointing to the last non-NULL list item at the time of the assertion
failure. (gcc-4.3.2 -O3 seems to optimize the common subexpressions
and make the variable NULL, though.)
------------------------------------------------------------------------
r4457 | marko | 2009-03-16 14:12:02 +0200 (Mon, 16 Mar 2009) | 2 lines
branches/zip: sync_thread_add_level(): Make the assertions about
level == SYNC_BUF_BLOCK more readable.
------------------------------------------------------------------------
r4461 | vasil | 2009-03-17 09:38:19 +0200 (Tue, 17 Mar 2009) | 6 lines
branches/zip:
Remove mysql-test/patches/bug32625.diff because that bug was fixed in
the mysql repository (1 year and 4 months after sending them the simple
patch!). See http://bugs.mysql.com/32625
------------------------------------------------------------------------
r4465 | marko | 2009-03-17 12:34:19 +0200 (Tue, 17 Mar 2009) | 1 line
branches/zip: buf0buddy.c: Add and adjust some debug assertions.
------------------------------------------------------------------------
r4473 | vasil | 2009-03-17 15:50:30 +0200 (Tue, 17 Mar 2009) | 5 lines
branches/zip:
Increment the InnoDB Plugin version from 1.0.3 to 1.0.4 now that
1.0.3 has been released.
------------------------------------------------------------------------
r4478 | vasil | 2009-03-18 11:53:53 +0200 (Wed, 18 Mar 2009) | 5 lines
branches/zip:
Remove mysql-test/patches/bug41893.diff because that bug has been fixed
in the MySQL repository, see http://bugs.mysql.com/41893.
------------------------------------------------------------------------
r4479 | marko | 2009-03-18 12:43:54 +0200 (Wed, 18 Mar 2009) | 2 lines
branches/zip: buf_LRU_block_remove_hashed_page(): Add some debug assertions.
------------------------------------------------------------------------
r4480 | marko | 2009-03-18 14:32:13 +0200 (Wed, 18 Mar 2009) | 1 line
branches/zip: buf_buddy_free_low(): Correct the function comment.
------------------------------------------------------------------------
r4482 | marko | 2009-03-19 15:23:32 +0200 (Thu, 19 Mar 2009) | 12 lines
branches/zip: Merge revisions 4400:4481 from branches/5.1:
------------------------------------------------------------------------
r4481 | marko | 2009-03-19 15:01:48 +0200 (Thu, 19 Mar 2009) | 6 lines
branches/5.1: row_unlock_for_mysql(): Do not unlock records that were
modified by the current transaction. This bug was introduced or unmasked
in r4400.
rb://97 approved by Heikki Tuuri
------------------------------------------------------------------------
------------------------------------------------------------------------
r4490 | marko | 2009-03-20 12:33:33 +0200 (Fri, 20 Mar 2009) | 4 lines
branches/zip: Non-functional change for reducing dependencies in InnoDB Hot Backup:
Replace srv_sys->dummy_ind1 and srv_sys->dummy_ind2 with
dict_ind_redundant and dict_ind_compact, initialized in dict_init().
------------------------------------------------------------------------
r4491 | marko | 2009-03-20 12:45:18 +0200 (Fri, 20 Mar 2009) | 2 lines
branches/zip: Add const qualifiers or in/out comments to some function
parameters in log0log.
------------------------------------------------------------------------
r4492 | marko | 2009-03-20 12:52:14 +0200 (Fri, 20 Mar 2009) | 5 lines
branches/zip: page_validate(): Always report the space id and the
name of the index.
In Hot Backup, do not invoke comparison functions, as MySQL collations
will be unavailable.
------------------------------------------------------------------------
r4493 | marko | 2009-03-20 13:24:06 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: Replace fil_get_space_for_id_low() with fil_space_get_by_id().
------------------------------------------------------------------------
r4494 | marko | 2009-03-20 13:51:35 +0200 (Fri, 20 Mar 2009) | 3 lines
branches/zip: fil0fil.c: Refer to fil_system directly, not via local vars.
This eliminates some "unused variable" warnings when building
InnoDB Hot Backup in such a way that all mutex operations are no-ops.
------------------------------------------------------------------------
r4495 | marko | 2009-03-20 14:15:52 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: innobase_get_at_most_n_mbchars(): Declare in ha_prototypes.h.
------------------------------------------------------------------------
r4496 | marko | 2009-03-20 14:48:26 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: recv_recover_page(): Remove compile-time constant parameters.
------------------------------------------------------------------------
r4497 | marko | 2009-03-20 14:56:19 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: recv_sys_init(): Remove a compile-time constant parameter.
------------------------------------------------------------------------
r4498 | marko | 2009-03-20 15:08:05 +0200 (Fri, 20 Mar 2009) | 4 lines
branches/zip: Non-functional change: Add const qualifiers.
log_block_checksum_is_ok_or_old_format(), recv_sys_add_to_parsing_buf():
The log block is read-only. Make it const.
------------------------------------------------------------------------
r4499 | marko | 2009-03-20 15:10:25 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: recv_scan_log_recs(): Remove a compile-time constant parameter.
------------------------------------------------------------------------
r4500 | marko | 2009-03-20 15:47:17 +0200 (Fri, 20 Mar 2009) | 1 line
branches/zip: fil_init(): Add the parameter hash_size.
------------------------------------------------------------------------
r4501 | vasil | 2009-03-20 16:50:41 +0200 (Fri, 20 Mar 2009) | 4 lines
branches/zip:
Add any entry about the release of 1.0.3 in the ChangeLog.
------------------------------------------------------------------------
r4515 | marko | 2009-03-23 10:49:53 +0200 (Mon, 23 Mar 2009) | 1 line
branches/zip: hash_table_t: adaptive: Remove from UNIV_HOTBACKUP builds.
------------------------------------------------------------------------
r4516 | marko | 2009-03-23 10:57:16 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Define and use ASSERT_HASH_MUTEX_OWN.
Make it a no-op in UNIV_HOTBACKUP builds.
------------------------------------------------------------------------
r4517 | marko | 2009-03-23 11:07:20 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Define and use PAGE_ZIP_MATCH.
In UNIV_HOTBACKUP builds, assume fixed allocation.
------------------------------------------------------------------------
r4521 | marko | 2009-03-23 12:05:47 +0200 (Mon, 23 Mar 2009) | 1 line
branches/zip: buf_page_print(): Clean up the code #ifdef UNIV_HOTBACKUP.
------------------------------------------------------------------------
r4522 | marko | 2009-03-23 12:20:50 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Exclude some operating system interface code
from UNIV_HOTBACKUP builds.
------------------------------------------------------------------------
r4523 | marko | 2009-03-23 13:00:43 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Remove the remaining references to hash_table_t::adapive
from UNIV_HOTBACKUP builds. This should have been done in r4515.
------------------------------------------------------------------------
r4524 | marko | 2009-03-23 14:05:18 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Enclose recv_recovery_from_backup_on and
recv_recovery_from_backup_is_on() in #ifdef UNIV_LOG_ARCHIVE.
------------------------------------------------------------------------
r4525 | marko | 2009-03-23 14:57:45 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: recv_parse_or_apply_log_rec_body(): Add debug assertions
ensuring that FIL_PAGE_TYPE makes sense when applying log records.
------------------------------------------------------------------------
r4526 | marko | 2009-03-23 16:21:34 +0200 (Mon, 23 Mar 2009) | 2 lines
branches/zip: Remove unneeded definitions and dependencies
from UNIV_HOTBACKUP builds.
------------------------------------------------------------------------
r4527 | calvin | 2009-03-23 23:15:33 +0200 (Mon, 23 Mar 2009) | 5 lines
branches/zip: adjust build files on Windows
Adjust the patch positions based on the latest MySQL source.
Also add the patches to the .bat files for vs9.
------------------------------------------------------------------------
2009-03-24 08:32:21 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
|
|
|
Copyright (c) 1995, 2009, Innobase Oy. All Rights Reserved.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU General Public License as published by the Free Software
|
|
|
|
Foundation; version 2 of the License.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
|
|
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
|
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
#include "univ.i"
|
2008-02-06 13:14:42 +00:00
|
|
|
#line 2 "lexyy.c"
|
2006-04-12 09:32:17 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
#line 4 "lexyy.c"
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_INT_ALIGNED short int
|
|
|
|
|
|
|
|
/* A lexical scanner generated by flex */
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
#define FLEX_SCANNER
|
|
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
|
|
#define YY_FLEX_MINOR_VERSION 5
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_FLEX_SUBMINOR_VERSION 31
|
|
|
|
#if YY_FLEX_SUBMINOR_VERSION > 0
|
|
|
|
#define FLEX_BETA
|
|
|
|
#endif
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* First, we deal with platform-specific or compiler-specific issues. */
|
|
|
|
|
|
|
|
/* begin standard C headers. */
|
2005-10-27 07:29:40 +00:00
|
|
|
#include <stdio.h>
|
2006-02-17 14:19:39 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdlib.h>
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* end standard C headers. */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* flex integer type definitions */
|
|
|
|
|
|
|
|
#ifndef FLEXINT_H
|
|
|
|
#define FLEXINT_H
|
|
|
|
|
|
|
|
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
|
|
|
|
|
|
|
|
#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
|
|
|
|
#include <inttypes.h>
|
|
|
|
typedef int8_t flex_int8_t;
|
|
|
|
typedef uint8_t flex_uint8_t;
|
|
|
|
typedef int16_t flex_int16_t;
|
|
|
|
typedef uint16_t flex_uint16_t;
|
|
|
|
typedef int32_t flex_int32_t;
|
|
|
|
typedef uint32_t flex_uint32_t;
|
|
|
|
#else
|
|
|
|
typedef signed char flex_int8_t;
|
|
|
|
typedef short int flex_int16_t;
|
|
|
|
typedef int flex_int32_t;
|
|
|
|
typedef unsigned char flex_uint8_t;
|
|
|
|
typedef unsigned short int flex_uint16_t;
|
|
|
|
typedef unsigned int flex_uint32_t;
|
|
|
|
#endif /* ! C99 */
|
|
|
|
|
|
|
|
/* Limits of integral types. */
|
|
|
|
#ifndef INT8_MIN
|
|
|
|
#define INT8_MIN (-128)
|
|
|
|
#endif
|
|
|
|
#ifndef INT16_MIN
|
|
|
|
#define INT16_MIN (-32767-1)
|
|
|
|
#endif
|
|
|
|
#ifndef INT32_MIN
|
|
|
|
#define INT32_MIN (-2147483647-1)
|
|
|
|
#endif
|
|
|
|
#ifndef INT8_MAX
|
|
|
|
#define INT8_MAX (127)
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef INT16_MAX
|
|
|
|
#define INT16_MAX (32767)
|
|
|
|
#endif
|
|
|
|
#ifndef INT32_MAX
|
|
|
|
#define INT32_MAX (2147483647)
|
|
|
|
#endif
|
|
|
|
#ifndef UINT8_MAX
|
|
|
|
#define UINT8_MAX (255U)
|
|
|
|
#endif
|
|
|
|
#ifndef UINT16_MAX
|
|
|
|
#define UINT16_MAX (65535U)
|
|
|
|
#endif
|
|
|
|
#ifndef UINT32_MAX
|
|
|
|
#define UINT32_MAX (4294967295U)
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#endif /* ! FLEXINT_H */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
|
|
/* The "const" storage-class-modifier is valid. */
|
|
|
|
#define YY_USE_CONST
|
|
|
|
|
|
|
|
#else /* ! __cplusplus */
|
|
|
|
|
|
|
|
#if __STDC__
|
|
|
|
|
|
|
|
#define YY_USE_CONST
|
|
|
|
|
|
|
|
#endif /* __STDC__ */
|
|
|
|
#endif /* ! __cplusplus */
|
|
|
|
|
|
|
|
#ifdef YY_USE_CONST
|
|
|
|
#define yyconst const
|
|
|
|
#else
|
|
|
|
#define yyconst
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Returned upon end-of-file. */
|
|
|
|
#define YY_NULL 0
|
|
|
|
|
|
|
|
/* Promotes a possibly negative, possibly signed char to an unsigned
|
|
|
|
* integer for use as an array index. If the signed char is negative,
|
|
|
|
* we want to instead treat it as an 8-bit unsigned char, hence the
|
|
|
|
* double cast.
|
|
|
|
*/
|
|
|
|
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
|
|
|
|
|
|
|
|
/* Enter a start condition. This macro really ought to take a parameter,
|
|
|
|
* but we do it the disgusting crufty way forced on us by the ()-less
|
|
|
|
* definition of BEGIN.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
#define BEGIN (yy_start) = 1 + 2 *
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Translate the current start state into a value that can be later handed
|
|
|
|
* to BEGIN to return to the state. The YYSTATE alias is for lex
|
|
|
|
* compatibility.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_START (((yy_start) - 1) / 2)
|
2005-10-27 07:29:40 +00:00
|
|
|
#define YYSTATE YY_START
|
|
|
|
|
|
|
|
/* Action number for EOF rule of a given start state. */
|
|
|
|
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
|
|
|
|
|
|
|
|
/* Special action meaning "start processing a new file". */
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_NEW_FILE yyrestart(yyin )
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#define YY_END_OF_BUFFER_CHAR 0
|
|
|
|
|
|
|
|
/* Size of default input buffer. */
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_BUF_SIZE
|
2005-10-27 07:29:40 +00:00
|
|
|
#define YY_BUF_SIZE 16384
|
2006-02-17 14:19:39 +00:00
|
|
|
#endif
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
|
|
|
|
#define YY_TYPEDEF_YY_BUFFER_STATE
|
2005-10-27 07:29:40 +00:00
|
|
|
typedef struct yy_buffer_state *YY_BUFFER_STATE;
|
2006-02-17 14:19:39 +00:00
|
|
|
#endif
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static int yyleng;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static FILE *yyin, *yyout;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#define EOB_ACT_CONTINUE_SCAN 0
|
|
|
|
#define EOB_ACT_END_OF_FILE 1
|
|
|
|
#define EOB_ACT_LAST_MATCH 2
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_LESS_LINENO(n)
|
|
|
|
|
|
|
|
/* Return all but the first "n" matched characters back to the input stream. */
|
2005-10-27 07:29:40 +00:00
|
|
|
#define yyless(n) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
/* Undo effects of setting up yytext. */ \
|
2006-02-17 14:19:39 +00:00
|
|
|
int yyless_macro_arg = (n); \
|
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\
|
|
|
|
*yy_cp = (yy_hold_char); \
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RESTORE_YY_MORE_OFFSET \
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
|
|
|
|
} \
|
|
|
|
while ( 0 )
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define unput(c) yyunput( c, (yytext_ptr) )
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* The following is because we cannot portably get our hands on size_t
|
|
|
|
* (without autoconf's help, which isn't available because we want
|
|
|
|
* flex-generated scanners to compile on their own).
|
|
|
|
*/
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_TYPEDEF_YY_SIZE_T
|
|
|
|
#define YY_TYPEDEF_YY_SIZE_T
|
|
|
|
typedef unsigned int yy_size_t;
|
|
|
|
#endif
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_STRUCT_YY_BUFFER_STATE
|
|
|
|
#define YY_STRUCT_YY_BUFFER_STATE
|
2005-10-27 07:29:40 +00:00
|
|
|
struct yy_buffer_state
|
|
|
|
{
|
|
|
|
FILE *yy_input_file;
|
|
|
|
|
|
|
|
char *yy_ch_buf; /* input buffer */
|
|
|
|
char *yy_buf_pos; /* current position in input buffer */
|
|
|
|
|
|
|
|
/* Size of input buffer in bytes, not including room for EOB
|
|
|
|
* characters.
|
|
|
|
*/
|
|
|
|
yy_size_t yy_buf_size;
|
|
|
|
|
|
|
|
/* Number of characters read into yy_ch_buf, not including EOB
|
|
|
|
* characters.
|
|
|
|
*/
|
|
|
|
int yy_n_chars;
|
|
|
|
|
|
|
|
/* Whether we "own" the buffer - i.e., we know we created it,
|
|
|
|
* and can realloc() it to grow it, and should free() it to
|
|
|
|
* delete it.
|
|
|
|
*/
|
|
|
|
int yy_is_our_buffer;
|
|
|
|
|
|
|
|
/* Whether this is an "interactive" input source; if so, and
|
|
|
|
* if we're using stdio for input, then we want to use getc()
|
|
|
|
* instead of fread(), to make sure we stop fetching input after
|
|
|
|
* each newline.
|
|
|
|
*/
|
|
|
|
int yy_is_interactive;
|
|
|
|
|
|
|
|
/* Whether we're considered to be at the beginning of a line.
|
|
|
|
* If so, '^' rules will be active on the next match, otherwise
|
|
|
|
* not.
|
|
|
|
*/
|
|
|
|
int yy_at_bol;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
int yy_bs_lineno; /**< The line count. */
|
|
|
|
int yy_bs_column; /**< The column count. */
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
/* Whether to try to fill the input buffer when we reach the
|
|
|
|
* end of it.
|
|
|
|
*/
|
|
|
|
int yy_fill_buffer;
|
|
|
|
|
|
|
|
int yy_buffer_status;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
#define YY_BUFFER_NEW 0
|
|
|
|
#define YY_BUFFER_NORMAL 1
|
|
|
|
/* When an EOF's been seen but there's still some text to process
|
|
|
|
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
|
|
|
|
* shouldn't try reading from the input source any more. We might
|
|
|
|
* still have a bunch of tokens to match, though, because of
|
|
|
|
* possible backing-up.
|
|
|
|
*
|
|
|
|
* When we actually see the EOF, we change the status to "new"
|
|
|
|
* (via yyrestart()), so that the user can continue scanning by
|
|
|
|
* just pointing yyin at a new input file.
|
|
|
|
*/
|
|
|
|
#define YY_BUFFER_EOF_PENDING 2
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
};
|
2006-02-17 14:19:39 +00:00
|
|
|
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Stack of input buffers. */
|
|
|
|
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
|
|
|
|
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
|
|
|
|
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* We provide macros for accessing buffer states in case in the
|
|
|
|
* future we want to put the buffer states in a more general
|
|
|
|
* "scanner state".
|
2006-02-17 14:19:39 +00:00
|
|
|
*
|
|
|
|
* Returns the top of the stack, or NULL.
|
2005-10-27 07:29:40 +00:00
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
|
|
|
|
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
|
|
|
|
: NULL)
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Same as previous macro, but useful when we know that the buffer stack is not
|
|
|
|
* NULL or when we need an lvalue. For internal use only.
|
|
|
|
*/
|
|
|
|
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* yy_hold_char holds the character lost when yytext is formed. */
|
|
|
|
static char yy_hold_char;
|
|
|
|
static int yy_n_chars; /* number of characters read into yy_ch_buf */
|
2008-02-06 13:14:42 +00:00
|
|
|
static int yyleng;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Points to current character in buffer. */
|
|
|
|
static char *yy_c_buf_p = (char *) 0;
|
|
|
|
static int yy_init = 1; /* whether we need to initialize */
|
|
|
|
static int yy_start = 0; /* start state number */
|
|
|
|
|
|
|
|
/* Flag which is used to allow yywrap()'s to do buffer switches
|
|
|
|
* instead of setting up a fresh yyin. A bit of a hack ...
|
|
|
|
*/
|
|
|
|
static int yy_did_buffer_switch_on_eof;
|
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static void yyrestart (FILE *input_file );
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
|
2008-02-06 13:14:42 +00:00
|
|
|
static YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
|
|
|
|
static void yy_delete_buffer (YY_BUFFER_STATE b );
|
|
|
|
static void yy_flush_buffer (YY_BUFFER_STATE b );
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
|
|
|
|
__attribute__((unused)) static void yypop_buffer_state (void );
|
2006-02-17 14:19:39 +00:00
|
|
|
|
|
|
|
static void yyensure_buffer_stack (void );
|
|
|
|
static void yy_load_buffer_state (void );
|
|
|
|
static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-07 10:03:54 +00:00
|
|
|
YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
|
|
|
|
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
|
|
|
|
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static void *yyalloc (yy_size_t );
|
|
|
|
static void *yyrealloc (void *,yy_size_t );
|
|
|
|
static void yyfree (void * );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#define yy_new_buffer yy_create_buffer
|
|
|
|
|
|
|
|
#define yy_set_interactive(is_interactive) \
|
|
|
|
{ \
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! YY_CURRENT_BUFFER ){ \
|
|
|
|
yyensure_buffer_stack (); \
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = \
|
|
|
|
yy_create_buffer(yyin,YY_BUF_SIZE ); \
|
|
|
|
} \
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#define yy_set_bol(at_bol) \
|
|
|
|
{ \
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! YY_CURRENT_BUFFER ){\
|
|
|
|
yyensure_buffer_stack (); \
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = \
|
|
|
|
yy_create_buffer(yyin,YY_BUF_SIZE ); \
|
|
|
|
} \
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Begin user sect3 */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define yywrap(n) 1
|
2005-10-27 07:29:40 +00:00
|
|
|
#define YY_SKIP_YYWRAP
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
typedef unsigned char YY_CHAR;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
typedef int yy_state_type;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static int yylineno;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static int yylineno = 1;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static char *yytext;
|
2005-10-27 07:29:40 +00:00
|
|
|
#define yytext_ptr yytext
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
static yy_state_type yy_get_previous_state (void );
|
|
|
|
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
|
|
|
|
static int yy_get_next_buffer (void );
|
|
|
|
static void yy_fatal_error (yyconst char msg[] );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Done after the current pattern has been matched and before the
|
|
|
|
* corresponding action - sets up yytext.
|
|
|
|
*/
|
|
|
|
#define YY_DO_BEFORE_ACTION \
|
2006-02-17 14:19:39 +00:00
|
|
|
(yytext_ptr) = yy_bp; \
|
|
|
|
yyleng = (size_t) (yy_cp - yy_bp); \
|
|
|
|
(yy_hold_char) = *yy_cp; \
|
2005-10-27 07:29:40 +00:00
|
|
|
*yy_cp = '\0'; \
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = yy_cp;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
#define YY_NUM_RULES 119
|
|
|
|
#define YY_END_OF_BUFFER 120
|
2006-02-17 14:19:39 +00:00
|
|
|
/* This struct is not used in this scanner,
|
|
|
|
but its presence is necessary. */
|
|
|
|
struct yy_trans_info
|
|
|
|
{
|
|
|
|
flex_int32_t yy_verify;
|
|
|
|
flex_int32_t yy_nxt;
|
|
|
|
};
|
2006-06-13 20:23:26 +00:00
|
|
|
static yyconst flex_int16_t yy_accept[399] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
2006-06-13 20:23:26 +00:00
|
|
|
0, 0, 114, 114, 0, 0, 0, 0, 120, 118,
|
|
|
|
117, 117, 8, 118, 109, 5, 98, 104, 107, 105,
|
|
|
|
102, 106, 118, 108, 1, 118, 103, 101, 99, 100,
|
|
|
|
112, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
110, 111, 114, 115, 6, 7, 9, 10, 117, 4,
|
|
|
|
93, 113, 2, 1, 3, 94, 95, 97, 96, 92,
|
|
|
|
92, 92, 92, 92, 92, 44, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 28, 17, 25, 92, 92, 92, 92, 92,
|
|
|
|
|
|
|
|
54, 61, 92, 14, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 114, 115, 115, 116, 6, 7, 9, 10,
|
|
|
|
2, 13, 45, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 27, 92, 92, 92, 41, 92, 92, 92, 92,
|
|
|
|
21, 92, 92, 92, 92, 15, 92, 92, 92, 18,
|
|
|
|
92, 92, 92, 92, 92, 80, 92, 92, 92, 51,
|
|
|
|
92, 12, 92, 36, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 20, 24,
|
|
|
|
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
46, 92, 92, 30, 92, 87, 92, 92, 39, 92,
|
|
|
|
92, 92, 92, 92, 48, 92, 89, 32, 91, 92,
|
|
|
|
11, 64, 92, 92, 92, 42, 92, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 29, 92, 92, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 85, 92, 26, 92,
|
|
|
|
66, 92, 92, 92, 37, 92, 92, 92, 92, 92,
|
|
|
|
92, 92, 31, 65, 23, 92, 57, 92, 75, 92,
|
|
|
|
92, 92, 43, 92, 92, 92, 92, 92, 92, 92,
|
|
|
|
92, 90, 92, 92, 56, 92, 92, 92, 92, 92,
|
|
|
|
|
|
|
|
92, 92, 40, 33, 79, 19, 92, 83, 74, 55,
|
|
|
|
92, 63, 92, 52, 92, 92, 92, 47, 92, 76,
|
|
|
|
92, 78, 92, 92, 34, 92, 92, 92, 35, 72,
|
|
|
|
92, 92, 92, 92, 58, 92, 50, 49, 92, 92,
|
|
|
|
53, 62, 92, 92, 92, 22, 92, 92, 73, 81,
|
|
|
|
92, 92, 77, 92, 68, 92, 92, 92, 92, 38,
|
|
|
|
92, 88, 67, 92, 84, 92, 92, 92, 86, 92,
|
|
|
|
59, 92, 16, 92, 70, 69, 92, 92, 82, 92,
|
|
|
|
92, 92, 92, 92, 92, 92, 92, 92, 92, 71,
|
|
|
|
92, 92, 92, 92, 92, 92, 60, 0
|
2006-04-12 09:32:17 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
static yyconst flex_int32_t yy_ec[256] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2006-05-08 06:18:59 +00:00
|
|
|
1, 2, 1, 4, 1, 5, 6, 1, 7, 8,
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 16, 16,
|
|
|
|
16, 16, 16, 16, 16, 16, 16, 17, 18, 19,
|
|
|
|
20, 21, 22, 1, 23, 24, 25, 26, 27, 28,
|
|
|
|
29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
|
|
|
|
39, 40, 41, 42, 43, 44, 45, 46, 47, 32,
|
|
|
|
1, 1, 1, 1, 48, 1, 32, 32, 32, 32,
|
|
|
|
|
|
|
|
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
|
|
|
32, 32, 32, 32, 32, 32, 32, 32, 32, 32,
|
|
|
|
32, 32, 49, 1, 50, 1, 1, 1, 1, 1,
|
2005-10-27 07:29:40 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1
|
|
|
|
} ;
|
|
|
|
|
2006-05-08 06:18:59 +00:00
|
|
|
static yyconst flex_int32_t yy_meta[51] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
2006-05-08 06:18:59 +00:00
|
|
|
1, 1, 1, 2, 1, 1, 3, 1, 1, 4,
|
|
|
|
1, 1, 1, 1, 1, 5, 1, 1, 1, 6,
|
|
|
|
1, 1, 5, 5, 5, 5, 5, 5, 5, 5,
|
2006-04-12 09:32:17 +00:00
|
|
|
5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
|
2006-05-08 06:18:59 +00:00
|
|
|
5, 5, 5, 5, 5, 5, 5, 5, 1, 1
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
static yyconst flex_int16_t yy_base[409] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
2006-06-13 20:23:26 +00:00
|
|
|
0, 0, 437, 436, 438, 437, 439, 438, 441, 448,
|
|
|
|
49, 51, 448, 0, 448, 448, 448, 448, 448, 448,
|
|
|
|
448, 448, 426, 429, 41, 418, 448, 38, 448, 417,
|
|
|
|
448, 20, 33, 32, 46, 40, 44, 0, 54, 52,
|
|
|
|
399, 48, 60, 395, 65, 67, 81, 27, 411, 75,
|
|
|
|
448, 448, 0, 98, 0, 426, 0, 428, 113, 0,
|
|
|
|
448, 448, 415, 54, 410, 448, 448, 448, 448, 0,
|
|
|
|
403, 68, 399, 391, 389, 0, 402, 80, 84, 397,
|
|
|
|
383, 96, 381, 394, 379, 393, 387, 375, 379, 375,
|
|
|
|
377, 377, 0, 98, 0, 376, 97, 385, 368, 375,
|
|
|
|
|
|
|
|
0, 0, 381, 381, 364, 94, 103, 379, 98, 65,
|
|
|
|
381, 369, 109, 361, 377, 373, 351, 97, 372, 363,
|
|
|
|
115, 356, 0, 137, 138, 448, 0, 388, 0, 390,
|
|
|
|
377, 0, 0, 365, 360, 367, 365, 348, 346, 345,
|
|
|
|
350, 359, 347, 359, 95, 347, 353, 354, 336, 336,
|
|
|
|
123, 0, 334, 350, 351, 0, 338, 347, 344, 122,
|
|
|
|
124, 341, 336, 330, 340, 338, 331, 328, 336, 0,
|
|
|
|
326, 336, 334, 325, 315, 309, 322, 307, 327, 0,
|
|
|
|
313, 0, 311, 0, 325, 316, 313, 131, 309, 316,
|
|
|
|
323, 302, 304, 309, 309, 301, 304, 299, 0, 0,
|
|
|
|
|
|
|
|
311, 295, 305, 312, 292, 291, 305, 294, 307, 287,
|
|
|
|
0, 297, 279, 0, 298, 0, 295, 282, 0, 281,
|
|
|
|
276, 281, 280, 290, 0, 276, 0, 0, 0, 280,
|
|
|
|
0, 0, 276, 273, 287, 0, 272, 272, 270, 286,
|
|
|
|
271, 283, 280, 264, 282, 277, 0, 272, 272, 258,
|
|
|
|
257, 270, 256, 270, 269, 268, 0, 252, 0, 246,
|
|
|
|
0, 265, 249, 248, 0, 262, 252, 247, 246, 258,
|
|
|
|
248, 247, 0, 0, 0, 251, 0, 239, 0, 253,
|
|
|
|
249, 235, 0, 249, 250, 233, 238, 231, 249, 231,
|
|
|
|
228, 0, 229, 226, 0, 231, 243, 230, 237, 227,
|
|
|
|
|
|
|
|
235, 220, 0, 0, 0, 212, 219, 0, 0, 0,
|
|
|
|
216, 0, 230, 0, 231, 218, 217, 0, 213, 0,
|
|
|
|
216, 0, 208, 210, 0, 209, 223, 216, 0, 0,
|
|
|
|
219, 222, 204, 219, 0, 215, 0, 0, 199, 213,
|
|
|
|
0, 0, 197, 196, 201, 0, 210, 195, 0, 0,
|
|
|
|
201, 197, 0, 192, 0, 204, 204, 192, 202, 0,
|
|
|
|
179, 0, 0, 199, 0, 183, 177, 183, 0, 174,
|
|
|
|
0, 193, 0, 192, 0, 0, 183, 187, 0, 174,
|
|
|
|
174, 180, 166, 189, 181, 180, 166, 151, 118, 0,
|
|
|
|
130, 136, 127, 123, 119, 111, 0, 448, 167, 173,
|
|
|
|
|
|
|
|
179, 152, 181, 124, 187, 193, 199, 205
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
static yyconst flex_int16_t yy_def[409] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
2006-06-13 20:23:26 +00:00
|
|
|
398, 1, 399, 399, 400, 400, 401, 401, 398, 398,
|
|
|
|
398, 398, 398, 402, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 403, 398, 398, 398, 398,
|
|
|
|
398, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
398, 398, 405, 406, 407, 398, 408, 398, 398, 402,
|
|
|
|
398, 398, 398, 398, 403, 398, 398, 398, 398, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 405, 406, 406, 398, 407, 398, 408, 398,
|
|
|
|
398, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 404, 404, 404,
|
|
|
|
404, 404, 404, 404, 404, 404, 404, 0, 398, 398,
|
|
|
|
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
static yyconst flex_int16_t yy_nxt[499] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
2006-04-12 09:32:17 +00:00
|
|
|
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
|
|
|
|
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
|
2006-05-08 06:18:59 +00:00
|
|
|
30, 31, 32, 33, 34, 35, 36, 37, 38, 38,
|
2006-06-13 20:23:26 +00:00
|
|
|
39, 38, 38, 40, 41, 42, 43, 44, 38, 45,
|
|
|
|
46, 47, 48, 49, 50, 38, 38, 38, 51, 52,
|
|
|
|
59, 59, 59, 59, 63, 71, 64, 67, 68, 73,
|
|
|
|
72, 77, 118, 74, 119, 78, 75, 63, 79, 64,
|
|
|
|
88, 80, 82, 85, 81, 86, 83, 89, 96, 76,
|
|
|
|
90, 93, 84, 91, 99, 87, 92, 101, 97, 94,
|
|
|
|
100, 107, 133, 110, 95, 102, 111, 103, 179, 104,
|
|
|
|
|
|
|
|
108, 109, 105, 115, 121, 112, 180, 125, 134, 113,
|
|
|
|
116, 122, 126, 114, 59, 59, 139, 117, 141, 142,
|
|
|
|
146, 163, 140, 159, 171, 173, 143, 189, 70, 147,
|
|
|
|
172, 177, 183, 164, 207, 208, 148, 190, 160, 161,
|
|
|
|
174, 193, 178, 184, 175, 194, 398, 125, 222, 214,
|
|
|
|
224, 398, 126, 215, 248, 249, 60, 397, 396, 395,
|
|
|
|
225, 394, 393, 223, 392, 391, 250, 53, 53, 53,
|
|
|
|
53, 53, 53, 55, 55, 55, 55, 55, 55, 57,
|
|
|
|
57, 57, 57, 57, 57, 65, 65, 123, 123, 123,
|
|
|
|
390, 123, 123, 124, 124, 124, 124, 124, 124, 127,
|
|
|
|
|
|
|
|
127, 389, 127, 127, 127, 129, 388, 129, 129, 129,
|
|
|
|
129, 387, 386, 385, 384, 383, 382, 381, 380, 379,
|
|
|
|
378, 377, 376, 375, 374, 373, 372, 371, 370, 369,
|
|
|
|
368, 367, 366, 365, 364, 363, 362, 361, 360, 359,
|
|
|
|
358, 357, 356, 355, 354, 353, 352, 351, 350, 349,
|
|
|
|
348, 347, 346, 345, 344, 343, 342, 341, 340, 339,
|
|
|
|
338, 337, 336, 335, 334, 333, 332, 331, 330, 329,
|
|
|
|
328, 327, 326, 325, 324, 323, 322, 321, 320, 319,
|
|
|
|
318, 317, 316, 315, 314, 313, 312, 311, 310, 309,
|
|
|
|
308, 307, 306, 305, 304, 303, 302, 301, 300, 299,
|
|
|
|
|
|
|
|
298, 297, 296, 295, 294, 293, 292, 291, 290, 289,
|
|
|
|
288, 287, 286, 285, 284, 283, 282, 281, 280, 279,
|
|
|
|
278, 277, 276, 275, 274, 273, 272, 271, 270, 269,
|
|
|
|
268, 267, 266, 265, 264, 263, 262, 261, 260, 259,
|
|
|
|
258, 257, 256, 255, 254, 253, 252, 251, 247, 246,
|
|
|
|
245, 244, 243, 242, 241, 240, 239, 238, 237, 236,
|
|
|
|
235, 234, 233, 232, 231, 230, 229, 228, 227, 226,
|
|
|
|
221, 220, 219, 218, 217, 216, 213, 212, 211, 210,
|
|
|
|
209, 206, 205, 204, 203, 202, 201, 200, 199, 198,
|
|
|
|
197, 196, 131, 130, 128, 195, 192, 191, 188, 187,
|
|
|
|
|
|
|
|
186, 185, 182, 181, 176, 170, 169, 168, 167, 166,
|
|
|
|
165, 162, 158, 157, 156, 155, 154, 153, 152, 151,
|
|
|
|
150, 149, 145, 144, 138, 137, 136, 135, 132, 398,
|
|
|
|
131, 130, 128, 120, 106, 98, 69, 66, 62, 61,
|
|
|
|
398, 58, 58, 56, 56, 54, 54, 9, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398
|
2006-04-12 09:32:17 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
static yyconst flex_int16_t yy_chk[499] =
|
2005-10-27 07:29:40 +00:00
|
|
|
{ 0,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2006-05-08 06:18:59 +00:00
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
11, 11, 12, 12, 25, 32, 25, 28, 28, 33,
|
2006-06-13 20:23:26 +00:00
|
|
|
32, 34, 48, 33, 48, 34, 33, 64, 34, 64,
|
2006-05-08 06:18:59 +00:00
|
|
|
37, 34, 35, 36, 34, 36, 35, 37, 40, 33,
|
2006-06-13 20:23:26 +00:00
|
|
|
37, 39, 35, 37, 42, 36, 37, 43, 40, 39,
|
|
|
|
42, 45, 72, 46, 39, 43, 46, 43, 110, 43,
|
|
|
|
|
|
|
|
45, 45, 43, 47, 50, 46, 110, 54, 72, 46,
|
|
|
|
47, 50, 54, 46, 59, 59, 78, 47, 79, 79,
|
|
|
|
82, 97, 78, 94, 106, 107, 79, 118, 404, 82,
|
|
|
|
106, 109, 113, 97, 145, 145, 82, 118, 94, 94,
|
|
|
|
107, 121, 109, 113, 107, 121, 124, 125, 160, 151,
|
|
|
|
161, 124, 125, 151, 188, 188, 402, 396, 395, 394,
|
|
|
|
161, 393, 392, 160, 391, 389, 188, 399, 399, 399,
|
|
|
|
399, 399, 399, 400, 400, 400, 400, 400, 400, 401,
|
|
|
|
401, 401, 401, 401, 401, 403, 403, 405, 405, 405,
|
|
|
|
388, 405, 405, 406, 406, 406, 406, 406, 406, 407,
|
|
|
|
|
|
|
|
407, 387, 407, 407, 407, 408, 386, 408, 408, 408,
|
|
|
|
408, 385, 384, 383, 382, 381, 380, 378, 377, 374,
|
|
|
|
372, 370, 368, 367, 366, 364, 361, 359, 358, 357,
|
|
|
|
356, 354, 352, 351, 348, 347, 345, 344, 343, 340,
|
|
|
|
339, 336, 334, 333, 332, 331, 328, 327, 326, 324,
|
|
|
|
323, 321, 319, 317, 316, 315, 313, 311, 307, 306,
|
|
|
|
302, 301, 300, 299, 298, 297, 296, 294, 293, 291,
|
|
|
|
290, 289, 288, 287, 286, 285, 284, 282, 281, 280,
|
|
|
|
278, 276, 272, 271, 270, 269, 268, 267, 266, 264,
|
|
|
|
263, 262, 260, 258, 256, 255, 254, 253, 252, 251,
|
|
|
|
|
|
|
|
250, 249, 248, 246, 245, 244, 243, 242, 241, 240,
|
|
|
|
239, 238, 237, 235, 234, 233, 230, 226, 224, 223,
|
|
|
|
222, 221, 220, 218, 217, 215, 213, 212, 210, 209,
|
|
|
|
208, 207, 206, 205, 204, 203, 202, 201, 198, 197,
|
|
|
|
196, 195, 194, 193, 192, 191, 190, 189, 187, 186,
|
|
|
|
185, 183, 181, 179, 178, 177, 176, 175, 174, 173,
|
|
|
|
172, 171, 169, 168, 167, 166, 165, 164, 163, 162,
|
|
|
|
159, 158, 157, 155, 154, 153, 150, 149, 148, 147,
|
|
|
|
146, 144, 143, 142, 141, 140, 139, 138, 137, 136,
|
|
|
|
135, 134, 131, 130, 128, 122, 120, 119, 117, 116,
|
|
|
|
|
|
|
|
115, 114, 112, 111, 108, 105, 104, 103, 100, 99,
|
|
|
|
98, 96, 92, 91, 90, 89, 88, 87, 86, 85,
|
|
|
|
84, 83, 81, 80, 77, 75, 74, 73, 71, 65,
|
|
|
|
63, 58, 56, 49, 44, 41, 30, 26, 24, 23,
|
|
|
|
9, 8, 7, 6, 5, 4, 3, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398, 398, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 398, 398
|
2006-04-12 09:32:17 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
} ;
|
|
|
|
|
|
|
|
static yy_state_type yy_last_accepting_state;
|
|
|
|
static char *yy_last_accepting_cpos;
|
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static int yy_flex_debug;
|
|
|
|
static int yy_flex_debug = 0;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
/* The intent behind this definition is that it'll catch
|
|
|
|
* any uses of REJECT which flex missed.
|
|
|
|
*/
|
|
|
|
#define REJECT reject_used_but_not_detected
|
|
|
|
#define yymore() yymore_used_but_not_detected
|
|
|
|
#define YY_MORE_ADJ 0
|
|
|
|
#define YY_RESTORE_YY_MORE_OFFSET
|
2008-02-06 13:14:42 +00:00
|
|
|
static char *yytext;
|
2005-10-27 07:29:40 +00:00
|
|
|
#line 1 "pars0lex.l"
|
branches/innodb+: Merge revisions 5091:5143 from branches/zip:
------------------------------------------------------------------------
r5092 | marko | 2009-05-25 09:54:17 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Adjust some function comments after r5091.
------------------------------------------------------------------------
r5100 | marko | 2009-05-25 12:09:45 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Split some long lines that were introduced in r5091.
------------------------------------------------------------------------
r5101 | marko | 2009-05-25 12:42:47 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Introduce the macro TEMP_INDEX_PREFIX_STR.
This is to avoid triggering an error in Doxygen.
------------------------------------------------------------------------
r5102 | marko | 2009-05-25 13:47:14 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Add missing file comments.
------------------------------------------------------------------------
r5103 | marko | 2009-05-25 13:52:29 +0300 (Mon, 25 May 2009) | 10 lines
branches/zip: Add @file comments, and convert decorative
/*********************************
comments to Doxygen /** style like this:
/*****************************//**
This conversion was performed by the following command:
perl -i -e 'while(<ARGV>){if (m|^/\*{30}\**$|) {
s|\*{4}$|//**| if ++$com>1; $_ .= "\@file $ARGV\n" if $com==2}
print; if(eof){$.=0;undef $com}}' */*[ch] include/univ.i
------------------------------------------------------------------------
r5104 | marko | 2009-05-25 14:39:07 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Revert ut0auxconf_* to r5102,
that is, make Doxygen ignore these test programs.
------------------------------------------------------------------------
r5105 | marko | 2009-05-25 14:52:20 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Enclose some #error checks inside #ifndef DOXYGEN
to prevent bogus Doxygen errors.
------------------------------------------------------------------------
r5106 | marko | 2009-05-25 16:09:24 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Add some Doxygen comments, mainly to structs, typedefs,
macros and global variables. Many more to go.
------------------------------------------------------------------------
r5108 | marko | 2009-05-26 00:32:35 +0300 (Tue, 26 May 2009) | 2 lines
branches/zip: lexyy.c: Remove the inadvertently added @file directive.
There is nothing for Doxygen to see in this file, move along.
------------------------------------------------------------------------
r5125 | marko | 2009-05-26 16:28:49 +0300 (Tue, 26 May 2009) | 3 lines
branches/zip: Add some Doxygen comments for many structs, typedefs,
#defines and global variables. Many are still missing.
------------------------------------------------------------------------
r5134 | marko | 2009-05-27 09:08:43 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add some Doxygen @return comments.
------------------------------------------------------------------------
r5139 | marko | 2009-05-27 10:01:40 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add Doxyfile.
------------------------------------------------------------------------
r5143 | marko | 2009-05-27 10:57:25 +0300 (Wed, 27 May 2009) | 3 lines
branches/zip: buf0buf.h, Doxyfile: Fix the Doxygen translation.
@defgroup is for source code modules, not for field groups.
Tell Doxygen to expand the UT_LIST declarations.
------------------------------------------------------------------------
2009-05-27 09:52:16 +00:00
|
|
|
/**************************************************//**
|
2005-10-27 07:29:40 +00:00
|
|
|
SQL parser lexical analyzer: input file for the GNU Flex lexer generator
|
|
|
|
|
|
|
|
(c) 1997 Innobase Oy
|
|
|
|
|
|
|
|
Created 12/14/1997 Heikki Tuuri
|
|
|
|
Published under the GPL version 2
|
|
|
|
|
|
|
|
The InnoDB parser is frozen because MySQL takes care of SQL parsing.
|
|
|
|
Therefore we normally keep the InnoDB parser C files as they are, and do
|
|
|
|
not automatically generate them from pars0grm.y and pars0lex.l.
|
|
|
|
|
|
|
|
How to make the InnoDB parser and lexer C files:
|
|
|
|
|
2006-04-12 09:32:17 +00:00
|
|
|
1. Run ./make_flex.sh to generate lexer files.
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-04-12 09:32:17 +00:00
|
|
|
2. Run ./make_bison.sh to generate parser files.
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-04-12 09:32:17 +00:00
|
|
|
These instructions seem to work at least with bison-1.875d and flex-2.5.31 on
|
2005-10-27 07:29:40 +00:00
|
|
|
Linux.
|
|
|
|
*******************************************************/
|
|
|
|
#define YY_NO_INPUT 1
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_NO_UNISTD_H 1
|
2006-04-12 09:32:17 +00:00
|
|
|
#line 38 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
#define YYSTYPE que_node_t*
|
|
|
|
|
|
|
|
#include "univ.i"
|
|
|
|
#include "pars0pars.h"
|
|
|
|
#include "pars0grm.h"
|
|
|
|
#include "pars0sym.h"
|
|
|
|
#include "mem0mem.h"
|
|
|
|
#include "os0proc.h"
|
|
|
|
|
|
|
|
#define malloc(A) ut_malloc(A)
|
|
|
|
#define free(A) ut_free(A)
|
|
|
|
#define realloc(P, A) ut_realloc(P, A)
|
|
|
|
#define exit(A) ut_error
|
|
|
|
|
|
|
|
#define YY_INPUT(buf, result, max_size) pars_get_lex_chars(buf, &result, max_size)
|
|
|
|
|
|
|
|
/* String buffer for removing quotes */
|
|
|
|
static ulint stringbuf_len_alloc = 0; /* Allocated length */
|
|
|
|
static ulint stringbuf_len = 0; /* Current length */
|
|
|
|
static char* stringbuf; /* Start of buffer */
|
branches/innodb+: Merge revisions 5091:5143 from branches/zip:
------------------------------------------------------------------------
r5092 | marko | 2009-05-25 09:54:17 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Adjust some function comments after r5091.
------------------------------------------------------------------------
r5100 | marko | 2009-05-25 12:09:45 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Split some long lines that were introduced in r5091.
------------------------------------------------------------------------
r5101 | marko | 2009-05-25 12:42:47 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Introduce the macro TEMP_INDEX_PREFIX_STR.
This is to avoid triggering an error in Doxygen.
------------------------------------------------------------------------
r5102 | marko | 2009-05-25 13:47:14 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Add missing file comments.
------------------------------------------------------------------------
r5103 | marko | 2009-05-25 13:52:29 +0300 (Mon, 25 May 2009) | 10 lines
branches/zip: Add @file comments, and convert decorative
/*********************************
comments to Doxygen /** style like this:
/*****************************//**
This conversion was performed by the following command:
perl -i -e 'while(<ARGV>){if (m|^/\*{30}\**$|) {
s|\*{4}$|//**| if ++$com>1; $_ .= "\@file $ARGV\n" if $com==2}
print; if(eof){$.=0;undef $com}}' */*[ch] include/univ.i
------------------------------------------------------------------------
r5104 | marko | 2009-05-25 14:39:07 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Revert ut0auxconf_* to r5102,
that is, make Doxygen ignore these test programs.
------------------------------------------------------------------------
r5105 | marko | 2009-05-25 14:52:20 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Enclose some #error checks inside #ifndef DOXYGEN
to prevent bogus Doxygen errors.
------------------------------------------------------------------------
r5106 | marko | 2009-05-25 16:09:24 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Add some Doxygen comments, mainly to structs, typedefs,
macros and global variables. Many more to go.
------------------------------------------------------------------------
r5108 | marko | 2009-05-26 00:32:35 +0300 (Tue, 26 May 2009) | 2 lines
branches/zip: lexyy.c: Remove the inadvertently added @file directive.
There is nothing for Doxygen to see in this file, move along.
------------------------------------------------------------------------
r5125 | marko | 2009-05-26 16:28:49 +0300 (Tue, 26 May 2009) | 3 lines
branches/zip: Add some Doxygen comments for many structs, typedefs,
#defines and global variables. Many are still missing.
------------------------------------------------------------------------
r5134 | marko | 2009-05-27 09:08:43 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add some Doxygen @return comments.
------------------------------------------------------------------------
r5139 | marko | 2009-05-27 10:01:40 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add Doxyfile.
------------------------------------------------------------------------
r5143 | marko | 2009-05-27 10:57:25 +0300 (Wed, 27 May 2009) | 3 lines
branches/zip: buf0buf.h, Doxyfile: Fix the Doxygen translation.
@defgroup is for source code modules, not for field groups.
Tell Doxygen to expand the UT_LIST declarations.
------------------------------------------------------------------------
2009-05-27 09:52:16 +00:00
|
|
|
/** Appends a string to the buffer. */
|
2005-10-27 07:29:40 +00:00
|
|
|
static
|
|
|
|
void
|
|
|
|
string_append(
|
|
|
|
/*==========*/
|
branches/innodb+: Merge revisions 5091:5143 from branches/zip:
------------------------------------------------------------------------
r5092 | marko | 2009-05-25 09:54:17 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Adjust some function comments after r5091.
------------------------------------------------------------------------
r5100 | marko | 2009-05-25 12:09:45 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Split some long lines that were introduced in r5091.
------------------------------------------------------------------------
r5101 | marko | 2009-05-25 12:42:47 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Introduce the macro TEMP_INDEX_PREFIX_STR.
This is to avoid triggering an error in Doxygen.
------------------------------------------------------------------------
r5102 | marko | 2009-05-25 13:47:14 +0300 (Mon, 25 May 2009) | 1 line
branches/zip: Add missing file comments.
------------------------------------------------------------------------
r5103 | marko | 2009-05-25 13:52:29 +0300 (Mon, 25 May 2009) | 10 lines
branches/zip: Add @file comments, and convert decorative
/*********************************
comments to Doxygen /** style like this:
/*****************************//**
This conversion was performed by the following command:
perl -i -e 'while(<ARGV>){if (m|^/\*{30}\**$|) {
s|\*{4}$|//**| if ++$com>1; $_ .= "\@file $ARGV\n" if $com==2}
print; if(eof){$.=0;undef $com}}' */*[ch] include/univ.i
------------------------------------------------------------------------
r5104 | marko | 2009-05-25 14:39:07 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Revert ut0auxconf_* to r5102,
that is, make Doxygen ignore these test programs.
------------------------------------------------------------------------
r5105 | marko | 2009-05-25 14:52:20 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Enclose some #error checks inside #ifndef DOXYGEN
to prevent bogus Doxygen errors.
------------------------------------------------------------------------
r5106 | marko | 2009-05-25 16:09:24 +0300 (Mon, 25 May 2009) | 2 lines
branches/zip: Add some Doxygen comments, mainly to structs, typedefs,
macros and global variables. Many more to go.
------------------------------------------------------------------------
r5108 | marko | 2009-05-26 00:32:35 +0300 (Tue, 26 May 2009) | 2 lines
branches/zip: lexyy.c: Remove the inadvertently added @file directive.
There is nothing for Doxygen to see in this file, move along.
------------------------------------------------------------------------
r5125 | marko | 2009-05-26 16:28:49 +0300 (Tue, 26 May 2009) | 3 lines
branches/zip: Add some Doxygen comments for many structs, typedefs,
#defines and global variables. Many are still missing.
------------------------------------------------------------------------
r5134 | marko | 2009-05-27 09:08:43 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add some Doxygen @return comments.
------------------------------------------------------------------------
r5139 | marko | 2009-05-27 10:01:40 +0300 (Wed, 27 May 2009) | 1 line
branches/zip: Add Doxyfile.
------------------------------------------------------------------------
r5143 | marko | 2009-05-27 10:57:25 +0300 (Wed, 27 May 2009) | 3 lines
branches/zip: buf0buf.h, Doxyfile: Fix the Doxygen translation.
@defgroup is for source code modules, not for field groups.
Tell Doxygen to expand the UT_LIST declarations.
------------------------------------------------------------------------
2009-05-27 09:52:16 +00:00
|
|
|
const char* str, /*!< in: string to be appended */
|
|
|
|
ulint len) /*!< in: length of the string */
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
if (stringbuf == NULL) {
|
|
|
|
stringbuf = malloc(1);
|
|
|
|
stringbuf_len_alloc = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (stringbuf_len + len > stringbuf_len_alloc) {
|
|
|
|
while (stringbuf_len + len > stringbuf_len_alloc) {
|
|
|
|
stringbuf_len_alloc <<= 1;
|
|
|
|
}
|
|
|
|
stringbuf = realloc(stringbuf, stringbuf_len_alloc);
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(stringbuf + stringbuf_len, str, len);
|
|
|
|
stringbuf_len += len;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2006-04-12 09:32:17 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
#line 759 "lexyy.c"
|
2006-02-17 14:19:39 +00:00
|
|
|
|
|
|
|
#define INITIAL 0
|
|
|
|
#define comment 1
|
2005-10-27 07:29:40 +00:00
|
|
|
#define quoted 2
|
2006-04-12 09:32:17 +00:00
|
|
|
#define id 3
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_NO_UNISTD_H
|
|
|
|
/* Special case for "unistd.h", since it is non-ANSI. We include it way
|
|
|
|
* down here because we want the user's section 1 to have been scanned first.
|
|
|
|
* The user has a chance to override it with an option.
|
|
|
|
*/
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_EXTRA_TYPE
|
|
|
|
#define YY_EXTRA_TYPE void *
|
|
|
|
#endif
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Macros after this point can all be overridden by user definitions in
|
|
|
|
* section 1.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef YY_SKIP_YYWRAP
|
|
|
|
#ifdef __cplusplus
|
2006-02-17 14:19:39 +00:00
|
|
|
extern "C" int yywrap (void );
|
2005-10-27 07:29:40 +00:00
|
|
|
#else
|
2006-02-17 14:19:39 +00:00
|
|
|
extern int yywrap (void );
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef yytext_ptr
|
2006-02-17 14:19:39 +00:00
|
|
|
static void yy_flex_strncpy (char *,yyconst char *,int );
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_NEED_STRLEN
|
2006-02-17 14:19:39 +00:00
|
|
|
static int yy_flex_strlen (yyconst char * );
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef YY_NO_INPUT
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
static int yyinput (void );
|
2005-10-27 07:29:40 +00:00
|
|
|
#else
|
2006-02-17 14:19:39 +00:00
|
|
|
static int input (void );
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Amount of stuff to slurp up with each read. */
|
|
|
|
#ifndef YY_READ_BUF_SIZE
|
|
|
|
#define YY_READ_BUF_SIZE 8192
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Copy whatever the last rule matched to the standard output. */
|
|
|
|
#ifndef ECHO
|
|
|
|
/* This used to be an fputs(), but since the string might contain NUL's,
|
|
|
|
* we now use fwrite().
|
|
|
|
*/
|
|
|
|
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
|
|
|
|
* is returned in "result".
|
|
|
|
*/
|
|
|
|
#ifndef YY_INPUT
|
|
|
|
#define YY_INPUT(buf,result,max_size) \
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
|
2005-10-27 07:29:40 +00:00
|
|
|
{ \
|
2006-02-17 14:19:39 +00:00
|
|
|
int c = '*'; \
|
|
|
|
size_t n; \
|
2005-10-27 07:29:40 +00:00
|
|
|
for ( n = 0; n < max_size && \
|
|
|
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
|
|
|
buf[n] = (char) c; \
|
|
|
|
if ( c == '\n' ) \
|
|
|
|
buf[n++] = (char) c; \
|
|
|
|
if ( c == EOF && ferror( yyin ) ) \
|
|
|
|
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
|
|
|
result = n; \
|
|
|
|
} \
|
2006-02-17 14:19:39 +00:00
|
|
|
else \
|
|
|
|
{ \
|
|
|
|
errno=0; \
|
|
|
|
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
|
|
|
|
{ \
|
|
|
|
if( errno != EINTR) \
|
|
|
|
{ \
|
|
|
|
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
|
|
|
break; \
|
|
|
|
} \
|
|
|
|
errno=0; \
|
|
|
|
clearerr(yyin); \
|
|
|
|
} \
|
|
|
|
}\
|
|
|
|
\
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* No semi-colon after return; correct usage is to write "yyterminate();" -
|
|
|
|
* we don't want an extra ';' after the "return" because that will cause
|
|
|
|
* some compilers to complain about unreachable statements.
|
|
|
|
*/
|
|
|
|
#ifndef yyterminate
|
|
|
|
#define yyterminate() return YY_NULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Number of entries by which start-condition stack grows. */
|
|
|
|
#ifndef YY_START_STACK_INCR
|
|
|
|
#define YY_START_STACK_INCR 25
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Report a fatal error. */
|
|
|
|
#ifndef YY_FATAL_ERROR
|
|
|
|
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
|
|
|
|
#endif
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* end tables serialization structures and prototypes */
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
/* Default declaration of generated scanner - a define so the user can
|
|
|
|
* easily add parameters.
|
|
|
|
*/
|
|
|
|
#ifndef YY_DECL
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YY_DECL_IS_OURS 1
|
|
|
|
|
2008-02-06 14:17:36 +00:00
|
|
|
UNIV_INTERN int yylex (void);
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2008-02-06 14:17:36 +00:00
|
|
|
#define YY_DECL UNIV_INTERN int yylex (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
#endif /* !YY_DECL */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Code executed at the beginning of each rule, after yytext and yyleng
|
|
|
|
* have been set up.
|
|
|
|
*/
|
|
|
|
#ifndef YY_USER_ACTION
|
|
|
|
#define YY_USER_ACTION
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Code executed at the end of each rule. */
|
|
|
|
#ifndef YY_BREAK
|
|
|
|
#define YY_BREAK break;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define YY_RULE_SETUP \
|
|
|
|
YY_USER_ACTION
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** The main scanner function which does all the work.
|
|
|
|
*/
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_DECL
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
register yy_state_type yy_current_state;
|
|
|
|
register char *yy_cp, *yy_bp;
|
|
|
|
register int yy_act;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 92 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
#line 914 "lexyy.c"
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_init) )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_init) = 0;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#ifdef YY_USER_INIT
|
|
|
|
YY_USER_INIT;
|
|
|
|
#endif
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! (yy_start) )
|
|
|
|
(yy_start) = 1; /* first start state */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
if ( ! yyin )
|
|
|
|
yyin = stdin;
|
|
|
|
|
|
|
|
if ( ! yyout )
|
|
|
|
yyout = stdout;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! YY_CURRENT_BUFFER ) {
|
|
|
|
yyensure_buffer_stack ();
|
|
|
|
YY_CURRENT_BUFFER_LVALUE =
|
|
|
|
yy_create_buffer(yyin,YY_BUF_SIZE );
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_load_buffer_state( );
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
while ( 1 ) /* loops until end-of-file is reached */
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = (yy_c_buf_p);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Support of yytext. */
|
2006-02-17 14:19:39 +00:00
|
|
|
*yy_cp = (yy_hold_char);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* yy_bp points to the position in yy_ch_buf of the start of
|
|
|
|
* the current run.
|
|
|
|
*/
|
|
|
|
yy_bp = yy_cp;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_current_state = (yy_start);
|
2005-10-27 07:29:40 +00:00
|
|
|
yy_match:
|
|
|
|
do
|
|
|
|
{
|
|
|
|
register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
|
|
(yy_last_accepting_cpos) = yy_cp;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2006-06-13 20:23:26 +00:00
|
|
|
if ( yy_current_state >= 399 )
|
2005-10-27 07:29:40 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
|
|
++yy_cp;
|
|
|
|
}
|
2006-06-13 20:23:26 +00:00
|
|
|
while ( yy_current_state != 398 );
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = (yy_last_accepting_cpos);
|
|
|
|
yy_current_state = (yy_last_accepting_state);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
yy_find_action:
|
|
|
|
yy_act = yy_accept[yy_current_state];
|
|
|
|
|
|
|
|
YY_DO_BEFORE_ACTION;
|
|
|
|
|
|
|
|
do_action: /* This label is used only to access EOF actions. */
|
|
|
|
|
|
|
|
switch ( yy_act )
|
|
|
|
{ /* beginning of action switch */
|
|
|
|
case 0: /* must back up */
|
|
|
|
/* undo the effects of YY_DO_BEFORE_ACTION */
|
2006-02-17 14:19:39 +00:00
|
|
|
*yy_cp = (yy_hold_char);
|
|
|
|
yy_cp = (yy_last_accepting_cpos);
|
|
|
|
yy_current_state = (yy_last_accepting_state);
|
2005-10-27 07:29:40 +00:00
|
|
|
goto yy_find_action;
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 94 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
yylval = sym_tab_add_int_lit(pars_sym_tab_global,
|
|
|
|
atoi(yytext));
|
|
|
|
return(PARS_INT_LIT);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 2:
|
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 100 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
ut_error; /* not implemented */
|
|
|
|
|
|
|
|
return(PARS_FLOAT_LIT);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 3:
|
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 106 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
|
|
|
ulint type;
|
|
|
|
|
|
|
|
yylval = sym_tab_add_bound_lit(pars_sym_tab_global,
|
|
|
|
yytext + 1, &type);
|
|
|
|
|
2007-04-02 05:39:41 +00:00
|
|
|
return((int) type);
|
2006-04-12 09:32:17 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 4:
|
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 115 "pars0lex.l"
|
|
|
|
{
|
|
|
|
yylval = sym_tab_add_bound_id(pars_sym_tab_global,
|
|
|
|
yytext + 1);
|
|
|
|
|
|
|
|
return(PARS_ID_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
|
|
|
case 5:
|
|
|
|
YY_RULE_SETUP
|
|
|
|
#line 122 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Quoted character string literals are handled in an explicit
|
|
|
|
start state 'quoted'. This state is entered and the buffer for
|
|
|
|
the scanned string is emptied upon encountering a starting quote.
|
|
|
|
|
|
|
|
In the state 'quoted', only two actions are possible (defined below). */
|
|
|
|
BEGIN(quoted);
|
|
|
|
stringbuf_len = 0;
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 6:
|
|
|
|
/* rule 6 can match eol */
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 131 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Got a sequence of characters other than "'":
|
|
|
|
append to string buffer */
|
|
|
|
string_append(yytext, yyleng);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 7:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 136 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Got a sequence of "'" characters:
|
|
|
|
append half of them to string buffer,
|
|
|
|
as "''" represents a single "'".
|
|
|
|
We apply truncating division,
|
|
|
|
so that "'''" will result in "'". */
|
|
|
|
|
|
|
|
string_append(yytext, yyleng / 2);
|
|
|
|
|
|
|
|
/* If we got an odd number of quotes, then the
|
|
|
|
last quote we got is the terminating quote.
|
|
|
|
At the end of the string, we return to the
|
|
|
|
initial start state and report the scanned
|
|
|
|
string literal. */
|
|
|
|
|
|
|
|
if (yyleng % 2) {
|
|
|
|
BEGIN(INITIAL);
|
|
|
|
yylval = sym_tab_add_str_lit(
|
|
|
|
pars_sym_tab_global,
|
|
|
|
(byte*) stringbuf, stringbuf_len);
|
|
|
|
return(PARS_STR_LIT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 8:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 160 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
|
|
|
/* Quoted identifiers are handled in an explicit start state 'id'.
|
|
|
|
This state is entered and the buffer for the scanned string is emptied
|
|
|
|
upon encountering a starting quote.
|
|
|
|
|
|
|
|
In the state 'id', only two actions are possible (defined below). */
|
|
|
|
BEGIN(id);
|
|
|
|
stringbuf_len = 0;
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 9:
|
|
|
|
/* rule 9 can match eol */
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 169 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
|
|
|
/* Got a sequence of characters other than '"':
|
|
|
|
append to string buffer */
|
|
|
|
string_append(yytext, yyleng);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 10:
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 174 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
|
|
|
/* Got a sequence of '"' characters:
|
|
|
|
append half of them to string buffer,
|
|
|
|
as '""' represents a single '"'.
|
|
|
|
We apply truncating division,
|
|
|
|
so that '"""' will result in '"'. */
|
|
|
|
|
|
|
|
string_append(yytext, yyleng / 2);
|
|
|
|
|
|
|
|
/* If we got an odd number of quotes, then the
|
|
|
|
last quote we got is the terminating quote.
|
|
|
|
At the end of the string, we return to the
|
|
|
|
initial start state and report the scanned
|
|
|
|
identifier. */
|
|
|
|
|
|
|
|
if (yyleng % 2) {
|
|
|
|
BEGIN(INITIAL);
|
|
|
|
yylval = sym_tab_add_id(
|
|
|
|
pars_sym_tab_global,
|
|
|
|
(byte*) stringbuf, stringbuf_len);
|
|
|
|
|
|
|
|
return(PARS_ID_TOKEN);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 11:
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 199 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
yylval = sym_tab_add_null_lit(pars_sym_tab_global);
|
|
|
|
|
|
|
|
return(PARS_NULL_LIT);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 12:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 205 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Implicit cursor name */
|
|
|
|
yylval = sym_tab_add_str_lit(pars_sym_tab_global,
|
|
|
|
(byte*) yytext, yyleng);
|
|
|
|
return(PARS_SQL_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 13:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 212 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_AND_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 14:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 216 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_OR_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 15:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 220 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_NOT_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 16:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 224 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_PROCEDURE_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 17:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 228 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_IN_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 18:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 232 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
return(PARS_OUT_TOKEN);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 19:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 236 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_BINARY_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 20:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 240 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_BLOB_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 21:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 244 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_INT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 22:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 248 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_INT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 23:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 252 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_FLOAT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 24:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 256 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_CHAR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 25:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 260 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_IS_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 26:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 264 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_BEGIN_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 27:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 268 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_END_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 28:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 272 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_IF_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 29:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 276 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_THEN_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 30:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 280 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_ELSE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 31:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 284 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_ELSIF_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 32:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 288 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_LOOP_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 33:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 292 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_WHILE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 34:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 296 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_RETURN_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 35:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 300 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_SELECT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 36:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 304 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_SUM_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 37:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 308 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_COUNT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 38:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 312 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_DISTINCT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 39:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 316 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_FROM_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 40:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 320 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_WHERE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 41:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 324 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
return(PARS_FOR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 42:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 328 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_READ_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 43:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 332 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ORDER_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 44:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 336 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_BY_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 45:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 340 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ASC_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 46:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 344 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_DESC_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 47:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 348 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_INSERT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 48:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 352 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_INTO_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 49:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 356 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_VALUES_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 50:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 360 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_UPDATE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 51:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 364 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_SET_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 52:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 368 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_DELETE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 53:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 372 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CURRENT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 54:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 376 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_OF_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 55:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 380 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CREATE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 56:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 384 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_TABLE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 57:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 388 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_INDEX_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 58:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 392 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_UNIQUE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 59:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 396 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CLUSTERED_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 60:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 400 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_DOES_NOT_FIT_IN_MEM_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 61:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 404 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ON_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 62:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 408 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_DECLARE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 63:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 412 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CURSOR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 64:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 416 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_OPEN_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 65:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 420 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_FETCH_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 66:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 424 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CLOSE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 67:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 428 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_NOTFOUND_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 68:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 432 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_TO_CHAR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 69:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 436 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_TO_NUMBER_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 70:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 440 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_TO_BINARY_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 71:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 444 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_BINARY_TO_NUMBER_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 72:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 448 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_SUBSTR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 73:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 452 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_REPLSTR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 74:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 456 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_CONCAT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 75:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 460 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_INSTR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 76:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 464 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_LENGTH_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 77:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 468 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_SYSDATE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 78:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 472 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_PRINTF_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 79:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 476 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ASSERT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 80:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 480 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_RND_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 81:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 484 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_RND_STR_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 82:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 488 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ROW_PRINTF_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 83:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 492 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_COMMIT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 84:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 496 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ROLLBACK_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 85:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 500 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_WORK_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 86:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 504 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_UNSIGNED_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 87:
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 508 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_EXIT_TOKEN);
|
2006-04-12 09:32:17 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 88:
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 512 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_FUNCTION_TOKEN);
|
2006-04-12 09:32:17 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 89:
|
2006-04-12 09:32:17 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 516 "pars0lex.l"
|
2006-04-12 09:32:17 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_LOCK_TOKEN);
|
2006-04-12 09:32:17 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-05-08 06:18:59 +00:00
|
|
|
case 90:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 520 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_SHARE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 91:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 524 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_MODE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 92:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 528 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
yylval = sym_tab_add_id(pars_sym_tab_global,
|
|
|
|
(byte*)yytext,
|
|
|
|
ut_strlen(yytext));
|
|
|
|
return(PARS_ID_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 93:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 535 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_DDOT_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 94:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 539 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_ASSIGN_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 95:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 543 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_LE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 96:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-05-08 06:18:59 +00:00
|
|
|
#line 547 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_GE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 97:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 551 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
2006-06-13 20:23:26 +00:00
|
|
|
return(PARS_NE_TOKEN);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 98:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 555 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 99:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 560 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 100:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 565 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 101:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 570 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 102:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 575 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 103:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 580 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 104:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 585 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 105:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 590 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 106:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 595 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 107:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 600 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 108:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 605 "pars0lex.l"
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 109:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 610 "pars0lex.l"
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 110:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 615 "pars0lex.l"
|
2006-05-08 06:18:59 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 111:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 620 "pars0lex.l"
|
|
|
|
{
|
|
|
|
|
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 112:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 625 "pars0lex.l"
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2006-06-13 20:23:26 +00:00
|
|
|
return((int)(*yytext));
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 113:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 630 "pars0lex.l"
|
|
|
|
BEGIN(comment); /* eat up comment */
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 114:
|
2006-06-13 20:23:26 +00:00
|
|
|
/* rule 114 can match eol */
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 632 "pars0lex.l"
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_BREAK
|
2006-04-12 09:32:17 +00:00
|
|
|
case 115:
|
2006-05-08 06:18:59 +00:00
|
|
|
/* rule 115 can match eol */
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 633 "pars0lex.l"
|
|
|
|
|
2006-05-08 06:18:59 +00:00
|
|
|
YY_BREAK
|
|
|
|
case 116:
|
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 634 "pars0lex.l"
|
|
|
|
BEGIN(INITIAL);
|
|
|
|
YY_BREAK
|
|
|
|
case 117:
|
|
|
|
/* rule 117 can match eol */
|
|
|
|
YY_RULE_SETUP
|
|
|
|
#line 636 "pars0lex.l"
|
|
|
|
/* eat up whitespace */
|
|
|
|
YY_BREAK
|
|
|
|
case 118:
|
|
|
|
YY_RULE_SETUP
|
|
|
|
#line 639 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
fprintf(stderr,"Unrecognized character: %02x\n",
|
|
|
|
*yytext);
|
|
|
|
|
|
|
|
ut_error;
|
|
|
|
|
|
|
|
return(0);
|
|
|
|
}
|
|
|
|
YY_BREAK
|
2006-06-13 20:23:26 +00:00
|
|
|
case 119:
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RULE_SETUP
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 648 "pars0lex.l"
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_FATAL_ERROR( "flex scanner jammed" );
|
|
|
|
YY_BREAK
|
2008-02-06 13:14:42 +00:00
|
|
|
#line 1916 "lexyy.c"
|
2005-10-27 07:29:40 +00:00
|
|
|
case YY_STATE_EOF(INITIAL):
|
|
|
|
case YY_STATE_EOF(comment):
|
|
|
|
case YY_STATE_EOF(quoted):
|
2006-04-12 09:32:17 +00:00
|
|
|
case YY_STATE_EOF(id):
|
2005-10-27 07:29:40 +00:00
|
|
|
yyterminate();
|
|
|
|
|
|
|
|
case YY_END_OF_BUFFER:
|
|
|
|
{
|
|
|
|
/* Amount of text matched not including the EOB char. */
|
2006-02-17 14:19:39 +00:00
|
|
|
int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Undo the effects of YY_DO_BEFORE_ACTION. */
|
2006-02-17 14:19:39 +00:00
|
|
|
*yy_cp = (yy_hold_char);
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_RESTORE_YY_MORE_OFFSET
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* We're scanning a new file or input source. It's
|
|
|
|
* possible that this happened because the user
|
|
|
|
* just pointed yyin at a new source and called
|
|
|
|
* yylex(). If so, then we have to assure
|
2006-02-17 14:19:39 +00:00
|
|
|
* consistency between YY_CURRENT_BUFFER and our
|
2005-10-27 07:29:40 +00:00
|
|
|
* globals. Here is the right place to do so, because
|
|
|
|
* this is the first action (other than possibly a
|
|
|
|
* back-up) that will match for the new input source.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Note that here we test for yy_c_buf_p "<=" to the position
|
|
|
|
* of the first EOB in the buffer, since yy_c_buf_p will
|
|
|
|
* already have been incremented past the NUL character
|
|
|
|
* (since all states make transitions on EOB to the
|
|
|
|
* end-of-buffer state). Contrast this with the test
|
|
|
|
* in input().
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
|
2005-10-27 07:29:40 +00:00
|
|
|
{ /* This was really a NUL. */
|
|
|
|
yy_state_type yy_next_state;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_current_state = yy_get_previous_state( );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* Okay, we're now positioned to make the NUL
|
|
|
|
* transition. We couldn't have
|
|
|
|
* yy_get_previous_state() go ahead and do it
|
|
|
|
* for us because it doesn't know how to deal
|
|
|
|
* with the possibility of jamming (and we don't
|
|
|
|
* want to build jamming into it because then it
|
|
|
|
* will run more slowly).
|
|
|
|
*/
|
|
|
|
|
|
|
|
yy_next_state = yy_try_NUL_trans( yy_current_state );
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
if ( yy_next_state )
|
|
|
|
{
|
|
|
|
/* Consume the NUL. */
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = ++(yy_c_buf_p);
|
2005-10-27 07:29:40 +00:00
|
|
|
yy_current_state = yy_next_state;
|
|
|
|
goto yy_match;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = (yy_last_accepting_cpos);
|
|
|
|
yy_current_state = (yy_last_accepting_state);
|
2005-10-27 07:29:40 +00:00
|
|
|
goto yy_find_action;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
else switch ( yy_get_next_buffer( ) )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
case EOB_ACT_END_OF_FILE:
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_did_buffer_switch_on_eof) = 0;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( yywrap( ) )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Note: because we've taken care in
|
|
|
|
* yy_get_next_buffer() to have set up
|
|
|
|
* yytext, we can now set up
|
|
|
|
* yy_c_buf_p so that if some total
|
|
|
|
* hoser (like flex itself) wants to
|
|
|
|
* call the scanner after we return the
|
|
|
|
* YY_NULL, it'll still work - another
|
|
|
|
* YY_NULL will get returned.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
yy_act = YY_STATE_EOF(YY_START);
|
|
|
|
goto do_action;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! (yy_did_buffer_switch_on_eof) )
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_NEW_FILE;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case EOB_ACT_CONTINUE_SCAN:
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) =
|
|
|
|
(yytext_ptr) + yy_amount_of_matched_text;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_current_state = yy_get_previous_state( );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = (yy_c_buf_p);
|
|
|
|
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
|
2005-10-27 07:29:40 +00:00
|
|
|
goto yy_match;
|
|
|
|
|
|
|
|
case EOB_ACT_LAST_MATCH:
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) =
|
|
|
|
&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_current_state = yy_get_previous_state( );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_cp = (yy_c_buf_p);
|
|
|
|
yy_bp = (yytext_ptr) + YY_MORE_ADJ;
|
2005-10-27 07:29:40 +00:00
|
|
|
goto yy_find_action;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal flex scanner internal error--no action found" );
|
|
|
|
} /* end of action switch */
|
|
|
|
} /* end of scanning one token */
|
2006-02-17 14:19:39 +00:00
|
|
|
} /* end of yylex */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* yy_get_next_buffer - try to read in a new buffer
|
|
|
|
*
|
|
|
|
* Returns a code representing an action:
|
|
|
|
* EOB_ACT_LAST_MATCH -
|
|
|
|
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
|
|
|
|
* EOB_ACT_END_OF_FILE - end of file
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
static int yy_get_next_buffer (void)
|
|
|
|
{
|
|
|
|
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
|
|
|
|
register char *source = (yytext_ptr);
|
2005-10-27 07:29:40 +00:00
|
|
|
register int number_to_move, i;
|
|
|
|
int ret_val;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal flex scanner internal error--end of buffer missed" );
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
|
2005-10-27 07:29:40 +00:00
|
|
|
{ /* Don't try to fill the buffer, so this is an EOF. */
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* We matched a single character, the EOB, so
|
|
|
|
* treat this as a final EOF.
|
|
|
|
*/
|
|
|
|
return EOB_ACT_END_OF_FILE;
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
/* We matched some text prior to the EOB, first
|
|
|
|
* process it.
|
|
|
|
*/
|
|
|
|
return EOB_ACT_LAST_MATCH;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Try to read more data. */
|
|
|
|
|
|
|
|
/* First move last chars to start of buffer. */
|
2006-02-17 14:19:39 +00:00
|
|
|
number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
for ( i = 0; i < number_to_move; ++i )
|
|
|
|
*(dest++) = *(source++);
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
|
2005-10-27 07:29:40 +00:00
|
|
|
/* don't do the read, it's not guaranteed to return an EOF,
|
|
|
|
* just force an EOF
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
size_t num_to_read =
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
while ( num_to_read <= 0 )
|
|
|
|
{ /* Not enough room in the buffer - grow it. */
|
|
|
|
|
|
|
|
/* just a shorter name for the current buffer */
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
int yy_c_buf_p_offset =
|
2006-02-17 14:19:39 +00:00
|
|
|
(int) ((yy_c_buf_p) - b->yy_ch_buf);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
if ( b->yy_is_our_buffer )
|
|
|
|
{
|
|
|
|
int new_size = b->yy_buf_size * 2;
|
|
|
|
|
|
|
|
if ( new_size <= 0 )
|
|
|
|
b->yy_buf_size += b->yy_buf_size / 8;
|
|
|
|
else
|
|
|
|
b->yy_buf_size *= 2;
|
|
|
|
|
|
|
|
b->yy_ch_buf = (char *)
|
|
|
|
/* Include room in for 2 EOB chars. */
|
2006-02-17 14:19:39 +00:00
|
|
|
yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
/* Can't grow it, we don't own it. */
|
|
|
|
b->yy_ch_buf = 0;
|
|
|
|
|
|
|
|
if ( ! b->yy_ch_buf )
|
|
|
|
YY_FATAL_ERROR(
|
|
|
|
"fatal error - scanner input buffer overflow" );
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
|
2005-10-27 07:29:40 +00:00
|
|
|
number_to_move - 1;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if ( num_to_read > YY_READ_BUF_SIZE )
|
|
|
|
num_to_read = YY_READ_BUF_SIZE;
|
|
|
|
|
|
|
|
/* Read in more data. */
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
|
|
|
|
(yy_n_chars), num_to_read );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_n_chars) == 0 )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
if ( number_to_move == YY_MORE_ADJ )
|
|
|
|
{
|
|
|
|
ret_val = EOB_ACT_END_OF_FILE;
|
2006-02-17 14:19:39 +00:00
|
|
|
yyrestart(yyin );
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
|
|
|
ret_val = EOB_ACT_LAST_MATCH;
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BUFFER_EOF_PENDING;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
ret_val = EOB_ACT_CONTINUE_SCAN;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_n_chars) += number_to_move;
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
(yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
return ret_val;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* yy_get_previous_state - get the state just before the EOB char was reached */
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
static yy_state_type yy_get_previous_state (void)
|
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
register yy_state_type yy_current_state;
|
|
|
|
register char *yy_cp;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
|
|
|
yy_current_state = (yy_start);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
|
|
(yy_last_accepting_cpos) = yy_cp;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2006-06-13 20:23:26 +00:00
|
|
|
if ( yy_current_state >= 399 )
|
2005-10-27 07:29:40 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
|
|
|
|
return yy_current_state;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* yy_try_NUL_trans - try to make a transition on the NUL character
|
|
|
|
*
|
|
|
|
* synopsis
|
|
|
|
* next_state = yy_try_NUL_trans( current_state );
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
|
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
register int yy_is_jam;
|
2006-02-17 14:19:39 +00:00
|
|
|
register char *yy_cp = (yy_c_buf_p);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
register YY_CHAR yy_c = 1;
|
|
|
|
if ( yy_accept[yy_current_state] )
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_last_accepting_state) = yy_current_state;
|
|
|
|
(yy_last_accepting_cpos) = yy_cp;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
|
|
|
|
{
|
|
|
|
yy_current_state = (int) yy_def[yy_current_state];
|
2006-06-13 20:23:26 +00:00
|
|
|
if ( yy_current_state >= 399 )
|
2005-10-27 07:29:40 +00:00
|
|
|
yy_c = yy_meta[(unsigned int) yy_c];
|
|
|
|
}
|
|
|
|
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
|
2006-06-13 20:23:26 +00:00
|
|
|
yy_is_jam = (yy_current_state == 398);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_NO_INPUT
|
2005-10-27 07:29:40 +00:00
|
|
|
#ifdef __cplusplus
|
2006-02-17 14:19:39 +00:00
|
|
|
static int yyinput (void)
|
2005-10-27 07:29:40 +00:00
|
|
|
#else
|
2006-02-17 14:19:39 +00:00
|
|
|
static int input (void)
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
int c;
|
|
|
|
|
|
|
|
*(yy_c_buf_p) = (yy_hold_char);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* yy_c_buf_p now points to the character we want to return.
|
|
|
|
* If this occurs *before* the EOB characters, then it's a
|
|
|
|
* valid NUL; if not, then we've hit the end of the buffer.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
|
2005-10-27 07:29:40 +00:00
|
|
|
/* This was really a NUL. */
|
2006-02-17 14:19:39 +00:00
|
|
|
*(yy_c_buf_p) = '\0';
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
{ /* need more input */
|
2006-04-12 09:32:17 +00:00
|
|
|
int offset = (int)((yy_c_buf_p) - (yytext_ptr));
|
2006-02-17 14:19:39 +00:00
|
|
|
++(yy_c_buf_p);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
switch ( yy_get_next_buffer( ) )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
case EOB_ACT_LAST_MATCH:
|
|
|
|
/* This happens because yy_g_n_b()
|
|
|
|
* sees that we've accumulated a
|
|
|
|
* token and flags that we need to
|
|
|
|
* try matching the token before
|
|
|
|
* proceeding. But for input(),
|
|
|
|
* there's no matching to consider.
|
|
|
|
* So convert the EOB_ACT_LAST_MATCH
|
|
|
|
* to EOB_ACT_END_OF_FILE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Reset buffer status. */
|
2006-02-17 14:19:39 +00:00
|
|
|
yyrestart(yyin );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/*FALLTHROUGH*/
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
case EOB_ACT_END_OF_FILE:
|
|
|
|
{
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( yywrap( ) )
|
2005-10-27 07:29:40 +00:00
|
|
|
return EOF;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( ! (yy_did_buffer_switch_on_eof) )
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_NEW_FILE;
|
|
|
|
#ifdef __cplusplus
|
|
|
|
return yyinput();
|
|
|
|
#else
|
|
|
|
return input();
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
case EOB_ACT_CONTINUE_SCAN:
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_c_buf_p) = (yytext_ptr) + offset;
|
2005-10-27 07:29:40 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
|
|
|
|
*(yy_c_buf_p) = '\0'; /* preserve yytext */
|
|
|
|
(yy_hold_char) = *++(yy_c_buf_p);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
return c;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
|
|
|
#endif /* ifndef YY_NO_INPUT */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Immediately switch to a different input stream.
|
|
|
|
* @param input_file A readable stream.
|
|
|
|
*
|
|
|
|
* @note This function does not reset the start condition to @c INITIAL .
|
|
|
|
*/
|
2008-02-06 13:14:42 +00:00
|
|
|
static void yyrestart (FILE * input_file )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
if ( ! YY_CURRENT_BUFFER ){
|
|
|
|
yyensure_buffer_stack ();
|
|
|
|
YY_CURRENT_BUFFER_LVALUE =
|
|
|
|
yy_create_buffer(yyin,YY_BUF_SIZE );
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_init_buffer(YY_CURRENT_BUFFER,input_file );
|
|
|
|
yy_load_buffer_state( );
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Switch to a different input buffer.
|
|
|
|
* @param new_buffer The new input buffer.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
/* TODO. We should be able to replace this entire function body
|
|
|
|
* with
|
|
|
|
* yypop_buffer_state();
|
|
|
|
* yypush_buffer_state(new_buffer);
|
|
|
|
*/
|
|
|
|
yyensure_buffer_stack ();
|
|
|
|
if ( YY_CURRENT_BUFFER == new_buffer )
|
2005-10-27 07:29:40 +00:00
|
|
|
return;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( YY_CURRENT_BUFFER )
|
2005-10-27 07:29:40 +00:00
|
|
|
{
|
|
|
|
/* Flush out information for old buffer. */
|
2006-02-17 14:19:39 +00:00
|
|
|
*(yy_c_buf_p) = (yy_hold_char);
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
YY_CURRENT_BUFFER_LVALUE = new_buffer;
|
|
|
|
yy_load_buffer_state( );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
/* We don't actually know whether we did this switch during
|
|
|
|
* EOF (yywrap()) processing, but the only time this flag
|
|
|
|
* is looked at is after yywrap() is called, so it's safe
|
|
|
|
* to go ahead and always set it.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
(yy_did_buffer_switch_on_eof) = 1;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
static void yy_load_buffer_state (void)
|
|
|
|
{
|
|
|
|
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
|
|
|
|
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
|
|
|
|
yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
|
|
|
|
(yy_hold_char) = *(yy_c_buf_p);
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Allocate and initialize an input buffer state.
|
|
|
|
* @param file A readable stream.
|
|
|
|
* @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
|
|
|
|
*
|
|
|
|
* @return the allocated buffer state.
|
|
|
|
*/
|
2008-02-06 13:14:42 +00:00
|
|
|
static YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
YY_BUFFER_STATE b;
|
2006-02-17 14:19:39 +00:00
|
|
|
|
|
|
|
b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
|
2005-10-27 07:29:40 +00:00
|
|
|
if ( ! b )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
|
|
|
|
|
|
|
b->yy_buf_size = size;
|
|
|
|
|
|
|
|
/* yy_ch_buf has to be 2 characters longer than the size given because
|
|
|
|
* we need to put in 2 end-of-buffer characters.
|
|
|
|
*/
|
2006-02-17 14:19:39 +00:00
|
|
|
b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
|
2005-10-27 07:29:40 +00:00
|
|
|
if ( ! b->yy_ch_buf )
|
|
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
|
|
|
|
|
|
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_init_buffer(b,file );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
return b;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Destroy the buffer.
|
|
|
|
* @param b a buffer created with yy_create_buffer()
|
|
|
|
*
|
|
|
|
*/
|
2008-02-06 13:14:42 +00:00
|
|
|
static void yy_delete_buffer (YY_BUFFER_STATE b )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
if ( ! b )
|
|
|
|
return;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
if ( b->yy_is_our_buffer )
|
2006-02-17 14:19:39 +00:00
|
|
|
yyfree((void *) b->yy_ch_buf );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yyfree((void *) b );
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Initializes or reinitializes a buffer.
|
|
|
|
* This function is sometimes called more than once on the same buffer,
|
|
|
|
* such as during a yyrestart() or at EOF.
|
|
|
|
*/
|
|
|
|
static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
int oerrno = errno;
|
|
|
|
|
|
|
|
yy_flush_buffer(b );
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
b->yy_input_file = file;
|
|
|
|
b->yy_fill_buffer = 1;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* If b is the current buffer, then yy_init_buffer was _probably_
|
|
|
|
* called from yyrestart() or through yy_get_next_buffer.
|
|
|
|
* In that case, we don't want to reset the lineno or column.
|
|
|
|
*/
|
|
|
|
if (b != YY_CURRENT_BUFFER){
|
|
|
|
b->yy_bs_lineno = 1;
|
|
|
|
b->yy_bs_column = 0;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
b->yy_is_interactive = 0;
|
|
|
|
|
|
|
|
errno = oerrno;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
|
|
|
|
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-06 13:14:42 +00:00
|
|
|
static void yy_flush_buffer (YY_BUFFER_STATE b )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
if ( ! b )
|
2005-10-27 07:29:40 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
b->yy_n_chars = 0;
|
|
|
|
|
|
|
|
/* We always need two end-of-buffer characters. The first causes
|
|
|
|
* a transition to the end-of-buffer state. The second causes
|
|
|
|
* a jam in that state.
|
|
|
|
*/
|
|
|
|
b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
|
|
|
|
b->yy_buf_pos = &b->yy_ch_buf[0];
|
|
|
|
|
|
|
|
b->yy_at_bol = 1;
|
|
|
|
b->yy_buffer_status = YY_BUFFER_NEW;
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ( b == YY_CURRENT_BUFFER )
|
|
|
|
yy_load_buffer_state( );
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Pushes the new state onto the stack. The new state becomes
|
|
|
|
* the current state. This function will allocate the stack
|
|
|
|
* if necessary.
|
|
|
|
* @param new_buffer The new state.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
if (new_buffer == NULL)
|
|
|
|
return;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yyensure_buffer_stack();
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* This block is copied from yy_switch_to_buffer. */
|
|
|
|
if ( YY_CURRENT_BUFFER )
|
|
|
|
{
|
|
|
|
/* Flush out information for old buffer. */
|
|
|
|
*(yy_c_buf_p) = (yy_hold_char);
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
|
|
|
|
YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Only push if top exists. Otherwise, replace top. */
|
|
|
|
if (YY_CURRENT_BUFFER)
|
|
|
|
(yy_buffer_stack_top)++;
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = new_buffer;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* copied from yy_switch_to_buffer. */
|
|
|
|
yy_load_buffer_state( );
|
|
|
|
(yy_did_buffer_switch_on_eof) = 1;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Removes and deletes the top of the stack, if present.
|
|
|
|
* The next element becomes the new top.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yypop_buffer_state (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
if (!YY_CURRENT_BUFFER)
|
|
|
|
return;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
yy_delete_buffer(YY_CURRENT_BUFFER );
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = NULL;
|
|
|
|
if ((yy_buffer_stack_top) > 0)
|
|
|
|
--(yy_buffer_stack_top);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if (YY_CURRENT_BUFFER) {
|
|
|
|
yy_load_buffer_state( );
|
|
|
|
(yy_did_buffer_switch_on_eof) = 1;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Allocates the stack if it does not exist.
|
|
|
|
* Guarantees space for at least one push.
|
|
|
|
*/
|
|
|
|
static void yyensure_buffer_stack (void)
|
|
|
|
{
|
|
|
|
int num_to_alloc;
|
|
|
|
|
|
|
|
if (!(yy_buffer_stack)) {
|
|
|
|
|
|
|
|
/* First allocation is just for 2 elements, since we don't know if this
|
|
|
|
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
|
|
|
* immediate realloc on the next call.
|
|
|
|
*/
|
|
|
|
num_to_alloc = 1;
|
|
|
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
|
|
|
|
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
|
|
|
);
|
|
|
|
|
|
|
|
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
|
|
|
|
|
|
|
|
(yy_buffer_stack_max) = num_to_alloc;
|
|
|
|
(yy_buffer_stack_top) = 0;
|
|
|
|
return;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Increase the buffer to prepare for a possible push. */
|
|
|
|
int grow_size = 8 /* arbitrary grow size */;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
num_to_alloc = (yy_buffer_stack_max) + grow_size;
|
|
|
|
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
|
|
|
|
((yy_buffer_stack),
|
|
|
|
num_to_alloc * sizeof(struct yy_buffer_state*)
|
|
|
|
);
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* zero only the new slots.*/
|
|
|
|
memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
|
|
|
|
(yy_buffer_stack_max) = num_to_alloc;
|
2005-10-27 07:29:40 +00:00
|
|
|
}
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#ifndef YY_EXIT_FAILURE
|
|
|
|
#define YY_EXIT_FAILURE 2
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
static void yy_fatal_error (yyconst char* msg )
|
|
|
|
{
|
|
|
|
(void) fprintf( stderr, "%s\n", msg );
|
|
|
|
exit( YY_EXIT_FAILURE );
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Redefine yyless() so it works in section 3 code. */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#undef yyless
|
|
|
|
#define yyless(n) \
|
|
|
|
do \
|
|
|
|
{ \
|
|
|
|
/* Undo effects of setting up yytext. */ \
|
|
|
|
int yyless_macro_arg = (n); \
|
|
|
|
YY_LESS_LINENO(yyless_macro_arg);\
|
|
|
|
yytext[yyleng] = (yy_hold_char); \
|
|
|
|
(yy_c_buf_p) = yytext + yyless_macro_arg; \
|
|
|
|
(yy_hold_char) = *(yy_c_buf_p); \
|
|
|
|
*(yy_c_buf_p) = '\0'; \
|
|
|
|
yyleng = yyless_macro_arg; \
|
|
|
|
} \
|
|
|
|
while ( 0 )
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Accessor methods (get/set functions) to struct members. */
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Get the current line number.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static int yyget_lineno (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
return yylineno;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Get the input stream.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static FILE *yyget_in (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
return yyin;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Get the output stream.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static FILE *yyget_out (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
return yyout;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Get the length of the current token.
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static int yyget_leng (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
return yyleng;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Get the current token.
|
|
|
|
*
|
|
|
|
*/
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static char *yyget_text (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
return yytext;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Set the current line number.
|
|
|
|
* @param line_number
|
|
|
|
*
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yyset_lineno (int line_number )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
yylineno = line_number;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/** Set the input stream. This does not discard the current
|
|
|
|
* input buffer.
|
|
|
|
* @param in_str A readable stream.
|
|
|
|
*
|
|
|
|
* @see yy_switch_to_buffer
|
|
|
|
*/
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yyset_in (FILE * in_str )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
yyin = in_str ;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yyset_out (FILE * out_str )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
yyout = out_str ;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static int yyget_debug (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
return yy_flex_debug;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static void yyset_debug (int bdebug )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
yy_flex_debug = bdebug ;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* yylex_destroy is for both reentrant and non-reentrant scanners. */
|
2008-02-07 10:03:54 +00:00
|
|
|
__attribute__((unused)) static int yylex_destroy (void)
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
/* Pop the buffer stack, destroying each element. */
|
|
|
|
while(YY_CURRENT_BUFFER){
|
|
|
|
yy_delete_buffer(YY_CURRENT_BUFFER );
|
|
|
|
YY_CURRENT_BUFFER_LVALUE = NULL;
|
|
|
|
yypop_buffer_state();
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/* Destroy the stack itself. */
|
|
|
|
yyfree((yy_buffer_stack) );
|
|
|
|
(yy_buffer_stack) = NULL;
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
return 0;
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
/*
|
|
|
|
* Internal utility routines.
|
|
|
|
*/
|
2005-10-27 07:29:40 +00:00
|
|
|
|
|
|
|
#ifndef yytext_ptr
|
2006-02-17 14:19:39 +00:00
|
|
|
static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
|
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
register int i;
|
2006-02-17 14:19:39 +00:00
|
|
|
for ( i = 0; i < n; ++i )
|
2005-10-27 07:29:40 +00:00
|
|
|
s1[i] = s2[i];
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YY_NEED_STRLEN
|
2006-02-17 14:19:39 +00:00
|
|
|
static int yy_flex_strlen (yyconst char * s )
|
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
register int n;
|
2006-02-17 14:19:39 +00:00
|
|
|
for ( n = 0; s[n]; ++n )
|
2005-10-27 07:29:40 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
return n;
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static void *yyalloc (yy_size_t size )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
return (void *) malloc( size );
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static void *yyrealloc (void * ptr, yy_size_t size )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
2005-10-27 07:29:40 +00:00
|
|
|
/* The cast to (char *) in the following accommodates both
|
|
|
|
* implementations that use char* generic pointers, and those
|
|
|
|
* that use void* generic pointers. It works with the latter
|
|
|
|
* because both ANSI C and C++ allow castless assignment from
|
|
|
|
* any pointer type to void*, and deal with argument conversions
|
|
|
|
* as though doing an assignment.
|
|
|
|
*/
|
|
|
|
return (void *) realloc( (char *) ptr, size );
|
2006-02-17 14:19:39 +00:00
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2008-02-06 13:14:42 +00:00
|
|
|
static void yyfree (void * ptr )
|
2006-02-17 14:19:39 +00:00
|
|
|
{
|
|
|
|
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
|
|
|
|
}
|
2005-10-27 07:29:40 +00:00
|
|
|
|
2006-02-17 14:19:39 +00:00
|
|
|
#define YYTABLES_NAME "yytables"
|
|
|
|
|
|
|
|
#undef YY_NEW_FILE
|
|
|
|
#undef YY_FLUSH_BUFFER
|
|
|
|
#undef yy_set_bol
|
|
|
|
#undef yy_new_buffer
|
|
|
|
#undef yy_set_interactive
|
|
|
|
#undef yytext_ptr
|
|
|
|
#undef YY_DO_BEFORE_ACTION
|
|
|
|
|
|
|
|
#ifdef YY_DECL_IS_OURS
|
|
|
|
#undef YY_DECL_IS_OURS
|
|
|
|
#undef YY_DECL
|
2005-10-27 07:29:40 +00:00
|
|
|
#endif
|
2006-06-13 20:23:26 +00:00
|
|
|
#line 648 "pars0lex.l"
|
2006-02-17 14:19:39 +00:00
|
|
|
|
|
|
|
|
2005-10-27 07:29:40 +00:00
|
|
|
|
branches/innodb+: Merge revisions r5971:6130 from branches/zip.
------------------------------------------------------------------------
r5971 | marko | 2009-09-23 23:03:51 +1000 (Wed, 23 Sep 2009) | 2 lines
branches/zip: os_file_pwrite(): Make the code compile in InnoDB Hot Backup
when the pwrite system call is not available.
------------------------------------------------------------------------
r5972 | marko | 2009-09-24 05:44:52 +1000 (Thu, 24 Sep 2009) | 5 lines
branches/zip: fil_node_open_file(): In InnoDB Hot Backup,
determine the page size of single-file tablespaces before computing
the file node size. Otherwise, the space->size of compressed tablespaces
would be computed with UNIV_PAGE_SIZE instead of key_block_size.
This should fix Issue #313.
------------------------------------------------------------------------
r5973 | marko | 2009-09-24 05:53:21 +1000 (Thu, 24 Sep 2009) | 2 lines
branches/zip: recv_add_to_hash_table():
Simplify obfuscated pointer arithmetics.
------------------------------------------------------------------------
r5978 | marko | 2009-09-24 17:47:56 +1000 (Thu, 24 Sep 2009) | 1 line
branches/zip: Fix warnings and errors when UNIV_HOTBACKUP is defined.
------------------------------------------------------------------------
r5979 | marko | 2009-09-24 20:16:10 +1000 (Thu, 24 Sep 2009) | 4 lines
branches/zip: ha_innodb.cc: Define MYSQL_PLUGIN_IMPORT when necessary.
This preprocessor symbol has been recently introduced in MySQL 5.1.
The InnoDB Plugin should remain source compatible with MySQL 5.1.24
and later.
------------------------------------------------------------------------
r5988 | calvin | 2009-09-26 05:14:43 +1000 (Sat, 26 Sep 2009) | 8 lines
branches/zip: fix bug#47055 unconditional exit(1) on ERROR_WORKING_SET_QUOTA
1453 (0x5AD) for InnoDB backend
When error ERROR_WORKING_SET_QUOTA or ERROR_NO_SYSTEM_RESOURCES
occurs, yields for 100ms and retries the operation.
Approved by: Heikki (on IM)
------------------------------------------------------------------------
r5992 | vasil | 2009-09-28 17:10:29 +1000 (Mon, 28 Sep 2009) | 4 lines
branches/zip:
Add ChangeLog entry for c5988.
------------------------------------------------------------------------
r5994 | marko | 2009-09-28 18:33:59 +1000 (Mon, 28 Sep 2009) | 17 lines
branches/zip: Try to prevent the reuse of tablespace identifiers after
InnoDB has crashed during table creation. Also, refuse to start if
files with duplicate tablespace identifiers are encountered.
fil_node_create(): Update fil_system->max_assigned_id. This should
prevent the reuse of a space->id when InnoDB does a full crash
recovery and invokes fil_load_single_table_tablespaces(). Normally,
fil_system->max_assigned_id is initialized from
SELECT MAX(ID) FROM SYS_TABLES.
fil_open_single_table_tablespace(): Return FALSE when
fil_space_create() fails.
fil_load_single_table_tablespace(): Exit if fil_space_create() fails
and innodb_force_recovery=0.
rb://173 approved by Heikki Tuuri. This addresses Issue #335.
------------------------------------------------------------------------
r5995 | marko | 2009-09-28 18:52:25 +1000 (Mon, 28 Sep 2009) | 17 lines
branches/zip: Do not write to PAGE_INDEX_ID after page creation,
not even when restoring an uncompressed page after a compression failure.
btr_page_reorganize_low(): On compression failure, do not restore
those page header fields that should not be affected by the
reorganization. Instead, compare the fields.
page_zip_decompress(): Add the parameter ibool all, for copying all
page header fields. Pass the parameter all=TRUE on block read
completion, redo log application, and page_zip_validate(); pass
all=FALSE in all other cases.
page_zip_reorganize(): Do not restore the uncompressed page on
failure. It will be restored (to pre-modification state) by the
caller anyway.
rb://167, Issue #346
------------------------------------------------------------------------
r5996 | marko | 2009-09-28 22:46:02 +1000 (Mon, 28 Sep 2009) | 4 lines
branches/zip: Address Issue #350 in comments.
lock_rec_queue_validate(), lock_rec_queue_validate(): Note that
this debug code may violate the latching order and cause deadlocks.
------------------------------------------------------------------------
r5997 | marko | 2009-09-28 23:03:58 +1000 (Mon, 28 Sep 2009) | 12 lines
branches/zip: Remove an assertion failure when the InnoDB data dictionary
is inconsistent with the MySQL .frm file.
ha_innobase::index_read(): When the index cannot be found,
return an error.
ha_innobase::change_active_index(): When prebuilt->index == NULL,
set also prebuilt->index_usable = FALSE. This is not needed for
correctness, because prebuilt->index_usable is only checked by
row_search_for_mysql(), which requires prebuilt->index != NULL.
This addresses Issue #349. Approved by Heikki Tuuri over IM.
------------------------------------------------------------------------
r6005 | vasil | 2009-09-29 18:09:52 +1000 (Tue, 29 Sep 2009) | 4 lines
branches/zip:
ChangeLog: wrap around 78th column, not earlier.
------------------------------------------------------------------------
r6006 | vasil | 2009-09-29 20:15:25 +1000 (Tue, 29 Sep 2009) | 4 lines
branches/zip:
Add ChangeLog entry for the release of 1.0.4.
------------------------------------------------------------------------
r6007 | vasil | 2009-09-29 23:19:59 +1000 (Tue, 29 Sep 2009) | 6 lines
branches/zip:
Fix the year, should be 2009.
Pointed by: Calvin
------------------------------------------------------------------------
r6026 | marko | 2009-09-30 17:18:24 +1000 (Wed, 30 Sep 2009) | 1 line
branches/zip: Add some debug assertions for checking FSEG_MAGIC_N.
------------------------------------------------------------------------
r6028 | marko | 2009-09-30 23:55:23 +1000 (Wed, 30 Sep 2009) | 3 lines
branches/zip: recv_no_log_write: New debug flag for tracking down
Mantis Issue #347. No modifications should be made to the database
while recv_apply_hashed_log_recs() is about to complete.
------------------------------------------------------------------------
r6029 | calvin | 2009-10-01 06:32:02 +1000 (Thu, 01 Oct 2009) | 4 lines
branches/zip: non-functional changes
Fix typo.
------------------------------------------------------------------------
r6031 | marko | 2009-10-01 21:24:33 +1000 (Thu, 01 Oct 2009) | 49 lines
branches/zip: Clean up after a crash during DROP INDEX.
When InnoDB crashes while dropping an index, ensure that
the index will be completely dropped during crash recovery.
row_merge_drop_index(): Before dropping an index, rename the index to
start with TEMP_INDEX_PREFIX_STR and commit the change, so that
row_merge_drop_temp_indexes() will drop the index after crash
recovery if the server crashes while dropping the index.
fseg_inode_try_get(): New function, forked from fseg_inode_get().
Return NULL if the file segment index node is free.
fseg_inode_get(): Assert that the file segment index node is not free.
fseg_free_step(): If the file segment index node is already free,
print a diagnostic message and return TRUE.
fsp_free_seg_inode(): Write a nonzero number to FSEG_MAGIC_N, so that
allocated-and-freed file segment index nodes can be better
distinguished from uninitialized ones.
This is rb://174, addressing Issue #348.
Tested by restarting mysqld upon the completion of the added
log_write_up_to() invocation below, during DROP INDEX. The index was
dropped after crash recovery, and re-issuing the DROP INDEX did not
crash the server.
Index: btr/btr0btr.c
===================================================================
--- btr/btr0btr.c (revision 6026)
+++ btr/btr0btr.c (working copy)
@@ -42,6 +42,7 @@ Created 6/2/1994 Heikki Tuuri
#include "ibuf0ibuf.h"
#include "trx0trx.h"
+#include "log0log.h"
/*
Latching strategy of the InnoDB B-tree
--------------------------------------
@@ -873,6 +874,8 @@ leaf_loop:
goto leaf_loop;
}
+
+ log_write_up_to(mtr.end_lsn, LOG_WAIT_ALL_GROUPS, TRUE);
top_loop:
mtr_start(&mtr);
------------------------------------------------------------------------
r6033 | calvin | 2009-10-02 06:19:46 +1000 (Fri, 02 Oct 2009) | 4 lines
branches/zip: fix a typo in error message
Reported as bug#47763.
------------------------------------------------------------------------
r6043 | inaam | 2009-10-06 01:45:35 +1100 (Tue, 06 Oct 2009) | 12 lines
branches/zip rb://176
Do not invalidate buffer pool while an LRU batch is active. Added
code to buf_pool_invalidate() to wait for the running batches to finish.
This patch also resets the state of buf_pool struct at invalidation. This
addresses the concern where buf_pool->freed_page_clock becomes non-zero
because we read in a system tablespace page for file format info at
startup.
Approved by: Marko
------------------------------------------------------------------------
r6044 | pekka | 2009-10-07 01:44:54 +1100 (Wed, 07 Oct 2009) | 5 lines
branches/zip:
Add os_file_is_same() function for Hot Backup (inside ifdef UNIV_HOTBACKUP).
This is part of the fix for Issue #186.
Note! The Windows implementation is incomplete.
------------------------------------------------------------------------
r6046 | pekka | 2009-10-08 20:24:56 +1100 (Thu, 08 Oct 2009) | 3 lines
branches/zip: Revert r6044 which added os_file_is_same() function
(issue#186). This functionality is moved to Hot Backup source tree.
------------------------------------------------------------------------
r6048 | vasil | 2009-10-09 16:42:55 +1100 (Fri, 09 Oct 2009) | 16 lines
branches/zip:
When scanning a directory readdir() is called and stat() after it,
if a file is deleted between the two calls stat will fail and the
whole precedure will fail. Change this behavior to continue with the
next entry if stat() fails because of nonexistent file. This is
transparent change as it will make it look as if the file was deleted
before the readdir() call.
This change is needed in order to fix
https://svn.innodb.com/mantis/view.php?id=174
in which we need to abort if os_file_readdir_next_file()
encounters "real" errors.
Approved by: Marko, Pekka (rb://177)
------------------------------------------------------------------------
r6049 | vasil | 2009-10-10 03:05:26 +1100 (Sat, 10 Oct 2009) | 7 lines
branches/zip:
Fix compilation warning in Hot Backup:
innodb/fil/fil0fil.c: In function 'fil_load_single_table_tablespace':
innodb/fil/fil0fil.c:3253: warning: format '%lld' expects type 'long long int', but argument 6 has type 'ib_int64_t'
------------------------------------------------------------------------
r6064 | calvin | 2009-10-14 02:23:35 +1100 (Wed, 14 Oct 2009) | 4 lines
branches/zip: non-functional changes
Changes from MySQL to fix build issue.
------------------------------------------------------------------------
r6065 | inaam | 2009-10-14 04:43:13 +1100 (Wed, 14 Oct 2009) | 7 lines
branches/zip rb://182
Call fsync() on datafiles after a batch of pages is written to disk
even when skip_innodb_doublewrite is set.
Approved by: Heikki
------------------------------------------------------------------------
r6080 | sunny | 2009-10-15 09:29:01 +1100 (Thu, 15 Oct 2009) | 3 lines
branches/zip: Change page_mem_alloc_free() to inline.
Fix Bug #47058 - Failure to compile innodb_plugin on solaris 10u7 + spro cc/CC 5.10
------------------------------------------------------------------------
r6084 | vasil | 2009-10-15 16:21:17 +1100 (Thu, 15 Oct 2009) | 4 lines
branches/zip:
Add ChangeLog entry for r6080.
------------------------------------------------------------------------
r6095 | vasil | 2009-10-20 00:04:59 +1100 (Tue, 20 Oct 2009) | 7 lines
branches/zip:
Fix Bug#47808 innodb_information_schema.test fails when run under valgrind
by using the wait_until_rows_count macro that loops until the number of
rows becomes 14 instead of sleep 0.1, which is obviously very fragile.
------------------------------------------------------------------------
r6096 | vasil | 2009-10-20 00:06:09 +1100 (Tue, 20 Oct 2009) | 4 lines
branches/zip:
Add ChangeLog entry for r6095.
------------------------------------------------------------------------
r6099 | jyang | 2009-10-22 13:58:39 +1100 (Thu, 22 Oct 2009) | 7 lines
branches/zip: Port bug #46000 related changes from 5.1 to zip
branch. Due to different code path for creating index in zip
branch comparing to 5.1), the index reserved name check function
is extended to be used in ha_innobase::add_index().
rb://190 Approved by: Marko
------------------------------------------------------------------------
r6100 | jyang | 2009-10-22 14:51:07 +1100 (Thu, 22 Oct 2009) | 6 lines
branches/zip: As a request from mysql, WARN_LEVEL_ERROR cannot
be used for push_warning_* call any more. Switch to
WARN_LEVEL_WARN. Bug #47233.
rb://172 approved by Sunny Bains and Marko.
------------------------------------------------------------------------
r6101 | jyang | 2009-10-23 19:45:50 +1100 (Fri, 23 Oct 2009) | 7 lines
branches/zip: Update test result with the WARN_LEVEL_ERROR
to WARN_LEVEL_WARN change. This is the same result as
submitted in rb://172 review, which approved by Sunny Bains
and Marko.
------------------------------------------------------------------------
r6102 | marko | 2009-10-26 18:32:23 +1100 (Mon, 26 Oct 2009) | 1 line
branches/zip: row_prebuilt_struct::prebuilts: Unused field, remove.
------------------------------------------------------------------------
r6103 | marko | 2009-10-27 00:46:18 +1100 (Tue, 27 Oct 2009) | 4 lines
branches/zip: row_ins_alloc_sys_fields(): Zero out the system columns
DB_TRX_ID, DB_ROLL_PTR and DB_ROW_ID, in order to avoid harmless
Valgrind warnings about uninitialized data. (The warnings were
harmless, because the fields would be initialized at a later stage.)
------------------------------------------------------------------------
r6105 | calvin | 2009-10-28 09:05:52 +1100 (Wed, 28 Oct 2009) | 6 lines
branches/zip: backport r3848 from 6.0 branch
----
branches/6.0: innobase_start_or_create_for_mysql(): Make the 10 MB
minimum tablespace limit independent of UNIV_PAGE_SIZE. (Bug #41490)
------------------------------------------------------------------------
r6107 | marko | 2009-10-29 01:10:34 +1100 (Thu, 29 Oct 2009) | 5 lines
branches/zip: buf_page_set_old(): Improve UNIV_LRU_DEBUG diagnostics
in order to catch the buf_pool->LRU_old corruption reported in Issue #381.
buf_LRU_old_init(): Set the property from the tail towards the front
of the buf_pool->LRU list, in order not to trip the debug check.
------------------------------------------------------------------------
r6108 | calvin | 2009-10-29 16:58:04 +1100 (Thu, 29 Oct 2009) | 5 lines
branches/zip: close file handle when building with UNIV_HOTBACKUP
The change does not affect regular InnoDB engine. Confirmed by
Marko.
------------------------------------------------------------------------
r6109 | jyang | 2009-10-29 19:37:32 +1100 (Thu, 29 Oct 2009) | 7 lines
branches/zip: In os_mem_alloc_large(), if we fail to attach
the shared memory, reset memory pointer ptr to NULL, and
allocate memory from conventional pool.
Bug #48237 Error handling in os_mem_alloc_large appears to be incorrect
rb://198 Approved by: Marko
------------------------------------------------------------------------
r6110 | marko | 2009-10-29 21:44:57 +1100 (Thu, 29 Oct 2009) | 2 lines
branches/zip: Makefile.am (INCLUDES): Merge a change from MySQL:
Use $(srcdir)/include instead of $(top_srcdir)/storage/innobase/include.
------------------------------------------------------------------------
r6111 | marko | 2009-10-29 22:04:11 +1100 (Thu, 29 Oct 2009) | 33 lines
branches/zip: Fix corruption of buf_pool->LRU_old and improve debug assertions.
This was reported as Issue #381.
buf_page_set_old(): Assert that blocks may only be set old if
buf_pool->LRU_old is initialized and buf_pool->LRU_old_len is nonzero.
Assert that buf_pool->LRU_old points to the block at the old/new boundary.
buf_LRU_old_adjust_len(): Invoke buf_page_set_old() after adjusting
buf_pool->LRU_old and buf_pool->LRU_old_len, in order not to violate
the added assertions.
buf_LRU_old_init(): Replace buf_page_set_old() with a direct
assignment to bpage->old, because these loops that initialize all the
blocks would temporarily violate the assertions about
buf_pool->LRU_old.
buf_LRU_remove_block(): When setting buf_pool->LRU_old = NULL, also
clear all bpage->old flags and set buf_pool->LRU_old_len = 0.
buf_LRU_add_block_to_end_low(), buf_LRU_add_block_low(): Move the
buf_page_set_old() call later in order not to violate the debug
assertions. If buf_pool->LRU_old is NULL, set old=FALSE.
buf_LRU_free_block(): Replace the UNIV_LRU_DEBUG assertion with a
dummy buf_page_set_old() call that performs more thorough checks.
buf_LRU_validate(): Do not tolerate garbage in buf_pool->LRU_old_len
even if buf_pool->LRU_old is NULL. Check that bpage->old is monotonic.
buf_relocate(): Make the UNIV_LRU_DEBUG checks stricter.
buf0buf.h: Revise the documentation of buf_page_t::old and
buf_pool_t::LRU_old_len.
------------------------------------------------------------------------
r6112 | calvin | 2009-10-30 01:21:15 +1100 (Fri, 30 Oct 2009) | 4 lines
branches/zip: consideration for icc compilers
Proposed by MySQL, and approved by Marko.
------------------------------------------------------------------------
r6113 | vasil | 2009-10-30 03:15:50 +1100 (Fri, 30 Oct 2009) | 93 lines
branches/zip: Merge r5912:6112 from branches/5.1:
(after this merge the innodb-autoinc test starts to fail, but
I commit anyway because it would be easier to investigate the
failure this way)
------------------------------------------------------------------------
r5952 | calvin | 2009-09-22 19:45:07 +0300 (Tue, 22 Sep 2009) | 7 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1: fix bug#42383: Can't create table 'test.bug39438'
For embedded server, MySQL may pass in full path, which is
currently disallowed. It is needed to relax the condition by
accepting full paths in the embedded case.
Approved by: Heikki (on IM)
------------------------------------------------------------------------
r6032 | vasil | 2009-10-01 15:55:49 +0300 (Thu, 01 Oct 2009) | 8 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1:
Fix Bug#38996 Race condition in ANALYZE TABLE
by serializing ANALYZE TABLE inside InnoDB.
Approved by: Heikki (rb://175)
------------------------------------------------------------------------
r6045 | jyang | 2009-10-08 02:27:08 +0300 (Thu, 08 Oct 2009) | 7 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
A /branches/5.1/mysql-test/innodb_bug47777.result
A /branches/5.1/mysql-test/innodb_bug47777.test
branches/5.1: Fix bug #47777. Treat the Geometry data same as
Binary BLOB in ha_innobase::store_key_val_for_row(), since the
Geometry data is stored as Binary BLOB in Innodb.
Review: rb://180 approved by Marko Makela.
------------------------------------------------------------------------
r6051 | sunny | 2009-10-12 07:05:00 +0300 (Mon, 12 Oct 2009) | 6 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: Ignore negative values supplied by the user when calculating the
next value to store in dict_table_t. Setting autoincrement columns top negative
values is undefined behavior and this change should bring the behavior of
InnoDB closer to what users expect. Added several tests to check.
rb://162
------------------------------------------------------------------------
r6052 | sunny | 2009-10-12 07:09:56 +0300 (Mon, 12 Oct 2009) | 4 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: Reset the statement level autoinc counter on ROLLBACK. Fix
the test results too.
rb://164
------------------------------------------------------------------------
r6053 | sunny | 2009-10-12 07:37:49 +0300 (Mon, 12 Oct 2009) | 6 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb-autoinc.result
M /branches/5.1/mysql-test/innodb-autoinc.test
branches/5.1: Copy the maximum AUTOINC value from the old table to the new
table when MySQL does a CREATE INDEX ON T. This is required because MySQL
does a table copy, rename and drops the old table.
Fix Bug#47125: auto_increment start value is ignored if an index is created and engine=innodb
rb://168
------------------------------------------------------------------------
r6076 | vasil | 2009-10-14 19:30:12 +0300 (Wed, 14 Oct 2009) | 4 lines
Changed paths:
M /branches/5.1/row/row0mysql.c
branches/5.1:
Fix typo.
------------------------------------------------------------------------
------------------------------------------------------------------------
r6114 | vasil | 2009-10-30 03:43:51 +1100 (Fri, 30 Oct 2009) | 6 lines
branches/zip:
* Add ChangeLog entries for latest changes
* Obey alphabetical order in the list of the files
* White-space fixup
------------------------------------------------------------------------
r6121 | sunny | 2009-10-30 10:42:11 +1100 (Fri, 30 Oct 2009) | 7 lines
branches/zip: This test has been problematic for sometime now. The underlying
bug is that the data dictionaries get out of sync. In the AUTOINC code we
try and apply salve to the symptoms. In the past MySQL made some unrelated
change and the dictionaries stopped getting out of sync and this test started
to fail. Now, it seems they have reverted that changed and the test is
passing again. I suspect this is not he last time that this test will change.
------------------------------------------------------------------------
r6124 | jyang | 2009-10-30 19:02:31 +1100 (Fri, 30 Oct 2009) | 5 lines
branches/zip: Correct the bug number for -r6109 change
from # 48273 to #48237
------------------------------------------------------------------------
r6126 | vasil | 2009-10-30 19:36:07 +1100 (Fri, 30 Oct 2009) | 45 lines
branches/zip: Merge r6112:6125 from branches/5.1:
(skipping r6122 and r6123, Jimmy says these are already present and need
not be merged):
------------------------------------------------------------------------
r6122 | jyang | 2009-10-30 05:18:38 +0200 (Fri, 30 Oct 2009) | 7 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
M /branches/5.1/mysql-test/innodb_bug44369.result
M /branches/5.1/mysql-test/innodb_bug44369.test
M /branches/5.1/mysql-test/innodb_bug46000.result
M /branches/5.1/mysql-test/innodb_bug46000.test
branches/5.1: Chnage WARN_LEVEL_ERROR to WARN_LEVEL_WARN
for push_warning_printf() call in innodb.
Fix Bug#47233: Innodb calls push_warning(MYSQL_ERROR::WARN_LEVEL_ERROR)
rb://170 approved by Marko.
------------------------------------------------------------------------
r6123 | jyang | 2009-10-30 05:43:06 +0200 (Fri, 30 Oct 2009) | 8 lines
Changed paths:
M /branches/5.1/os/os0proc.c
branches/5.1: In os_mem_alloc_large(), if we fail to attach
the shared memory, reset memory pointer ptr to NULL, and
allocate memory from conventional pool. This is a port
from branches/zip.
Bug #48237 Error handling in os_mem_alloc_large appears to be incorrect
rb://198 Approved by: Marko
------------------------------------------------------------------------
r6125 | vasil | 2009-10-30 10:31:23 +0200 (Fri, 30 Oct 2009) | 4 lines
Changed paths:
M /branches/5.1/handler/ha_innodb.cc
branches/5.1:
White-space fixup.
------------------------------------------------------------------------
------------------------------------------------------------------------
r6130 | marko | 2009-11-02 20:42:56 +1100 (Mon, 02 Nov 2009) | 9 lines
branches/zip: Free all resources at shutdown. Set pointers to NULL, so
that Valgrind will not complain about freed data structures that are
reachable via pointers. This addresses Bug #45992 and Bug #46656.
This patch is mostly based on changes copied from branches/embedded-1.0,
mainly c5432, c3439, c3134, c2994, c2978, but also some other code was
copied. Some added cleanup code is specific to MySQL/InnoDB.
rb://199 approved by Sunny Bains
------------------------------------------------------------------------
2009-11-04 06:02:00 +00:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
Release any resources used by the lexer. */
|
|
|
|
UNIV_INTERN
|
|
|
|
void
|
|
|
|
pars_lexer_close(void)
|
|
|
|
/*==================*/
|
|
|
|
{
|
|
|
|
yylex_destroy();
|
|
|
|
free(stringbuf);
|
|
|
|
stringbuf = NULL;
|
|
|
|
stringbuf_len_alloc = stringbuf_len = 0;
|
|
|
|
}
|