From c5261a2ff6ddeac7f774e3fd3b79c5bd6e32e087 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 13 Feb 2023 12:18:47 +0100 Subject: [PATCH] formatting code --- src/editprop.c | 11 +---------- src/save.c | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/editprop.c b/src/editprop.c index 7379d9a0..688d7f46 100644 --- a/src/editprop.c +++ b/src/editprop.c @@ -503,7 +503,6 @@ size_t my_strncat(int id, char **str, size_t n, const char *append_str) } } - void *my_calloc(int id, size_t nmemb, size_t size) { void *ptr; @@ -608,16 +607,8 @@ void set_inst_prop(int i) } } - - - - - - - #define DGT(c) ((c) >= '0' && (c) <= '9') #define SPC(c) ((c) == ' ' || (c) == '\t') - /* fast convert (decimal) string to float */ float my_atof(const char *p) { @@ -733,7 +724,7 @@ double my_atod(const char *p) return sign * value; } -/* super fast count # of lines (and bytes) in a file */ +/* super fast count # of newlines (and bytes) in a file */ int count_lines_bytes(int fd, size_t *lines, size_t *bytes) { enum {BUFFER_SIZE=16384}; diff --git a/src/save.c b/src/save.c index b4fd9222..a00f4054 100644 --- a/src/save.c +++ b/src/save.c @@ -733,7 +733,6 @@ int raw_read(const char *f, const char *type) return 0; } - /* Read data organized as a table * First line is the header line containing variable names. * data is presented in column format after the header line