From 0c61a6f12a3fcc2cc152cf789a95b5191816fd23 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Fri, 2 Aug 2024 18:01:08 +0200 Subject: Replace main with properties_load --- properties.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/properties.y b/properties.y index 192c31e..9785e1c 100644 --- a/properties.y +++ b/properties.y @@ -43,14 +43,14 @@ value: VALUE { extern FILE *yyin; -int -main(void) +void +properties_load(FILE *file) { + yyin = file; + do { yyparse(); } while(!feof(yyin)); - - return EXIT_SUCCESS; } void -- cgit v1.2.3