attempts to use THRU with string variables.
Suggested by seth@swoolley.homeip.net.
+2007-04-16 Ben Pfaff <blp@gnu.org>
+
+ * recode.c (parse_map_in): Improve error message when user
+ attempts to use THRU with string variables.
+ Suggested by seth@swoolley.homeip.net.
+
2007-04-15 Ben Pfaff <blp@gnu.org>
* recode.c (parse_mappings): Initialize "out" member of mapping
return false;
set_map_in_str (in, pool, lex_tokstr (lexer), max_src_width);
lex_get (lexer);
+ if (lex_token (lexer) == T_ID
+ && lex_id_match (ss_cstr ("THRU"), ss_cstr (lex_tokid (lexer))))
+ {
+ msg (SE, _("THRU is not allowed with string variables."));
+ return false;
+ }
}
return true;