From 806673dd9b256e879d1483255886a8881d1d8115 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 14 Feb 2013 10:52:44 +0100 Subject: 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 --- src/pcal.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pcal.c') 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, -- cgit v1.2.3-54-g00ecf