<commit_before>/*	$calcurse: calendar.h,v 1.2 2007/03/10 15:54:59 culot Exp $	*/

/*
 * Calcurse - text-based organizer
 * Copyright (c) 2004-2007 <NAME>
 *
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Send your feedback or comments to : <EMAIL>
 * Calcurse home page : http://culot.org/calcurse
 *
 */

#ifndef CALCURSE_CALENDAR_H
#define CALCURSE_CALENDAR_H

#include <stdbool.h>

void update_cal_panel(WINDOW *cwin, int nl_cal, int nc_cal, int sel_month, 
    int sel_year, int sel_day, int day, int month, int year, bool monday_first);
int isBissextile(unsigned);
long ymd_to_scalar(unsigned, unsigned, unsigned);
void goto_day(int day, int month, int year, int *sel_day, int *sel_month, 
    int *sel_year);

#endif /* CALCURSE_CALENDAR_H */<commit_msg>functions renamed to be prefixed with 'calendar_' CALHEIGHT and CALWIDTH defined goto_day() prototype updated to take into account date_t type calendar_store_current_date() created calendar_goto_day() moved to calendar_change_day() calendar_get_slctd_day() and calendar_get_slctd_day_sec() added calendar_init_slctd_day() created calendar_move_up(), calendar_move_down(), calendar_move_left() and calendar_move_right() created wday_t and date_t type defined calendar_set_first_day_of_week(), calendar_change_first_day_of_week() and calendar_week_begins_on_monday() created<commit_after>/*	$calcurse: calendar.h,v 1.3 2007/07/01 17:46:13 culot Exp $	*/

/*
 * Calcurse - text-based organizer
 * Copyright (c) 2004-2007 <NAME>
 *
 * 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
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *
 * Send your feedback or comments to : <EMAIL>
 * Calcurse home page : http://culot.org/calcurse
 *
 */

#ifndef CALCURSE_CALENDAR_H
#define CALCURSE_CALENDAR_H

#include <stdbool.h>

#define	CALHEIGHT	12
#define	CALWIDTH	30

typedef enum { /* days of week */
	SUNDAY,
	MONDAY,
	TUESDAY,
	WEDNESDAY,
	THURSDAY,
	FRIDAY,
	SATURDAY,
	WDAYS
} wday_t;

typedef struct {
	unsigned dd; 
	unsigned mm;
       	unsigned yyyy;
} date_t;

void	calendar_start_date_thread(void);
void	calendar_stop_date_thread(void);
void	calendar_set_current_date(void);
void	calendar_set_first_day_of_week(wday_t);
void	calendar_change_first_day_of_week(void);
bool	calendar_week_begins_on_monday(void);
void	calendar_store_current_date(date_t *);
void	calendar_init_slctd_day(void);
date_t *calendar_get_slctd_day(void);
long	calendar_get_slctd_day_sec(void);
void 	calendar_update_panel(WINDOW *);
void	calendar_change_day(void);
void	calendar_move_right(void);
void	calendar_move_left(void);
void	calendar_move_up(void);
void	calendar_move_down(void);

#endif /* CALCURSE_CALENDAR_H */
{'fraction_non_alphanumeric': 0.08109477952356817, 'fraction_numerical': 0.020780537252914344, 'mean_word_length': 5.035168195718654, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3547508', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1264, 'n_words': 442}