From c96cb1f3027a3354f68c25653329a6a5d6c9aa26 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 7 Jan 2022 15:59:06 +0900 Subject: [PATCH] [qfcc] Fix some stale documentation comments It does little good for documentation to refer to fields that don't exist (because a certain someone forgot to change the docs when changing the field names, I wonder who :P). --- tools/qfcc/include/obj_file.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/tools/qfcc/include/obj_file.h b/tools/qfcc/include/obj_file.h index 630659276..7fdee6030 100644 --- a/tools/qfcc/include/obj_file.h +++ b/tools/qfcc/include/obj_file.h @@ -218,23 +218,21 @@ typedef struct qfo_func_s { referenced relocs unreferenced relocs - For \c ref_op_* relocation types, \c ofs is the code section address of the - statement that needs to be adjusted. + For \c ref_op_* relocation types, \c offset is the code section address + of the statement that needs to be adjusted. - For \c rel_def_* relocation types, - \c ofs refers to the data section address of the word that needs to be - adjusted. + For \c rel_def_* relocation types, \c offset refers to the data section + address of the word that needs to be adjusted. - For \c ref_*_def(_ofs) relocation types, \c def is the index of the + For \c ref_*_def(_ofs) relocation types, \c target is the index of the referenced def. - For \c ref_*_op relocation types, \c def is the address of - the referenced statement. + For \c ref_*_op relocation types, \c target is the address of the + referenced statement. - For \c ref_*_string relocation types, \c def is - always 0. + For \c ref_*_string relocation types, \c target is always 0. - For \c ref_*_field(_ofs) relocation types, \c def is the index of + For \c ref_*_field(_ofs) relocation types, \c target is the index of the referenced field def. */ typedef struct qfo_reloc_s {