diff options
author | Christian C <cc@localhost> | 2025-03-04 19:14:05 -0800 |
---|---|---|
committer | Christian C <cc@localhost> | 2025-03-04 19:14:05 -0800 |
commit | d288c2cc1720d274debc04c2d9419a7edabcc6ec (patch) | |
tree | db43918e6690e90dcd40f9144f7eb08288c48a9e | |
parent | c61bb864c026d26a393f2a09c82de9bbc5043c6f (diff) |
Remove line comments
-rw-r--r-- | include/lib/algo/flood_fill.h | 1 | ||||
-rw-r--r-- | include/lib/color.h | 3 | ||||
-rw-r--r-- | include/lib/dir.h | 2 | ||||
-rw-r--r-- | include/lib/time.h | 2 | ||||
-rw-r--r-- | src/lib/algo/flood_fill.c | 1 | ||||
-rw-r--r-- | src/lib/color.c | 3 | ||||
-rw-r--r-- | src/lib/dir.c | 2 | ||||
-rw-r--r-- | src/lib/time.c | 2 |
8 files changed, 1 insertions, 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 <stddef.h> #include <stdint.h> -//----------------------------------------------- // 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 <stddef.h> #include <lib/bool.h> -//----------------------------------------------- // 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 <lib/lib.h> #include <lib/bool.h> -//----------------------------------------------- // 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 <time.h> -//----------------------------------------------- // 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 <lib/algo/flood_fill.h> -//----------------------------------------------- // 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 <lib/color.h> #include <lib/bool.h> -//----------------------------------------------- // 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 <string.h> #include <stdlib.h> -//----------------------------------------------- // 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 <lib/time.h> -//----------------------------------------------- // 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); } |