- Add comments and test for it - Add semicolon as required end of some expressions - Add new arguments parser - Add multi-file compilation - Add colors in output
26 lines
412 B
C
26 lines
412 B
C
#ifndef FZL_OPTIONS_H
|
|
#define FZL_OPTIONS_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
// Compiler options
|
|
typedef struct
|
|
{
|
|
char **files;
|
|
size_t files_count;
|
|
|
|
char *outname;
|
|
|
|
bool should_continue;
|
|
bool verbose;
|
|
} fzl_options_t;
|
|
|
|
// Parse command line arguments
|
|
fzl_options_t *fzl_mkoptions(int argc, char **argv);
|
|
|
|
// Free options
|
|
void fzl_freeoptions(fzl_options_t *options);
|
|
|
|
#endif // FZL_OPTIONS_H
|