From d288c2cc1720d274debc04c2d9419a7edabcc6ec Mon Sep 17 00:00:00 2001 From: Christian C Date: Tue, 4 Mar 2025 19:14:05 -0800 Subject: Remove line comments --- include/lib/algo/flood_fill.h | 1 - include/lib/color.h | 3 --- include/lib/dir.h | 2 -- include/lib/time.h | 2 -- src/lib/algo/flood_fill.c | 1 - src/lib/color.c | 3 --- src/lib/dir.c | 2 -- src/lib/time.c | 2 +- 8 files changed, 1 insertion(+), 15 deletions(-) diff --git a/include/lib/algo/flood_fill.h b/include/lib/algo/flood_fill.h index a48f4a1..81ed6fd 100644 --- a/include/lib/algo/flood_fill.h +++ b/include/lib/algo/flood_fill.h @@ -6,7 +6,6 @@ #include #include -//----------------------------------------------- // Flood // Floods a mask from a given set of image to determine the contiguous regions // 1. Check that the (x,y) is within the picture diff --git a/include/lib/color.h b/include/lib/color.h index b999510..5e7128b 100644 --- a/include/lib/color.h +++ b/include/lib/color.h @@ -5,17 +5,14 @@ #include #include -//----------------------------------------------- // Color Equal to Background // Background: zeros in RGB, alpha can be whatever bool_t color_zero(uint8_t* color1, size_t channels); -//----------------------------------------------- // Color Equality // Determine if two colors are identical bool_t color_equal(uint8_t* color1, uint8_t* color2, size_t channels); -//----------------------------------------------- // Print out the `channels` length color vector void print_color(uint8_t* color, size_t channels); diff --git a/include/lib/dir.h b/include/lib/dir.h index 6177735..1d3b75f 100644 --- a/include/lib/dir.h +++ b/include/lib/dir.h @@ -4,11 +4,9 @@ #include #include -//----------------------------------------------- // Is directory bool_t is_directory(char* dirname); -//----------------------------------------------- // List directory char** lsdir(char* dirname); diff --git a/include/lib/time.h b/include/lib/time.h index aebc6ed..fd3c6be 100644 --- a/include/lib/time.h +++ b/include/lib/time.h @@ -3,12 +3,10 @@ #include -//----------------------------------------------- // Difference in Time // Compute the difference between timespec structs double diff_time(struct timespec *time1, struct timespec *time0); -//----------------------------------------------- // Get Current Time void get_time(struct timespec *ts); diff --git a/src/lib/algo/flood_fill.c b/src/lib/algo/flood_fill.c index 91f94ad..62db658 100644 --- a/src/lib/algo/flood_fill.c +++ b/src/lib/algo/flood_fill.c @@ -1,6 +1,5 @@ #include -//----------------------------------------------- // Flood // Floods a mask from a given set of image to determine the contiguous regions // 1. Check that the (x,y) is within the picture diff --git a/src/lib/color.c b/src/lib/color.c index 035a3e9..902a93d 100644 --- a/src/lib/color.c +++ b/src/lib/color.c @@ -2,7 +2,6 @@ #include #include -//----------------------------------------------- // Color Equal to Background // Background: zeros in RGB, alpha can be whatever bool_t color_zero(uint8_t* color1, size_t channels) { @@ -17,7 +16,6 @@ bool_t color_zero(uint8_t* color1, size_t channels) { return TRUE; } -//----------------------------------------------- // Color Equality // Determine if two colors are identical bool_t color_equal(uint8_t* color1, uint8_t* color2, size_t channels) { @@ -29,7 +27,6 @@ bool_t color_equal(uint8_t* color1, uint8_t* color2, size_t channels) { return TRUE; } -//----------------------------------------------- // Print out the `channels` length color vector void print_color(uint8_t* color, size_t channels) { for (size_t index = 0; index < channels; index++) { diff --git a/src/lib/dir.c b/src/lib/dir.c index 150d5bf..338f6e4 100644 --- a/src/lib/dir.c +++ b/src/lib/dir.c @@ -4,7 +4,6 @@ #include #include -//----------------------------------------------- // Is directory bool_t is_directory(char* dirname) { struct stat st; @@ -16,7 +15,6 @@ bool_t is_directory(char* dirname) { return FALSE; } -//----------------------------------------------- // List directory char** lsdir(char* dirname) { DIR *d; diff --git a/src/lib/time.c b/src/lib/time.c index 2e5777b..085ef80 100644 --- a/src/lib/time.c +++ b/src/lib/time.c @@ -1,6 +1,5 @@ #include -//----------------------------------------------- // Difference in Time // Compute the difference between timespec structs double diff_time(struct timespec *time1, struct timespec *time0) { @@ -8,6 +7,7 @@ double diff_time(struct timespec *time1, struct timespec *time0) { + (time1->tv_nsec - time0->tv_nsec) / 1000000000.0; } +// Get Current Time void get_time(struct timespec *ts) { timespec_get(ts, TIME_UTC); } -- cgit v1.2.1