if( vdf_line_control( ctx ) )
{
- fprintf( stderr, "Unexpected end of line character (Line: %u)\n", ctx->lines );
+ log_error( "Unexpected end of line character (Line: %u)\n", ctx->lines );
return;
}
{
if( ctx->st.tokens[0] || !ctx->st.expect_decl )
{
- fprintf( stderr, "Unexpected token '{' (Line: %u)\n", ctx->lines );
+ log_error( "Unexpected token '{' (Line: %u)\n", ctx->lines );
ctx->errors ++;
}
{
if( !ctx->st.pnode->parent )
{
- fprintf( stderr, "Unexpected token '}' (Line: %u)\n", ctx->lines );
+ log_error( "Unexpected token '}' (Line: %u)\n", ctx->lines );
ctx->errors ++;
}
else
if( ctx->st.expect_decl )
{
- fprintf( stderr, "Unexpected token '%s' (Line: %u)\n", ctx->name, ctx->lines );
+ log_error( "Unexpected token '%s' (Line: %u)\n", ctx->name, ctx->lines );
ctx->errors ++;
}
}
if( !text_src )
{
- fprintf( stderr, "vdf open failed\n" );
return 0;
}