/[svn]/linuxsampler/trunk/src/scriptvm/parser_shared.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/scriptvm/parser_shared.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3835 by schoenebeck, Sat Feb 15 20:00:55 2020 UTC revision 3836 by schoenebeck, Sat Nov 28 14:47:14 2020 UTC
# Line 27  struct _YYSTYPE { Line 27  struct _YYSTYPE {
27      union {      union {
28          LinuxSampler::vmint iValue;          LinuxSampler::vmint iValue;
29          LinuxSampler::vmfloat fValue;          LinuxSampler::vmfloat fValue;
30            // Intentionally using C-strings instead of std::string for parser's
31            // string tokens, because any destructor based class had a negative
32            // impact on parser performance in benchmarks. Reason for this is that
33            // text tokens are the most common one while parsing, plus the parser
34            // copies the YYSTYPE struct a lot (i.e. when shifting). For C-strings
35            // coming directly from Flex, we don't have to free them. For C-strings
36            // allocated by us, use yyextra->autoFreeAfterParse(s);
37          char* sValue;          char* sValue;
38          struct {          struct {
39              LinuxSampler::vmint iValue;              LinuxSampler::vmint iValue;

Legend:
Removed from v.3835  
changed lines
  Added in v.3836

  ViewVC Help
Powered by ViewVC