diff options
author | pem@mysql.com <> | 2002-12-16 15:40:44 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2002-12-16 15:40:44 +0100 |
commit | b1593c9a692141cadb345d5da6836e503f0e1dbf (patch) | |
tree | 6a965cec0f444a67ed29877855da3a7309f6dce5 /sql/sp_pcontext.h | |
parent | 113b9240d1226c3934890144abfa9682cb4d8b8e (diff) | |
download | mariadb-git-b1593c9a692141cadb345d5da6836e503f0e1dbf.tar.gz |
Fixed the broken backpatching implementation.
Implemented IF-THEN-ELSE.
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r-- | sql/sp_pcontext.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h index 7c8e2ba0c43..2eb59172365 100644 --- a/sql/sp_pcontext.h +++ b/sql/sp_pcontext.h @@ -38,7 +38,7 @@ typedef struct my_bool isset; } sp_pvar_t; -typedef struct +typedef struct sp_label { char *name; uint ip; // Instruction index @@ -116,10 +116,10 @@ class sp_pcontext : public Sql_alloc return m_pvar+i; } - void + sp_label_t * push_label(char *name, uint ip); - void + sp_label_t * push_gen_label(uint ip); sp_label_t * @@ -131,10 +131,10 @@ class sp_pcontext : public Sql_alloc return m_label.head(); } - inline void + inline sp_label_t * pop_label() { - m_label.pop(); + return m_label.pop(); } private: |