From 453ac11bc3de66092df96e3203687886467011ec Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 14 Nov 2012 17:13:14 +0900 Subject: [PATCH] Correct some comments. --- tools/qfcc/include/obj_file.h | 4 ++-- tools/qfcc/source/obj_file.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/qfcc/include/obj_file.h b/tools/qfcc/include/obj_file.h index f45cd8388..ce0d63fc7 100644 --- a/tools/qfcc/include/obj_file.h +++ b/tools/qfcc/include/obj_file.h @@ -404,7 +404,7 @@ enum { */ #define QFO_FUNCTION(q, s, o) QFO_var (q, s, func, o) -/** Access a pointer variable in the object file. Can be assigned to. +/** Access a block of memory in the object file as a C struct. \par QC type: \c void [] @@ -412,7 +412,7 @@ enum { \param s space index \param t C type of the structure \param o offset into object file data space - \return pointer_t lvalue + \return C pointer to the struct at space:offset \hideinitializer */ diff --git a/tools/qfcc/source/obj_file.c b/tools/qfcc/source/obj_file.c index c0ced3b69..f475b5402 100644 --- a/tools/qfcc/source/obj_file.c +++ b/tools/qfcc/source/obj_file.c @@ -711,7 +711,7 @@ qfo_relocate_refs (qfo_t *qfo) qfo_reloc_t *reloc; for (i = 0, reloc = qfo->relocs; i < qfo->num_relocs; i++, reloc++) { - // this will be valid only for *_def relocs + // this will be valid only for *_def[_ofs] and *_field[_ofs] relocs qfo_def_t *def = qfo->defs + reloc->target; switch (reloc->type) {