summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <none@none>2012-03-29 11:57:55 +0200
committerportix <none@none>2012-03-29 11:57:55 +0200
commitf30a5235b76f2a4ae9a93dcd39c1f65d7ff4745b (patch)
treef97462a8a12109893a0fa21efff410a2053a1cc0 /src/util.c
parent778e8afddec62b2e83d89c5eff2b1d1428e95166 (diff)
downloaddwb-f30a5235b76f2a4ae9a93dcd39c1f65d7ff4745b.zip
Reintroducing 'local_set', new command 'toggle_local_setting'
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index d1ce2675..d3b7cb5b 100644
--- a/src/util.c
+++ b/src/util.c
@@ -130,6 +130,17 @@ util_arg_new() {
ret->e = NULL;
return ret;
}
+Arg *
+util_arg_copy(Arg *dest, Arg *src) {
+ dest->n = src->n;
+ dest->i = src->i;
+ dest->d = src->d;
+ dest->p = src->p;
+ dest->arg = src->arg;
+ dest->b = src->b;
+ dest->e = src->e;
+ return dest;
+}
/* util_char_to_arg(char *value, DwbType type) return: Arg*{{{*/
Arg *
util_char_to_arg(char *value, DwbType type) {