X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=main.c;h=37638e92ae4fb8b0202116f596d48e3d1d27e127;hp=4eb5eb31f29a556b09c788c183141e1577707af2;hb=17fd017d6fde0af0b69a9b9d1367bb3e00f7a865;hpb=121e0806979160e9236cd6cc6173fe76db3f2349 diff --git a/main.c b/main.c index 4eb5eb3..37638e9 100644 --- a/main.c +++ b/main.c @@ -21,9 +21,15 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ +#include +#include +#include +#include +#include + + #include "gmqcc.h" #include "lexer.h" -#include /* TODO: cleanup this whole file .. it's a fuckign mess */ @@ -44,7 +50,7 @@ static ppitem *ppems = NULL; static const char *app_name; -static void version() { +static void version(void) { con_out("GMQCC %d.%d.%d Built %s %s\n" GMQCC_DEV_VERSION_STRING, GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, @@ -54,7 +60,7 @@ static void version() { ); } -static int usage() { +static int usage(void) { con_out("usage: %s [options] [files...]", app_name); con_out("options:\n" " -h, --help show this help message\n" @@ -796,6 +802,7 @@ cleanup: mem_d((void*)operators); lex_cleanup(); - util_meminfo(); + stat_info(); + return retval; }