[gnome-commander/gcmd-1-2-8] advrename: simplify code for handling %[Dnt] tokens
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander/gcmd-1-2-8] advrename: simplify code for handling %[Dnt] tokens
- Date: Wed, 21 Oct 2009 22:26:25 +0000 (UTC)
commit 627e6cc0be401b7555cc05de4db06cc3528698d0
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Oct 21 23:39:27 2009 +0200
advrename: simplify code for handling %[Dnt] tokens
src/gnome-cmd-advrename-lexer.ll | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-cmd-advrename-lexer.ll b/src/gnome-cmd-advrename-lexer.ll
index 8f6c8a4..7e509bd 100644
--- a/src/gnome-cmd-advrename-lexer.ll
+++ b/src/gnome-cmd-advrename-lexer.ll
@@ -289,14 +289,7 @@ tag_name {ape}|{audio}|{doc}|{exif}|{file}|{flac}|{id3}|{image}|{iptc}|{pdf}|
fname_template.push_back(p);
}
-%[Dnt] {
- CHUNK *p = g_new0 (CHUNK,1);
-
- p->type = TEXT;
- p->s = g_string_new("%%");
-
- fname_template.push_back(p);
- }
+%[Dnt] yytext[1] = '%'; ECHO;
%%
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]