51 name = n ? strdup (n) : NULL;
61 name = o.name ? strdup (o.name) : NULL;
62 text = o.text ? strdup (o.text) : NULL;
71 if (name) free (name);
72 if (text) free (text);
77 if (name) free (name);
78 name = n ? strdup (n) : NULL;
90 if (text) { free (text); text = NULL; }
93 text = strdup (
"variable");
96 str = value.c->toString ();
97 text = (
char *) malloc (strlen (str) + 11);
98 sprintf (text,
"constant: %s", str);
101 str = value.v->toString ();
102 text = (
char *) malloc (strlen (str) + 8);
103 sprintf (text,
"value: %s", str);
106 str = value.r->toString ();
107 val = value.r->getResult()->toString ();
108 text = (
char *) malloc (strlen (str) + strlen (val) + 15);
109 sprintf (text,
"reference: %s = %s", str, val);
112 str = value.s->getName ();
113 text = (
char *) malloc (strlen (str) + 12);
114 sprintf (text,
"substrate: %s", str);
117 str = value.a->getName ();
118 text = (
char *) malloc (strlen (str) + 11);
119 sprintf (text,
"analysis: %s", str);
122 text = strdup (
"?variable?");