#define MAX_ATTRIBUTE_CHARS (5 * 2)
-#define VERSION "0.60"
+#define VERSION "0.61"
typedef enum { false, true } bool;
case 0: /* long opts */
switch (opt_type)
{
- case OPT_ATTR: {
- char *opt;
- opt = xstrdup (optarg);
- process_opt_attr (opt);
- free (opt);
+ case OPT_ATTR:
+ process_opt_attr (optarg);
break;
- }
case OPT_CLEAN:
clean = true;
break;
vfprintf_fail (formats[FMT_GENERIC], "--attr switch must have strings separated by ,");
else
{
- /* If atttributes are added to this "list", also increase MAX_ATTRIBUTE_CHARS! */
+ /* If attributes are added to this "list", also increase MAX_ATTRIBUTE_CHARS! */
if (p - s == 4 && strneq (s, "bold", 4))
write_attr (1);
else if (p - s == 10 && strneq (s, "underscore", 10))