From 3f59db311be0bfcd1201c0411549bbd9e810ff7e Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Sun, 7 Jan 2018 20:08:46 -0600 Subject: [PATCH] Allow us to ignore some docblock errors --- src/objstore.c | 6 +++--- tools/inspect-c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/objstore.c b/src/objstore.c index 2002380..caeeb5b 100644 --- a/src/objstore.c +++ b/src/objstore.c @@ -93,6 +93,6 @@ objstore_ready() * screwing up my indent, to be honest. But C will ignore the * semicolons, so all is well. */ -OBJSTORE_DEFN(apple2_sys_rom); -OBJSTORE_DEFN(apple2_disk2_rom); -OBJSTORE_DEFN(apple2_sysfont); +OBJSTORE_DEFN(apple2_sys_rom); // ignore docblock +OBJSTORE_DEFN(apple2_disk2_rom); // ignore docblock +OBJSTORE_DEFN(apple2_sysfont); // ignore docblock diff --git a/tools/inspect-c b/tools/inspect-c index 9d373d7..1a9d7c8 100755 --- a/tools/inspect-c +++ b/tools/inspect-c @@ -74,6 +74,8 @@ def test_name_from_func(suite, func): # not. (Which we can determine because there should be a closing comment # token on the line above the type.) def has_doc_block(lines, linenum): + if lines[linenum].find('// ignore docblock'): + return True return linenum-2 >= 0 and (lines[linenum-2] == ' */' or lines[linenum-1] == ' */') # Do we have a test for this function? The fname is the test file, and