From 73956d102fd64d2012a6b25bd4158bcf95b6c9d6 Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 7 Aug 2023 18:24:27 +0200 Subject: [PATCH] . --- README.md | 14 ++++++++++++++ TODO | 12 ------------ src/basename.c | 2 +- src/library.h | 2 +- 4 files changed, 16 insertions(+), 14 deletions(-) delete mode 100644 TODO diff --git a/README.md b/README.md index 5343713..dd34ce3 100644 --- a/README.md +++ b/README.md @@ -58,5 +58,19 @@ fixing it would have been a lost cause, if not for Cscope itself. Well, Csope no | readline.c | all functions directly dealing with GNU Readline; responsible for line editing in *input mode* | | help.c | all functions dealing with help messages | +# TODO /*move soon*/ + + recursive macro function to assign KEY_\* default values; look for a new and shiny preprocessor? + + sort out constants.h + + scrollbar() uses magic int literals? + + Handle unused parameters gracefully (#define UNUSED(x) (void)(x)) + + Ordering function declarations in global.h by alpha order is not smart + + lineflagafterfile is stupid + + library.h...; "private library", in a program using 90 globals; ffs + +# BUGS + + Changing text double frees: + free(): double free detected in tcache 2 + Aborted + # Future features / contributor wishlist + providing support for other languages by integrating new lexers (e.g. ctag's) diff --git a/TODO b/TODO deleted file mode 100644 index be8dd4f..0000000 --- a/TODO +++ /dev/null @@ -1,12 +0,0 @@ -# TODO - + recursive macro function to assign KEY_* default values; look for a new and shiny preprocessor? - + sort out constants.h - + scrollbar() uses magic int literals? - + Handle unused parameters gracefully (#define UNUSED(x) (void)(x)) - + Ordering function declarations in global.h by alpha order is not smart - + lineflagafterfile is stupid - -# BUGS - + Changing text double frees: - free(): double free detected in tcache 2 - Aborted diff --git a/src/basename.c b/src/basename.c index 7f03aef..c314981 100644 --- a/src/basename.c +++ b/src/basename.c @@ -34,7 +34,7 @@ #include "global.h" -char * +const char * basename(char *path) { char *s; diff --git a/src/library.h b/src/library.h index c89bf8e..019aa94 100644 --- a/src/library.h +++ b/src/library.h @@ -39,7 +39,7 @@ char *compath(char *pathname); char *egrepinit(char *egreppat); char *logdir(char *name); -char *basename(char *path); +const char *basename(char *path); FILE *myfopen(char *path, char *mode); char *mygetenv(char *variable, char *deflt); int myopen(char *path, int flag, int mode);