Skip to content

Commit

Permalink
Rework on several header files
Browse files Browse the repository at this point in the history
  • Loading branch information
QuangHaiNguyen committed Oct 24, 2024
1 parent 2e73735 commit 716754f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion easy_embedded/service/event_notifier/ez_event_notifier.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,12 @@ void ezEventNotifier_NotifyEvent(ezSubject *subject,
void* param1,
void* param2);

#endif /* (EZ_EVENT_NOTIFIER == 1U) */

#ifdef __cplusplus
}
#endif

#endif /* (EZ_EVENT_NOTIFIER == 1U) */
#endif /* _EZ_EVENT_NOTIFIER_H */

/* End of file */
3 changes: 0 additions & 3 deletions easy_embedded/utilities/linked_list/ez_linked_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
*****************************************************************************/
#include "ez_linked_list.h"

#if (EZ_LINKEDLIST == 1U)

/*****************************************************************************
* Component Preprocessor Macros
*****************************************************************************/
Expand Down Expand Up @@ -179,5 +177,4 @@ void ezmLL_ResetNode(Node * node)
}
#endif

#endif /* CONFIG_HELPER_LINKEDLIST */
/* End of file*/
7 changes: 6 additions & 1 deletion easy_embedded/utilities/linked_list/ez_linked_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ extern "C" {
/*****************************************************************************
* Includes
*****************************************************************************/
#if (EZ_BUILD_WITH_CMAKE == 0U)
#include "ez_target_config.h"
#endif

#if (EZ_LINKEDLIST == 1U)
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

#include "ez_utilities_common.h"


Expand Down Expand Up @@ -264,6 +268,7 @@ bool ezLinkedList_IsNodeInList(struct Node *head, struct Node *searched_node);
}
#endif

#endif /* CONFIG_HELPER_LINKEDLIST */
#endif /* _LINKEDLIST_H */

/* End of file*/
3 changes: 2 additions & 1 deletion easy_embedded/utilities/queue/ez_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,12 @@ uint32_t ezQueue_GetNumOfElement(ezQueue* queue);
*****************************************************************************/
uint32_t ezQueue_IsQueueReady(ezQueue *queue);

#endif /* _EZ_QUEUE */

#ifdef __cplusplus
}
#endif

#endif /* _EZ_QUEUE */
#endif /* _EZ_QUEUE_H */

/* End of file */
Expand Down

0 comments on commit 716754f

Please sign in to comment.