Mercurial > audlegacy
changeset 3322:de29bf952b77 trunk
fix recursion and combination of functions and expressions too
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Fri, 10 Aug 2007 19:43:25 -0500 |
parents | 6e3ae4fd65f1 |
children | c4402812b3e3 |
files | src/audacious/tuple_formatter.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/tuple_formatter.c Fri Aug 10 12:52:15 2007 -0500 +++ b/src/audacious/tuple_formatter.c Fri Aug 10 19:43:25 2007 -0500 @@ -121,6 +121,7 @@ rewind = *(iter - 1) == '}' && *iter != '}'; break; } + g_string_append_c(sel, *iter); } else if (*iter == '}' && ((sel != argument))) break; @@ -164,7 +165,13 @@ if (*iter == ':') { level++; - sel = argument; + if (sel != argument) + { + sel = argument; + continue; + } + else + g_string_append_c(sel, *iter); continue; } @@ -185,6 +192,7 @@ rewind = *(iter - 1) == '}' && *iter != '}'; break; } + g_string_append_c(sel, *iter); } else if (*iter == '}' && ((sel != argument))) break;