Mercurial > hg > octave-nkf
diff libinterp/parse-tree/token.h @ 20065:77f65eabac20 stable
avoid crash when __FILE__ is used at top level (bug #44363)
* lex.ll (octave_base_lexer::is_keyword_token): Call correct
constructor for magic_file_kw.
* token.h, token.cc (token::token (int, const char *, int, int)):
New constructor.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 25 Feb 2015 11:33:39 -0500 |
parents | 175b392e91fe |
children | 734a77207e2e |
line wrap: on
line diff
--- a/libinterp/parse-tree/token.h +++ b/libinterp/parse-tree/token.h @@ -64,6 +64,7 @@ token (int tv, int l = -1, int c = -1); token (int tv, bool is_keyword, int l = -1, int c = -1); + token (int tv, const char *s, int l = -1, int c = -1); token (int tv, const std::string& s, int l = -1, int c = -1); token (int tv, double d, const std::string& s = std::string (), int l = -1, int c = -1);