3
1

MISRA C 2012のTechnical Corrigendum 1の21.X訂正意見のかなりの部分が日本からだった件

Last updated at Posted at 2019-01-30

MISRA C:2012
Technical Corrigendum 1
Technical clarification of MISRA C:2012
June 2017

担当した21章の正誤表は、ほとんど日本からの意見に基づいたものでした。
他の部分でも、日本からの意見に基づいた訂正があります。

英語だからとか、欧米が決めたからとか、いうことはなく、日本が世界の技術展開に貢献しているかの記録です。

Rule 21.1

##Issue
There is a missing cross-reference to rule 20.5.
##Correction
Add a cross-reference to 20.5 to the “See Also” section

Rule 21.2

##Issue
The headline of this rule is inconsistent with that of rule 21.1.
##Correction
Change:
A reserved identifier or macro name shall not be declared
to:
A reserved identifier or reserved macro name shall not be declared

Rule 21.2

#Issue
The example _BUILTIN_sqrt is marked as non-compliant with this rule, but is actually non-compliant with rule 21.1.
#Correction
Change:

#define _BUILTIN_sqrt( x ) ( x )   /* Non-compliant  */

to:

static double _BUILTIN_sqrt ( double x )
{
  return x * x; } /* Non-compliant */
}

Rule 21.7

Issue

The wording of the headline is inconsistent with other rules.
##Correction
Change headline:
The atof, atoi, atol and atoll functions of shall not be used
to:
The Standard Library functions atof, atoi, atol and atoll of shall not be used

Rule 21.8

Issue

The wording of the headline is inconsistent with other rules.

Correction

Change headline:
The library functions abort, exit, getenv and system of shall not be used
to:
The Standard Library functions abort, exit, getenv and system of shall not be used

Rule 21.9

Issue

The wording of the headline is inconsistent with other rules.

Correction

Change headline:
The library functions bsearch and qsort of shall not be used
to:
The Standard Library functions bsearch and qsort of shall not be used

参考資料(reference)

MISRA C まとめ #include
https://qiita.com/kaizen_nagoya/items/f1a79a7cbd281607c7c9

どうやって MISRA Example Suiteをコンパイルするか
https://qiita.com/kaizen_nagoya/items/fbdbff5ff696e2ca7f00

MISRA C++ 5-0-16
https://qiita.com/kaizen_nagoya/items/7df2d4e05db724752a74

プログラマが英語で報告・質問する時のいくつかの事例・方法
https://qiita.com/kaizen_nagoya/items/9cf2ba858e52e9795b67

文書履歴(document history)

ver. 0.01 初稿 20190130 午後
ver. 0.02 参考資料等追記 20190130 夕方
ver. 0.03 プログラマが英語で報告・質問する時のいくつかの事例・方法 20190212
ver. 0.04 補正 20220905

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.
<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>

このエントリーをはてなブックマークに追加

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1