X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=main.c;h=cbcadf10260a317ceaf96d693f9c254740069e2f;hb=52d39b726055fe269463ad47375a8fb68822efa6;hp=840a6a730fe83065b663ef92875cdb1948ba8fc9;hpb=1dce501b7058000e19421af246ec14fd98aceab9;p=xonotic%2Fgmqcc.git diff --git a/main.c b/main.c index 840a6a7..cbcadf1 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 */ @@ -173,6 +179,7 @@ static bool options_parse(int argc, char **argv) { OPTS_OPTION_U32(OPTION_STANDARD) = COMPILER_GMQCC; + OPTS_OPTION_BOOL(OPTION_STATISTICS) = true; } else if (!strcmp(argarg, "qcc")) { @@ -795,6 +802,7 @@ cleanup: mem_d((void*)operators); lex_cleanup(); - util_meminfo(); + stat_info(); + return retval; }