aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian C <cc@localhost>2025-03-04 19:14:05 -0800
committerChristian C <cc@localhost>2025-03-04 19:14:05 -0800
commitd288c2cc1720d274debc04c2d9419a7edabcc6ec (patch)
treedb43918e6690e90dcd40f9144f7eb08288c48a9e /src/lib
parentc61bb864c026d26a393f2a09c82de9bbc5043c6f (diff)
Remove line comments
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/algo/flood_fill.c1
-rw-r--r--src/lib/color.c3
-rw-r--r--src/lib/dir.c2
-rw-r--r--src/lib/time.c2
4 files changed, 1 insertions, 7 deletions
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);
}