From 4498457aecc0fa9ffe24102788a9fcaa97cdfd19 Mon Sep 17 00:00:00 2001 From: matze Date: Sat, 28 Jul 2007 18:12:02 +0000 Subject: [PATCH] extern var git-svn-id: https://shell.noname-ev.de/svn/kasse/c128@11 af93e077-1a23-4f1e-9cbe-9382a9d578f5 --- config.c | 4 ++++ config.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config.c b/config.c index d9edd7c..259e937 100644 --- a/config.c +++ b/config.c @@ -1,5 +1,9 @@ #include "config.h" +unsigned long int money = 0; +unsigned long int num_items = 0; +unsigned long int items_sold = 0; + void load_config(); void load_items(){ diff --git a/config.h b/config.h index 6838e83..bea5c17 100644 --- a/config.h +++ b/config.h @@ -2,9 +2,9 @@ #define CONFIG_H_ /* Eingenommes Geld in Cent */ -unsigned long int money = 0; -unsigned long int num_items = 0; -unsigned long int items_sold = 0; +extern unsigned long int money; +extern unsigned long int num_items; +extern unsigned long int items_sold; /* Datenstruktur der verkauften Einträge */ -- 2.39.5