[Mp4h-devel]CVS: mp4h/src input.c,1.51,1.52
Brought to you by:
barbier
|
From: Denis B. <ba...@us...> - 2001-11-08 22:54:51
|
Update of /cvsroot/mp4h/mp4h/src
In directory usw-pr-cvs1:/tmp/cvs-serv22375/src
Modified Files:
input.c
Log Message:
Remove useless instructions
Index: input.c
===================================================================
RCS file: /cvsroot/mp4h/mp4h/src/input.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- input.c 2001/10/15 23:31:18 1.51
+++ input.c 2001/11/08 22:54:48 1.52
@@ -998,64 +998,42 @@
(void) next_char ();
if (IS_TAG(ch)) /* ESCAPED WORD */
{
- if (lquote.length > 0 && MATCH (ch, lquote.string))
+ obstack_1grow (&token_stack, ch);
+ ch = peek_input ();
+ if (ch != CHAR_EOF)
{
- if (visible_quotes || expansion == READ_ATTR_VERB
- || expansion == READ_ATTR_ASIS || expansion == READ_BODY)
- obstack_grow (&token_stack, lquote.string, lquote.length);
- while ((ch = next_char ()) != CHAR_EOF)
+ if (ch == '/')
{
- if (rquote.length > 0 && MATCH (ch, rquote.string))
- break;
- obstack_1grow (&token_stack, ch);
- }
- if (visible_quotes || expansion == READ_ATTR_VERB
- || expansion == READ_ATTR_ASIS || expansion == READ_BODY)
- {
- obstack_grow (&token_stack, rquote.string, rquote.length);
- type = TOKEN_STRING;
+ obstack_1grow (&token_stack, '/');
+ (void) next_char ();
+ ch = peek_input ();
}
- else
- type = TOKEN_QUOTED;
- }
- else
- {
- obstack_1grow (&token_stack, ch);
- if ((ch = peek_input ()) != CHAR_EOF)
+ if (IS_ALPHA(ch))
{
- if (ch == '/')
+ ch = next_char ();
+ obstack_1grow (&token_stack, ch);
+ while ((ch = next_char ()) != CHAR_EOF && IS_ALNUM(ch))
{
- obstack_1grow (&token_stack, '/');
- (void) next_char ();
- ch = peek_input ();
+ obstack_1grow (&token_stack, ch);
}
- if (IS_ALPHA(ch))
+ if (ch == '*')
{
- ch = next_char ();
obstack_1grow (&token_stack, ch);
- while ((ch = next_char ()) != CHAR_EOF && IS_ALNUM(ch))
- {
- obstack_1grow (&token_stack, ch);
- }
- if (ch == '*')
- {
- obstack_1grow (&token_stack, ch);
- ch = peek_input ();
- }
- else
- unget_input(ch);
-
- if (IS_SPACE(ch) || IS_CLOSE(ch) || IS_SLASH (ch))
- type = TOKEN_WORD;
- else
- type = TOKEN_STRING;
+ ch = peek_input ();
}
else
+ unget_input(ch);
+
+ if (IS_SPACE(ch) || IS_CLOSE(ch) || IS_SLASH (ch))
+ type = TOKEN_WORD;
+ else
type = TOKEN_STRING;
}
else
- type = TOKEN_SIMPLE; /* escape before eof */
+ type = TOKEN_STRING;
}
+ else
+ type = TOKEN_SIMPLE; /* '<' before eof */
}
else if (IS_CLOSE(ch))
{
|