aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcal.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 10:52:44 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2013-02-14 11:08:03 +0100
commit806673dd9b256e879d1483255886a8881d1d8115 (patch)
tree53dfc46a1575233ad95dfdc2767a695504d26eac /src/pcal.c
parent971df8d215a0e10c87f67f3505345e15efcffb8e (diff)
downloadcalcurse-806673dd9b256e879d1483255886a8881d1d8115.tar.gz
calcurse-806673dd9b256e879d1483255886a8881d1d8115.zip
calendar.c: Rename to "ui-calendar.c"
This unit belongs to the presentation layer -- rename the file accordingly. Also, rename calendar_*() to ui_calendar_*(). Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/pcal.c')
-rw-r--r--src/pcal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pcal.c b/src/pcal.c
index 8bcc0b5..e2721e6 100644
--- a/src/pcal.c
+++ b/src/pcal.c
@@ -101,7 +101,7 @@ static void pcal_export_header(FILE * stream)
fputs("# calcurse pcal export\n", stream);
fputs("\n# =======\n# options\n# =======\n", stream);
fprintf(stream, "opt -A -K -l -m -F %s\n",
- calendar_week_begins_on_monday()? "Monday" : "Sunday");
+ ui_calendar_week_begins_on_monday()? "Monday" : "Sunday");
fputs("# Display week number (i.e. 1-52) on every Monday\n", stream);
fprintf(stream, "all monday in all week %%w\n");
fputc('\n', stream);
@@ -172,8 +172,8 @@ static void pcal_export_recur_events(FILE * stream)
EXIT(_("incoherent repetition type"));
}
} else {
- const long YEAR_START = calendar_start_of_year();
- const long YEAR_END = calendar_end_of_year();
+ const long YEAR_START = ui_calendar_start_of_year();
+ const long YEAR_END = ui_calendar_end_of_year();
if (rev->day < YEAR_END && rev->day > YEAR_START)
foreach_date_dump(YEAR_END, rev->rpt, &rev->exc, rev->day, 0,
@@ -237,8 +237,8 @@ static void pcal_export_recur_apoints(FILE * stream)
EXIT(_("incoherent repetition type"));
}
} else {
- const long YEAR_START = calendar_start_of_year();
- const long YEAR_END = calendar_end_of_year();
+ const long YEAR_START = ui_calendar_start_of_year();
+ const long YEAR_END = ui_calendar_end_of_year();
if (rapt->start < YEAR_END && rapt->start > YEAR_START)
foreach_date_dump(YEAR_END, rapt->rpt, &rapt->exc, rapt->start,