X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=vdf.h;fp=vdf.h;h=cacf694557fdc5ad61544c194db74e347a1f15d1;hp=892b65d5f304386a0efa532888e14c79398c20ca;hb=d7339f0f28ca5b35ad60a393ca270cbae1a154c6;hpb=3e1642e28847218d89d1bec2f8b035c10359ac91 diff --git a/vdf.h b/vdf.h index 892b65d..cacf694 100644 --- a/vdf.h +++ b/vdf.h @@ -420,7 +420,7 @@ void vdf_parse_string( vdf_ctx *ctx ) 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; } @@ -434,7 +434,7 @@ int vdf_parse_structure( vdf_ctx *ctx ) { 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 ++; } @@ -450,7 +450,7 @@ int vdf_parse_structure( vdf_ctx *ctx ) { 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 @@ -471,7 +471,7 @@ void vdf_parse_begin_token( vdf_ctx *ctx, char *ptr ) 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 ++; } } @@ -543,7 +543,6 @@ int vdf_load_into( const char *fn, vdf_node *node ) if( !text_src ) { - fprintf( stderr, "vdf open failed\n" ); return 0; }