struct gdbarch *gdbarch,
const struct block *context_block,
CORE_ADDR context_pc,
- int comma)
+ int comma,
+ const char *input)
: expr_builder (lang, gdbarch),
expression_context_block (context_block),
expression_context_pc (context_pc),
- comma_terminates (comma)
+ comma_terminates (comma),
+ lexptr (input)
{
}
/* Nonzero means stop parsing on first comma (if not within parentheses). */
int comma_terminates;
+
+ /* During parsing of a C expression, the pointer to the next character
+ is in this variable. */
+
+ const char *lexptr;
+
+ /* After a token has been recognized, this variable points to it.
+ Currently used only for error reporting. */
+ const char *prev_lexptr = nullptr;
};
/* When parsing expressions we track the innermost block that was
extern bool parse_float (const char *p, int len,
const struct type *type, gdb_byte *data);
-
-/* During parsing of a C expression, the pointer to the next character
- is in this variable. */
-
-extern const char *lexptr;
-
-/* After a token has been recognized, this variable points to it.
- Currently used only for error reporting. */
-extern const char *prev_lexptr;
\f
/* These codes indicate operator precedences for expression printing,
least tightly binding first. */