summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2002-12-12 13:14:23 +0100
committerunknown <pem@mysql.com>2002-12-12 13:14:23 +0100
commitb1b62274856c81a5f1f7a49384fc93810fd2a2bd (patch)
tree595d5056b5c8e5c0258b01e6b1a3236f595f773f /sql/sp_pcontext.h
parent37ce17e2cd6e796ca19674fb42f91bd153aaedf2 (diff)
downloadmariadb-git-b1b62274856c81a5f1f7a49384fc93810fd2a2bd.tar.gz
Moved create/find/drop functions to a separate files (sp.cc,sp.h).
Fixed backpatching of forward jumps. Implemented LOOP, WHILE, REPEAT (temporarily known as SPREPEAT). Known bug: Expression evaluation still not quite ok (e.g. "x > 0"), which is why IF and CASE is not yet implemented. sql/Makefile.am: Added new sp.h/sp.cc file. sql/item.h: New deferred result_type() method in Item_splocal. sql/lex.h: Temporary fix until REPEAT conflict is solved. Use SPREPEAT for now. sql/sp_head.cc: Moved create/find/drop functions to sp.cc. Fixed the backpatch stuff. (Also removed some dead code and updated comments.) sql/sp_head.h: Moved create/find/drop declarations to sp.h. Fixed the backpatch stuff. sql/sp_pcontext.h: New method: last_label(). sql/sql_parse.cc: Include sp.h. sql/sql_yacc.yy: Fixed backpatching of forward jumps. Implemented LOOP, WHILE, and REPEAT. (Note: SPREPEAT for now.)
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r--sql/sp_pcontext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h
index 8a37adcf427..7c8e2ba0c43 100644
--- a/sql/sp_pcontext.h
+++ b/sql/sp_pcontext.h
@@ -125,6 +125,12 @@ class sp_pcontext : public Sql_alloc
sp_label_t *
find_label(char *name);
+ inline sp_label_t *
+ last_label()
+ {
+ return m_label.head();
+ }
+
inline void
pop_label()
{