diff options
author | 2024-08-02 18:01:08 +0200 | |
---|---|---|
committer | 2024-08-02 18:01:08 +0200 | |
commit | 0c61a6f12a3fcc2cc152cf789a95b5191816fd23 (patch) | |
tree | 1c0134c07aad29ed4d999f761468c9a1e2c79be5 | |
parent | 61dbbfe932ca3cf68a20242296e21c11ac43d643 (diff) | |
download | properties-0c61a6f12a3fcc2cc152cf789a95b5191816fd23.tar.gz properties-0c61a6f12a3fcc2cc152cf789a95b5191816fd23.zip |
Replace main with properties_load
-rw-r--r-- | properties.y | 8 |
1 files 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 |