I want to split the big messy file into smaller ones, each with its own responsibilities.
Right now, I see at least these modules:
Let me begin with moving the variable-things!
The variables module contains this:
The typedef variable
The array of variables
- and the counter variables_used
The functions:
variables_dump()
variable_create(char *name, char *value)
variable_write(char *name, char *newvalue)
char* variable_read(char *name)
I’ll put the typedef in the variables.h
file with all the function prototypes.
Now I need to compile with