~case/dbns

ref: 85d3c74215baa48cb2fd97d3c85ff6060e7c42b1 dbns/src/pfiles.h -rw-r--r-- 1.7 KiB
85d3c742Zerhyn SBC oopsie 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/****************************************************************************
 * [S]imulated [M]edieval [A]dventure multi[U]ser [G]ame      |   \\._.//   *
 * -----------------------------------------------------------|   (0...0)   *
 * SMAUG 1.4 (C) 1994, 1995, 1996, 1998  by Derek Snider      |    ).:.(    *
 * -----------------------------------------------------------|    {o o}    *
 * SMAUG code team: Thoric, Altrag, Blodkai, Narn, Haus,      |   / ' ' \   *
 * Scryn, Rennard, Swordbearer, Gorog, Grishnakh, Nivek,      |~'~.VxvxV.~'~*
 * Tricops and Fireblade                                      |             *
 * ------------------------------------------------------------------------ *
 * Merc 2.1 Diku Mud improvments copyright (C) 1992, 1993 by Michael        *
 * Chastain, Michael Quan, and Mitchell Tse.                                *
 * Original Diku Mud copyright (C) 1990, 1991 by Sebastian Hammer,          *
 * Michael Seifert, Hans Henrik St{rfeldt, Tom Madsen, and Katja Nyboe.     *
 * ------------------------------------------------------------------------ *
 *			   Header info for pfile cleanup code 	                *
 ****************************************************************************/

/* Used to interact with other snippets */
#define PFILECODE 

#ifndef FCLOSE
  #define FCLOSE(fp)  fclose(fp); fp=NULL;
#endif

extern  time_t pfile_time;  
extern  HOUR_MIN_SEC * set_pfile_time; 
extern  struct  tm *new_pfile_time;
extern  time_t new_pfile_time_t;
extern  sh_int num_pfiles;

void check_pfiles	args( ( time_t reset ) );
void init_pfile_scan_time	args( ( void ) );

void save_timedata	args( ( void ) );
void fread_timedata args( ( FILE *fp ) );
bool load_timedata	args( ( void ) );

DECLARE_DO_FUN( do_pfiles );