Skip to content

Commit 46cfcf2

Browse files
committed
Adding missing name of endif
1 parent 6be6b6e commit 46cfcf2

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

modules/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CFLAGS=-Wall -I. -O3 -g -Wextra -Wunused-function
77

88
ifdef USE_CPP17
99
CFLAGS+=-std=c++17
10-
endif
10+
endif # USE_CPP17
1111

1212
# Target
1313
LD=g++

modules/filter/include/ips_filter_lt_model.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#ifdef USING_TLM_TB_EN
1212
#include "ips_filter_defines.hpp"
13-
#endif
13+
#endif // USING_TLM_TB_EN
1414

1515
/**
1616
* @brief Filter module.

modules/filter/src/tb_filter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void run_one_window()
211211
SC_REPORT_INFO("TEST_MODE_ONE_WINDOW_DEFAULT", "Running test");
212212
#endif // TEST_MODE_ONE_WINDOW_RANDOM
213213
SC_REPORT_INFO("Initialize window", "Window value");
214-
#endif
214+
#endif // IPS_DEBUG_EN
215215

216216
// Variables
217217
IPS_IN_TYPE_TB* img_window;

modules/router/include/sobel_edge_detector_tlm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ struct sobel_edge_detector_tlm : public Edge_Detector, public img_target
2727
void read() override;
2828
void write() override;
2929
};
30-
#endif
30+
#endif // SOBEL_EDGE_DETECTOR_TLM_HPP

modules/router/src/sobel_edge_detector_tlm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ void sobel_edge_detector_tlm::write()
6161
wr_t.notify(0, SC_NS);
6262
}
6363

64-
#endif
64+
#endif // SOBEL_EDGE_DETECTOR_TLM_CPP

modules/router/src/tb_edge_detector_tlm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ using namespace std;
4040

4141
#if !defined(RGB2GRAY_PV_EN) || !defined(IPS_FILTER_LT_EN) || !defined(EDGE_DETECTOR_AT_EN) || !defined(IMG_UNIFICATE_PV_EN) || !defined(IPS_JPG_PV_EN)
4242
#error "Not all the required macros (RGB2GRAY_PV_EN, IPS_FILTER_LT_EN, EDGE_DETECTOR_AT_EN, IMG_UNIFICATE_PV_EN and IPS_JPG_PV_EN) are defined."
43-
#endif
43+
#endif // Models
4444

4545
SC_MODULE(Tb_top)
4646
{

modules/router/src/transaction_memory_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gp_t *mm::allocate()
77
{
88
#ifdef DEBUG
99
cout << "----------------------------- Called allocate(), #trans = " << ++count << endl;
10-
#endif
10+
#endif // DEBUG
1111
gp_t *ptr;
1212

1313
if (free_list)

modules/unification/src/unification_pv_model.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@ int img_unification_module::norm(int a, int b) {
3939
//L1 Norm
4040
#ifdef USE_L1_NORM
4141
norm_result = abs(a) + abs(b);
42-
#endif
42+
#endif // USE_L1_NORM
4343

4444
//L2 Norm
4545
#ifdef USE_L2_NORM
4646
norm_result = sqrt(pow(a, 2) + pow(b, 2));
47-
#endif
47+
#endif // USE_L2_NORM
4848

4949
//INFINITY Norm
5050
#ifdef USE_INF_NORM
5151
norm_result = (a > b ? a : b);
52-
#endif
52+
#endif // USE_INF_NORM
5353

5454
return norm_result;
5555
}

modules/unification/src/unification_tb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#ifdef IMG_UNIFICATE_PV_EN
1717
#include "unification_pv_model.hpp"
18-
#endif
18+
#endif // IMG_UNIFICATE_PV_EN
1919

2020
int sc_main(int, char*[]) {
2121
unsigned char pixel_x, pixel_y;

0 commit comments

Comments
 (0)