QP/C
mc2_1903.c
00001 /*
00002  * Release Date: 17 JULY 2007
00003  *
00004  * MISRA-C:2004 Exemplar Suite
00005  *
00006  * Published by
00007  * MIRA Limited, Watling Street, Nuneaton, Warwickshire CV10 0TU UK
00008  * www.misra-c.com
00009  *
00010  * Copyright MIRA Limited, 2006, 2007.
00011  *
00012  * See file READ_ME.txt for full copyright, license and release information.
00013  */
00014 
00015 /*
00016  * 19.3 The #include directive shall be followed by either a <filename> or
00017  *      "filename" sequence.
00018  */
00019 
00020 #include "mc2_types.h"
00021 
00022 /* Following two statements are compliant */
00023 
00024 #define MY_HEADER "mc2_header.h"
00025 #include MY_HEADER
00026 
00027 
00028 /* Following statement is not compliant and may not compile */
00029 
00030 /*???
00031 #include mc2_1903_h.h
00032 */
00033 
00034 void mc2_1903 ( void )
00035 {
00036    int8_t mc2_1903_a = 0;
00037    use_int8 ( mc2_1903_a );
00038 }
00039 
00040 /* end of mc2_1903.c */