static int
gen_namespace_elt (struct agent_expr *ax, struct axs_value *value,
- const struct type *curtype, char *name);
+ const struct type *curtype, const char *name);
static int
gen_maybe_namespace_elt (struct agent_expr *ax, struct axs_value *value,
- const struct type *curtype, char *name);
+ const struct type *curtype, const char *name);
static void
gen_static_field (struct agent_expr *ax, struct axs_value *value,
static int
gen_struct_elt_for_reference (struct agent_expr *ax, struct axs_value *value,
- struct type *type, char *fieldname)
+ struct type *type, const char *fieldname)
{
struct type *t = type;
int i;
static int
gen_namespace_elt (struct agent_expr *ax, struct axs_value *value,
- const struct type *curtype, char *name)
+ const struct type *curtype, const char *name)
{
int found = gen_maybe_namespace_elt (ax, value, curtype, name);
static int
gen_maybe_namespace_elt (struct agent_expr *ax, struct axs_value *value,
- const struct type *curtype, char *name)
+ const struct type *curtype, const char *name)
{
const char *namespace_name = curtype->name ();
struct block_symbol sym;
static int
gen_aggregate_elt_ref (struct agent_expr *ax, struct axs_value *value,
- struct type *type, char *field)
+ struct type *type, const char *field)
{
switch (type->code ())
{
(*pc)++;
if ((*pc)[0].opcode == OP_INTERNALVAR)
{
- char *name = internalvar_name ((*pc)[1].internalvar);
+ const char *name = internalvar_name ((*pc)[1].internalvar);
struct trace_state_variable *tsv;
(*pc) += 3;
(*pc)++;
if ((*pc)[0].opcode == OP_INTERNALVAR)
{
- char *name = internalvar_name ((*pc)[1].internalvar);
+ const char *name = internalvar_name ((*pc)[1].internalvar);
struct trace_state_variable *tsv;
(*pc) += 3;
case STRUCTOP_PTR:
{
int length = (*pc)[1].longconst;
- char *name = &(*pc)[2].string;
+ const char *name = &(*pc)[2].string;
(*pc) += 4 + BYTES_TO_EXP_ELEM (length + 1);
gen_expr (exp, pc, ax, value);
{
struct type *type = (*pc)[1].type;
int length = longest_to_int ((*pc)[2].longconst);
- char *name = &(*pc)[3].string;
+ const char *name = &(*pc)[3].string;
int found;
found = gen_aggregate_elt_ref (ax, value, type, name);