ruby-changes:64325
From: Nobuyoshi <ko1@a...>
Date: Sat, 19 Dec 2020 16:38:59 +0900 (JST)
Subject: [ruby-changes:64325] 042c3e91fb (master): Check macros for headers
https://git.ruby-lang.org/ruby.git/commit/?id=042c3e91fb From 042c3e91fbc621e28e5edda015c43e01341fee1c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 19 Dec 2020 16:10:57 +0900 Subject: Check macros for headers diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml index 8f32bd3..2f4bbc7 100644 --- a/.github/workflows/check_misc.yml +++ b/.github/workflows/check_misc.yml @@ -9,3 +9,9 @@ jobs: https://github.com/ruby/ruby/blob/trunk/.github/workflows/check_misc.yml#L9 - name: Check if C-sources are US-ASCII run: | ! grep -r -n '[^ -~]' *.[chy] include internal win32/*.[ch] + - name: Check for header macros + run: | + ! for header in ruby/*.h; do \ + git grep -l -F -e $header -e HAVE_`echo $header | tr a-z./ A-Z__` -- . > /dev/null || echo $header + done | grep -F . + working-directory: include -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/