diff options
author | Frederic Culot <calcurse@culot.org> | 2008-04-09 20:38:29 +0000 |
---|---|---|
committer | Frederic Culot <calcurse@culot.org> | 2008-04-09 20:38:29 +0000 |
commit | 0c281d2c1e53248f0075f988fb4ba02f041bd170 (patch) | |
tree | 7f42987f28c6a4912c1bcbb99a1f17b1509fd52f /src/vars.h | |
parent | 0f6374d787158e50b510a8a032ff80bf7848da8a (diff) | |
download | calcurse-0c281d2c1e53248f0075f988fb4ba02f041bd170.zip |
Tony's patch concerning date format configuration imported
Diffstat (limited to 'src/vars.h')
-rwxr-xr-x | src/vars.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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; |