"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wml_backend/p2_mp4h/src/input.c" between
wml-2.28.0.tar.xz and wml-2.30.0.tar.xz

About: WML (Website META Language) is an extensible Webdesigner’s off-line HTML generation toolkit.

input.c  (wml-2.28.0.tar.xz):input.c  (wml-2.30.0.tar.xz)
skipping to change at line 276 skipping to change at line 276
DEBUG_MESSAGE2 ("Input reverted to %s, line %d", DEBUG_MESSAGE2 ("Input reverted to %s, line %d",
isp->u.u_f.name, isp->u.u_f.lineno); isp->u.u_f.name, isp->u.u_f.lineno);
fclose (isp->u.u_f.file); fclose (isp->u.u_f.file);
/* A common mistake is to forget closing some complex tags, which /* A common mistake is to forget closing some complex tags, which
result in an error `file: EOF when reading body of...' result in an error `file: EOF when reading body of...'
If file name has been changed by <__file__>, this name If file name has been changed by <__file__>, this name
should appear in error message instead of real file name. */ should appear in error message instead of real file name. */
if (isp->prev != NULL) if (isp->prev != NULL)
{ {
xfree ((voidstar) current_file); free ((voidstar) current_file);
current_file = xstrdup (isp->u.u_f.name); current_file = xstrdup (isp->u.u_f.name);
} }
xfree ((voidstar) isp->u.u_f.name); free ((voidstar) isp->u.u_f.name);
current_line = isp->u.u_f.lineno; current_line = isp->u.u_f.lineno;
output_current_line = isp->u.u_f.out_lineno; output_current_line = isp->u.u_f.out_lineno;
start_of_input_line = isp->u.u_f.advance_line; start_of_input_line = isp->u.u_f.advance_line;
if (isp->prev != NULL) if (isp->prev != NULL)
output_current_line = -1; output_current_line = -1;
} }
static struct input_funcs file_funcs = { static struct input_funcs file_funcs = {
file_peek, file_read, file_unget, file_clean file_peek, file_read, file_unget, file_clean
}; };
skipping to change at line 878 skipping to change at line 878
| Deallocate obstacks. | | Deallocate obstacks. |
| This function is not necessary, but freeing memory when | | This function is not necessary, but freeing memory when |
| program stops helps finding memory leaks. | | program stops helps finding memory leaks. |
`---------------------------------------------------------*/ `---------------------------------------------------------*/
void void
input_deallocate (void) input_deallocate (void)
{ {
int i; int i;
xfree ((voidstar) array_current_line); free ((voidstar) array_current_line);
for (i = 0; i < nesting_limit; i++) for (i = 0; i < nesting_limit; i++)
xfree(array_current_file[i]); free(array_current_file[i]);
xfree ((voidstar) array_current_file); free ((voidstar) array_current_file);
xfree ((voidstar) eolcomm.string); free ((voidstar) eolcomm.string);
xfree ((voidstar) lquote.string); free ((voidstar) lquote.string);
xfree ((voidstar) rquote.string); free ((voidstar) rquote.string);
obstack_free (&token_stack, 0); obstack_free (&token_stack, 0);
obstack_free (&input_stack, 0); obstack_free (&input_stack, 0);
obstack_free (&wrapup_stack, 0); obstack_free (&wrapup_stack, 0);
} }
/*-------------------------------------------. /*-------------------------------------------.
| Functions to manipulate the syntax table. | | Functions to manipulate the syntax table. |
`-------------------------------------------*/ `-------------------------------------------*/
skipping to change at line 967 skipping to change at line 967
{ {
int ch; int ch;
token_type type = TOKEN_NONE; token_type type = TOKEN_NONE;
int quote_level; int quote_level;
if (TOKEN_DATA_TYPE (&token_read) != TOKEN_VOID) if (TOKEN_DATA_TYPE (&token_read) != TOKEN_VOID)
{ {
type = TOKEN_STRING; type = TOKEN_STRING;
obstack_grow (&token_stack, TOKEN_DATA_TEXT (&token_read), obstack_grow (&token_stack, TOKEN_DATA_TEXT (&token_read),
strlen (TOKEN_DATA_TEXT (&token_read))); strlen (TOKEN_DATA_TEXT (&token_read)));
xfree ((voidstar) TOKEN_DATA_TEXT (&token_read)); free ((voidstar) TOKEN_DATA_TEXT (&token_read));
TOKEN_DATA_TYPE (&token_read) = TOKEN_VOID; TOKEN_DATA_TYPE (&token_read) = TOKEN_VOID;
} }
while (type == TOKEN_NONE) while (type == TOKEN_NONE)
{ {
obstack_free (&token_stack, token_bottom); obstack_free (&token_stack, token_bottom);
obstack_1grow (&token_stack, '\0'); obstack_1grow (&token_stack, '\0');
token_bottom = obstack_finish (&token_stack); token_bottom = obstack_finish (&token_stack);
ch = peek_input (); ch = peek_input ();
 End of changes. 5 change blocks. 
9 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)