diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-10 00:47:32 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-06-10 16:47:14 -0600 |
commit | 6eafa9fd3a49289d34007a018b6d1fba8e4b7e24 (patch) | |
tree | 61dddfb0735fe841a0e1c56ea331a360a2d2dad0 /build-aux/lint-src | |
parent | db43b1ae4456367d9909ce3ccc00be7dede651fc (diff) |
libmisc: obj.h: Rework the LO_INTERFACE_* API to expose method funcs
Diffstat (limited to 'build-aux/lint-src')
-rwxr-xr-x | build-aux/lint-src | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build-aux/lint-src b/build-aux/lint-src index 1871d1b..69b594a 100755 --- a/build-aux/lint-src +++ b/build-aux/lint-src @@ -112,6 +112,16 @@ get-dscname() { grep -Fxq "#endif /* ${guard} */" "$filename"; }; then err "$filename" "does not have ${guard} guard" fi + if [[ $filename != libmisc/include/libmisc/obj.h ]] && + grep -Fn --color=auto -e LO_IMPLEMENTATION_C -e LO_IMPLEMENTATION_STATIC "$filename"; then + err "$filename" "contains LO_IMPLEMENTATION_C and/or LO_IMPLEMENTATION_STATIC" + fi + fi + if [[ $filename == *.c ]]; then + if [[ $filename != libmisc/tests/test_obj.c ]] && + grep -Fn --color=auto L_IMPLEMENTATION_H "$filename"; then + err "$filename" "contains LO_IMPLEMENTATION_H" + fi fi done ;; |