]> git.sur5r.net Git - c128-kasse/blobdiff - include/config.h
right-align price in header
[c128-kasse] / include / config.h
index 5393a56feb6678cee367356328caeae483629704..dfba87e18f61a4ae5b7ac9865d1fba46af0e1758 100644 (file)
@@ -3,8 +3,10 @@
 #ifndef CONFIG_H_
 #define CONFIG_H_
 
-#define MAX_ITEMS 16
+#define MAX_ITEMS 32
+#define MAX_ITEM_NAME_LENGTH 9
 #define MAX_CREDIT_ITEMS 75
+#define CREDITS_PER_PAGE 10
 
 /* Eingenommes Geld in Cent */
 extern unsigned long int money;
@@ -14,7 +16,7 @@ extern BYTE printer_port;
 
 /* Datenstruktur der verkauften Einträge */
 struct status_t {
-       char item_name[10];
+       char item_name[MAX_ITEM_NAME_LENGTH+1];
        /* Wieviel kostet der Eintrag (in Cent)? */
        unsigned int price;
        /* Wie oft wurde er verkauft */
@@ -23,12 +25,14 @@ struct status_t {
 
 struct status_array_t {
        BYTE num_items;
+       unsigned int transaction_id;
        struct status_t status[MAX_ITEMS];
 };
 
 /* Datenstruktur für die Guthaben */
+#define NICKNAME_MAX_LEN 10
 struct credits_t {
-       char nickname[11];
+       char nickname[NICKNAME_MAX_LEN + 1];
        /* Guthaben (in Cent) */
        unsigned int credit;
 };