60 name = o.name ? strdup (o.name) : NULL;
63 ptxt = o.ptxt ? strdup (o.ptxt) : NULL;
69 if (name) free (name);
70 if (ptxt) free (ptxt);
76 if (name) free (name);
77 name = n ? strdup (n) : NULL;
94 property * p =
new property (n, val);
112 property * p =
new property (n, val);
132 sprintf (prop,
"Scaled:%s", n);
139 property * p =
new property (n, val);
184 sprintf (txt,
"Scaled:%s", n);
213 if (p != NULL && !p->isDefault ())
return true;
222 while (org != NULL) {
231 for (
property * p = prop; p != NULL; p =
n) {
247 if (ptxt) free (ptxt);
249 ptxt = (
char *) malloc (len); ptxt[0] =
'\0';
251 char *
n = p->getName ();
252 char * val = p->toString ();
253 char * text = (
char *) malloc (strlen (n) + strlen (val) + 4);
254 sprintf (text,
"%s=\"%s\"", n, val);
255 len += strlen (text);
256 ptxt = (
char *) realloc (ptxt, len);
258 if (p->getNext () != NULL) strcat (ptxt,
" ");