[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #63079] #include <assert.h> or "assert.h" ?
From: |
G. Branden Robinson |
Subject: |
[bug #63079] #include <assert.h> or "assert.h" ? |
Date: |
Sun, 25 Sep 2022 17:06:47 -0400 (EDT) |
Update of bug #63079 (project groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #2:
commit 91280c1748c5f008f72684ccf50cdaa3ee77726f
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Mon Sep 19 15:16:16 2022 -0500
[grodvi, ...]: Trivially refactor.
Tidy up #includes of the "assert.h" header, which we locally provide to
ensure a C99-conformant implementation. Drop inclusion of header from
files that don't directly need it, add it where they do, and spell the
inclusion consistently with double quotes to cue the reader of its local
status.
* src/devices/grodvi/dvi.cpp:
* src/devices/grolj4/lj4.cpp:
* src/libs/libdriver/printer.cpp:
* src/preproc/eqn/box.cpp:
* src/preproc/eqn/delim.cpp:
* src/preproc/eqn/pile.cpp:
* src/preproc/eqn/script.cpp: Add inclusion.
* src/include/driver.h:
* src/libs/libgroff/fontfile.cpp:
* src/preproc/eqn/eqn.h:
* src/preproc/html/pushback.cpp:
* src/preproc/refer/refer.h:
* src/preproc/tbl/table.h:
* src/utils/addftinfo/addftinfo.cpp: Drop inclusion.
* src/include/itable.h:
* src/include/stringclass.h:
* src/libs/libbib/linear.cpp:
* src/libs/libbib/search.cpp:
* src/libs/libgroff/color.cpp:
* src/libs/libgroff/font.cpp:
* src/libs/libgroff/nametoindex.cpp:
* src/libs/libgroff/prime.cpp:
* src/libs/libgroff/searchpath.cpp:
* src/preproc/html/pre-html.cpp:
* src/preproc/preconv/preconv.cpp:
* src/preproc/soelim/soelim.cpp:
* src/utils/indxbib/indxbib.cpp:
* src/utils/lkbib/lkbib.cpp:
* src/utils/lookbib/lookbib.cpp: Respell inclusion.
Fixes <https://savannah.gnu.org/bugs/?63079>. Thanks to Bjarni Ingi
Gislason for the report.
Also annotate our assert.h to indicate why it's there.
Also update editor aid comments and drop old style Emacs file-local
variable setting.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63079>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/