aboutsummaryrefslogtreecommitdiffstats
path: root/src/vars.h
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-04-09 20:38:29 +0000
committerFrederic Culot <calcurse@culot.org>2008-04-09 20:38:29 +0000
commit0c281d2c1e53248f0075f988fb4ba02f041bd170 (patch)
tree7f42987f28c6a4912c1bcbb99a1f17b1509fd52f /src/vars.h
parent0f6374d787158e50b510a8a032ff80bf7848da8a (diff)
downloadcalcurse-0c281d2c1e53248f0075f988fb4ba02f041bd170.tar.gz
calcurse-0c281d2c1e53248f0075f988fb4ba02f041bd170.zip
Tony's patch concerning date format configuration imported
Diffstat (limited to 'src/vars.h')
-rwxr-xr-xsrc/vars.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/vars.h b/src/vars.h
index 515c710..7f3db8f 100755
--- a/src/vars.h
+++ b/src/vars.h
@@ -1,8 +1,8 @@
-/* $calcurse: vars.h,v 1.20 2008/02/13 19:44:37 culot Exp $ */
+/* $calcurse: vars.h,v 1.21 2008/04/09 20:38:29 culot Exp $ */
/*
* Calcurse - text-based organizer
- * Copyright (c) 2004-2007 Frederic Culot
+ * Copyright (c) 2004-2008 Frederic Culot
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -55,6 +55,12 @@
#define STATUSHEIGHT 2
#define NOTESIZ 6
+#define DATEFMT(datefmt) (datefmt == 1 ? "%m/%d/%Y" : \
+ (datefmt == 2 ? "%d/%m/%Y" : "%Y/%m/%d"))
+
+#define DATEFMT_DESC(datefmt) (datefmt == 1 ? _("mm/dd/yyyy") : \
+ (datefmt == 2 ? _("dd/mm/yyyy") : _("yyyy/mm/dd")))
+
struct pad_s {
int width;
int length;
@@ -82,6 +88,8 @@ typedef struct {
bool skip_progress_bar;
char *editor;
char *pager;
+ char output_datefmt[BUFSIZ]; /* format for displaying date */
+ int input_datefmt; /* format for reading date */
} conf_t;
extern int col, row;