aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-08-02 18:01:08 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2024-08-02 18:01:08 +0200
commit0c61a6f12a3fcc2cc152cf789a95b5191816fd23 (patch)
tree1c0134c07aad29ed4d999f761468c9a1e2c79be5
parent61dbbfe932ca3cf68a20242296e21c11ac43d643 (diff)
downloadproperties-0c61a6f12a3fcc2cc152cf789a95b5191816fd23.tar.gz
properties-0c61a6f12a3fcc2cc152cf789a95b5191816fd23.zip
Replace main with properties_load
-rw-r--r--properties.y8
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