Skip to content

Commit

Permalink
Merge pull request #74 from skliper/fix58-header_guard
Browse files Browse the repository at this point in the history
Fix #58, Apply header guard standard
  • Loading branch information
astrogeco committed Feb 24, 2022
2 parents 25e3c42 + f88ad77 commit 9c38912
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
10 changes: 3 additions & 7 deletions fsw/public_inc/sample_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
** Specification for the sample library functions.
**
*************************************************************************/
#ifndef _sample_lib_h_
#define _sample_lib_h_
#ifndef SAMPLE_LIB_H
#define SAMPLE_LIB_H

/************************************************************************
** Includes
Expand Down Expand Up @@ -73,8 +73,4 @@ int32 SAMPLE_LIB_Init(void);
*************************************************************************/
int32 SAMPLE_LIB_Function(void);

#endif /* _sample_lib_h_ */

/************************/
/* End of File Comment */
/************************/
#endif
10 changes: 3 additions & 7 deletions fsw/src/sample_lib_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
** Notes:
**
*************************************************************************/
#ifndef _sample_lib_internal_h_
#define _sample_lib_internal_h_
#ifndef SAMPLE_LIB_INTERNAL_H
#define SAMPLE_LIB_INTERNAL_H

/* Include all external/public definitions */
#include "sample_lib.h"
Expand All @@ -52,8 +52,4 @@ extern char SAMPLE_LIB_Buffer[SAMPLE_LIB_BUFFER_SIZE];
*/
int32 SAMPLE_LIB_Init(void);

#endif /* _sample_lib_internal_h_ */

/************************/
/* End of File Comment */
/************************/
#endif
4 changes: 2 additions & 2 deletions unit-test/coveragetest/sample_lib_coveragetest_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
** Common definitions for all sample_lib coverage tests
*/

#ifndef _SAMPLE_LIB_COVERAGETEST_COMMON_H_
#define _SAMPLE_LIB_COVERAGETEST_COMMON_H_
#ifndef SAMPLE_LIB_COVERAGETEST_COMMON_H
#define SAMPLE_LIB_COVERAGETEST_COMMON_H

/*
* Includes
Expand Down
6 changes: 3 additions & 3 deletions unit-test/inc/OCS_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
** strncpy().
*/

#ifndef _STUB_STRING_H_
#define _STUB_STRING_H_
#ifndef OSC_STRING_H
#define OSC_STRING_H

/* ----------------------------------------- */
/* prototypes normally declared in string.h */
/* ----------------------------------------- */

extern char *OCS_strncpy(char *dest, const char *src, unsigned long size);

#endif /* _STUB_STRING_H_ */
#endif
6 changes: 3 additions & 3 deletions unit-test/override_inc/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
** strncpy().
*/

#ifndef _OVERRIDE_STRING_H_
#define _OVERRIDE_STRING_H_
#ifndef OVERRIDE_STRING_H
#define OVERRIDE_STRING_H

#include "OCS_string.h"

Expand All @@ -41,4 +41,4 @@

#define strncpy OCS_strncpy

#endif /* _OVERRIDE_STRING_H_ */
#endif

0 comments on commit 9c38912

Please sign in to comment.