diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 15:55:54 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-17 15:55:54 -0800 |
commit | 8f1423946fd3ab9d5bca168de7fb12b9c397b034 (patch) | |
tree | 68031b5db0c159b8a4223f8c89b0d86fb2bf61d6 /tokenizer.h | |
parent | 51da4856e2ff124d8d5ad7a4a6ca844c81825133 (diff) |
Fix a crash when using quotes due to wgettext thread safety issues.
Diffstat (limited to 'tokenizer.h')
-rw-r--r-- | tokenizer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tokenizer.h b/tokenizer.h index c0c4034d..731f49bf 100644 --- a/tokenizer.h +++ b/tokenizer.h @@ -57,6 +57,10 @@ enum tokenizer_error */ #define TOK_SHOW_COMMENTS 2 +/** Flag telling the tokenizer to not generate error messages, which we need to do when tokenizing off of the main thread (since wgettext is not thread safe). +*/ +#define TOK_SQUASH_ERRORS 4 + /** The tokenizer struct. @@ -88,6 +92,9 @@ struct tokenizer wchar_t last_quote; /** Last error */ int error; + + /* Whether we are squashing errors */ + bool squash_errors; }; /** |