diff options
author | pem@mysql.com <> | 2002-12-12 13:14:23 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2002-12-12 13:14:23 +0100 |
commit | 77b671f5949726ae1444421694b1c3496f99af67 (patch) | |
tree | 595d5056b5c8e5c0258b01e6b1a3236f595f773f /sql/sp_pcontext.h | |
parent | f0137bcd686fbfe51fadb681713f61e0559c84da (diff) | |
download | mariadb-git-77b671f5949726ae1444421694b1c3496f99af67.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.
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r-- | sql/sp_pcontext.h | 6 |
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() { |