Updated link in README file.
[Hack-Assembler.git] / asm.h
blobcb4341e08cffda5a43b52d76a2eda9c4d716509f
1 struct settings
3 int verbose;
4 int hash;
5 int code;
6 int comments;
7 int commands;
8 };
10 extern struct settings settings;
13 * Display usage info for the user.
15 void usage(void);
18 * Apply command line settings (arguments) to the settings struct.
19 * These settings are generally universally applicable to the program.
20 * Therefore, they are stored and maintained in the settings.
22 void settings_init(void);
25 * Helper function to view contents of buffer when needed.
27 void dump_buffer(void);
30 * Display Errors to user as needed.
32 * Will send text of error message as well as error number.
33 * Error number corresponds to number listed in documentation.
36 void exit_error(const int err_num, const char *err_msg);