aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.h
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-04-04 19:38:18 +0000
committerFrederic Culot <calcurse@culot.org>2007-04-04 19:38:18 +0000
commit24968886824da7d4af308a113d550f4dc97bba48 (patch)
tree7f2864a554739f7c9fdb42ccd23d163ee32cd35b /src/vars.h
parentbe46b493841cbaad45719f496445e5151b9db226 (diff)
downloadcalcurse-24968886824da7d4af308a113d550f4dc97bba48.tar.gz
calcurse-24968886824da7d4af308a113d550f4dc97bba48.zip
MAX_LENGTH replaced by stdio.h's BUFSIZ
Diffstat (limited to 'src/vars.h')
-rwxr-xr-xsrc/vars.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/vars.h b/src/vars.h
index f85526f..5a8415f 100755
--- a/src/vars.h
+++ b/src/vars.h
@@ -1,4 +1,4 @@
-/* $calcurse: vars.h,v 1.8 2007/03/24 23:22:16 culot Exp $ */
+/* $calcurse: vars.h,v 1.9 2007/04/04 19:38:18 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -30,17 +30,15 @@
#include <ncurses.h>
#include <pthread.h>
#include <stdbool.h>
+#include <stdio.h>
#define DIR_NAME ".calcurse"
#define TODO_PATH ".calcurse/todo"
#define APTS_PATH ".calcurse/apts"
#define CONF_PATH ".calcurse/conf"
-#define MAX_LENGTH 512
-
#define CTRL(x) ((x) & 0x1f)
#define ESCAPE 27
-
#define ATTR_FALSE 0
#define ATTR_TRUE 1
#define ATTR_LOWEST 2
@@ -64,9 +62,9 @@ struct nbar_s {
int show; /* display or hide the notify-bar */
int cntdwn; /* warn when time left before next app
* becomes lesser than cntdwn */
- char datefmt[MAX_LENGTH]; /* format for displaying date */
- char timefmt[MAX_LENGTH]; /* format for displaying time */
- char cmd[MAX_LENGTH]; /* notification command */
+ char datefmt[BUFSIZ]; /* format for displaying date */
+ char timefmt[BUFSIZ]; /* format for displaying time */
+ char cmd[BUFSIZ]; /* notification command */
char *shell; /* user shell to launch notif. cmd */
pthread_mutex_t mutex;
};
@@ -86,10 +84,10 @@ extern bool colorize;
extern int days[12];
extern char *monthnames[12];
extern char *daynames[8];
-extern char path_dir[MAX_LENGTH];
-extern char path_todo[MAX_LENGTH];
-extern char path_apts[MAX_LENGTH];
-extern char path_conf[MAX_LENGTH];
+extern char path_dir[BUFSIZ];
+extern char path_todo[BUFSIZ];
+extern char path_apts[BUFSIZ];
+extern char path_conf[BUFSIZ];
extern WINDOW *awin, *cwin, *twin, *swin;
extern struct pad_s *apad;
extern struct nbar_s *nbar;