From 4c8e157db2150c27fad9ad175f19dac403314547 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 8 Jul 2002 03:05:44 +0000 Subject: [PATCH] nuke pr.statement_linenums as it was redundant and the info never used anyway --- tools/qfcc/include/qfcc.h | 1 - tools/qfcc/source/emit.c | 3 --- tools/qfcc/source/linker.c | 1 - tools/qfcc/source/qfcc.c | 1 - 4 files changed, 6 deletions(-) diff --git a/tools/qfcc/include/qfcc.h b/tools/qfcc/include/qfcc.h index 7e103b432..507298c99 100644 --- a/tools/qfcc/include/qfcc.h +++ b/tools/qfcc/include/qfcc.h @@ -51,7 +51,6 @@ typedef struct pr_info_s { struct strpool_s *strings; dstatement_t *statements; - int *statement_linenums; int num_statements; int statements_size; diff --git a/tools/qfcc/source/emit.c b/tools/qfcc/source/emit.c index 3c64526fc..a41f92c22 100644 --- a/tools/qfcc/source/emit.c +++ b/tools/qfcc/source/emit.c @@ -102,12 +102,9 @@ emit_statement (int sline, opcode_t *op, def_t *var_a, def_t *var_b, pr.statements_size += 16384; pr.statements = realloc (pr.statements, pr.statements_size * sizeof (dstatement_t)); - pr.statement_linenums = realloc (pr.statement_linenums, - pr.statements_size * sizeof (int)); } statement = &pr.statements[pr.num_statements]; pr.num_statements++; - pr.statement_linenums[statement - pr.statements] = pr.source_line; statement->op = op->opcode; statement->a = var_a ? var_a->ofs : 0; statement->b = var_b ? var_b->ofs : 0; diff --git a/tools/qfcc/source/linker.c b/tools/qfcc/source/linker.c index 4a81e7bcf..fa1a3789c 100644 --- a/tools/qfcc/source/linker.c +++ b/tools/qfcc/source/linker.c @@ -146,7 +146,6 @@ linker_begin (void) pr.num_statements = 1; pr.statements_size = 16384; pr.statements = calloc (pr.statements_size, sizeof (dstatement_t)); - pr.statement_linenums = calloc (pr.statements_size, sizeof (int)); pr.strings = strpool_new (); pr.num_functions = 1; pr.near_data = new_defspace (); diff --git a/tools/qfcc/source/qfcc.c b/tools/qfcc/source/qfcc.c index 5ff646bea..f01e2e5de 100644 --- a/tools/qfcc/source/qfcc.c +++ b/tools/qfcc/source/qfcc.c @@ -137,7 +137,6 @@ InitData (void) pr.num_statements = 1; pr.statements_size = 16384; pr.statements = calloc (pr.statements_size, sizeof (dstatement_t)); - pr.statement_linenums = calloc (pr.statements_size, sizeof (int)); pr.strings = strpool_new (); pr.num_functions = 1;