aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorSteve Slaven <bpk@hoopajoo.net>2006-01-31 21:35:02 (GMT)
committerSteve Slaven <bpk@hoopajoo.net>2006-01-31 21:35:02 (GMT)
commitf9a182724680088ede1468fd4058811a36b11129 (patch)
tree44933f96045fb3511aefedbb782041f26de82f4f /utils.c
parentc9491a4b97d2d85d9b9733acb87f72f5b6d62dc8 (diff)
downloadpowwow-f9a182724680088ede1468fd4058811a36b11129.zip
powwow-f9a182724680088ede1468fd4058811a36b11129.tar.gz
powwow-f9a182724680088ede1468fd4058811a36b11129.tar.bz2
Allow configuring the group delimiter to any arbitrary string
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 302d1d9..2e63215 100644
--- a/utils.c
+++ b/utils.c
@@ -1074,6 +1074,9 @@ int save_settings __P0 (void)
delim_mode == DELIM_CUSTOM ? ptrdata(pp) : "" );
}
+ if (failed > 0)
+ failed = fprintf(f, "#groupdelim %s\n", group_delim);
+
if (failed > 0 && *initstr)
failed = fprintf(f, "#init =%s\n", initstr);
@@ -1089,7 +1092,7 @@ int save_settings __P0 (void)
pp = ptrmescape(pp, alp->name, strlen(alp->name), 0);
if (MEM_ERROR) { failed = -1; break; }
failed = fprintf(f, "#alias %s%s%s=%s\n", ptrdata(pp),
- alp -> group == NULL ? "" : "@",
+ alp -> group == NULL ? "" : group_delim,
alp -> group == NULL ? "" : alp -> group,
alp->subst);
}
@@ -1100,7 +1103,7 @@ int save_settings __P0 (void)
failed = fprintf(f, "#action %c%c%s%s%s %s=%s\n",
action_chars[acp->type], acp->active ? '+' : '-',
acp->label,
- acp -> group == NULL ? "" : "@",
+ acp -> group == NULL ? "" : group_delim,
acp -> group == NULL ? "" : acp -> group,
acp->pattern, acp->command);
}