18-12-2013, 02:46 PM
Reply to question 1:
C99 Undefined 15 is closer to C90 Undefined 15 than C90 Undefined 90.
C90 Undefined 15 is already included in the list of undefined features.
There are many undefined rules that could be mapped to Dir 4.1 so we have only included the ones that we feel are the most important. C90 Undefined 90 maps better to rule 21.7.
Reply to question 2:
Appendix H lists those guidelines which are most applicable for avoiding the undefined issue. However if that guideline is deviated the undefined behaviour may then be caught by other guidelines.
For example adherence to rule 18.1 will prevent the occurrence of C99 Undefined 43. It is also listed in the main document under Dir 4.1 as Undefined 43 can produce run-time errors if rule 18.1 is not applied.
However, as stated in the response to Question 1, not all possible mappings are listed under Dir 4.1 as it was felt that it would produce too long a list to be useful.
C99 Undefined 15 is closer to C90 Undefined 15 than C90 Undefined 90.
C90 Undefined 15 is already included in the list of undefined features.
There are many undefined rules that could be mapped to Dir 4.1 so we have only included the ones that we feel are the most important. C90 Undefined 90 maps better to rule 21.7.
Reply to question 2:
Appendix H lists those guidelines which are most applicable for avoiding the undefined issue. However if that guideline is deviated the undefined behaviour may then be caught by other guidelines.
For example adherence to rule 18.1 will prevent the occurrence of C99 Undefined 43. It is also listed in the main document under Dir 4.1 as Undefined 43 can produce run-time errors if rule 18.1 is not applied.
However, as stated in the response to Question 1, not all possible mappings are listed under Dir 4.1 as it was felt that it would produce too long a list to be useful.
Posted by and on behalf of the MISRA C Working Group