Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 2nd, 2012  |  syntax: None  |  size: 2.17 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PC Lint Warning 537: Repeated include file
  2. #ifndef CHECKSUM_H
  3. #define CHECKSUM_H
  4.  
  5. #include <GenericTypeDefs.h>
  6.  
  7. BOOL isCheckSumCorrect(const UINT8 *dataPointer, UINT8 len, UINT8 checkSumByte);
  8.  
  9. #ifdef  __cplusplus
  10. extern "C" {
  11. #endif
  12.        
  13. #ifndef CRYPTOGRAPHY_H
  14. #define CRYPTOGRAPHY_H
  15.  
  16. #include <GenericTypeDefs.h>
  17.  
  18. UINT8 encrypt(UINT8 c);
  19. UINT8 decrypt(UINT8 c);
  20.  
  21. #ifdef  __cplusplus
  22. extern "C" {
  23. #endif
  24.        
  25. #ifndef CRC_H
  26. #define CRC_H
  27.  
  28. #include <GenericTypeDefs.h>
  29.  
  30. UINT8 generateCRC(const UINT8 *ptr, UINT8 Len);
  31. BOOL isCRCValid(const UINT8 *ptr, UINT8 Len, UINT8 CRCChar);
  32.  
  33. #ifdef  __cplusplus
  34. extern "C" {
  35. #endif
  36.        
  37. #include "checksum.h"
  38. #include "cryptography.h"
  39. #include "crc8.h"
  40.  
  41. main () { /* Do Stuff */ }
  42.        
  43. // CHECKSUM_H is not defined, so the preprocessor inserts:
  44. #include <GenericTypeDefs.h>
  45. BOOL isCheckSumCorrect(const UINT8 *dataPointer, UINT8 len, UINT8 checkSumByte);
  46.  
  47. // CRYPTOGRAPHY_H is not defined, so the preprocessor inserts:
  48. #include <GenericTypeDefs.h>
  49. UINT8 encrypt(UINT8 c);
  50. UINT8 decrypt(UINT8 c);
  51.  
  52. // CRC_H is not defined, so the preprocessor inserts:
  53. #include <GenericTypeDefs.h>
  54. UINT8 generateCRC(const UINT8 *ptr, UINT8 Len);
  55. BOOL isCRCValid(const UINT8 *ptr, UINT8 Len, UINT8 CRCChar);
  56.  
  57. main () { /* Do Stuff */ }
  58.        
  59. #ifndef GENERIC_TYPE_DEFS_H
  60. #define GENERIC_TYPE_DEFS_H
  61.  
  62. #define UINT8 unsigned char
  63.  
  64. #ifdef  __cplusplus
  65. extern "C" {
  66. #endif
  67.        
  68. // GENERIC_TYPE_DEFS_H is not defined, so the preprocessor inserts:
  69. #define UINT8 unsigned char
  70. BOOL isCheckSumCorrect(const UINT8 *dataPointer, UINT8 len, UINT8 checkSumByte);
  71.  
  72. // GENERIC_TYPE_DEFS_H IS defined, so the preprocessor inserts nothing.
  73. UINT8 encrypt(UINT8 c);
  74. UINT8 decrypt(UINT8 c);
  75.  
  76. // GENERIC_TYPE_DEFS_H IS defined, so the preprocessor inserts nothing.
  77. UINT8 generateCRC(const UINT8 *ptr, UINT8 Len);
  78. BOOL isCRCValid(const UINT8 *ptr, UINT8 Len, UINT8 CRCChar);
  79.  
  80. main () { /* Do Stuff */ }
  81.        
  82. #include <GenericTypeDefs.h>
  83. #include "checksum.h"
  84.        
  85. #include <GenericTypeDefs.h>
  86. #include "cryptography.h"
  87.        
  88. #include <GenericTypeDefs.h>
  89. #include "crc.h"
  90.        
  91. #include <GenericTypeDefs.h>
  92. #include "checksum.h"
  93. #include "cryptography.h"
  94. #include "crc8.h"
  95.  
  96. main () { /* Do Stuff */ }
  97.        
  98. -efile(537,GenericTypeDefs.h)