Ristrutturato in più file
This commit is contained in:
1 parent
3607f14f86
commit
7e6ae04dc4
19 files changed
+280
-103
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#ifndef GLOBALS_H
|
||||
#define GLOBALS_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
extern char productPricesFileLocation[64]; // Dichiarazione extern
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#ifndef LOGIC_H
|
||||
#define LOGIC_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
// TODO: QUI CI VA LA STRUCT DATI
|
||||
|
||||
int getCount();
|
||||
void changeFile();
|
||||
int exists(const char *fname);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef WINDOWS_H
|
||||
#define WINDOWS_H
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
|
||||
int runMainMenu();
|
||||
void runOptionsMenu();
|
||||
void warningf(const char *fmt, ...);
|
||||
void warning(char *string);
|
||||
void statusf(const char *fmt, ...);
|
||||
void status(char *msg);
|
||||
WINDOW *create_newwin(int height, int width, int starty, int startx);
|
||||
void destroy_win(WINDOW *local_win);
|
||||
void print_menu(WINDOW *menu_win, int y, int x, int highlight);
|
||||
void word_wrap_print(WINDOW *win, int start_y, int start_x, int max_width, const char *str);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user