-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cookie.h
54 lines (45 loc) · 2.27 KB
/
Cookie.h
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/****************************************************************************
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / \ \ \ \ \ / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / PROTOTYPES / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
\ \ \ \ \ \ \ / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
****************************************************************************/
void RefreshWin( void );
void SaveScreenName( void );
void PopOldScreenToFront( void );
void FindFile( void );
void MainCookieSequence( void );
BOOL OpenNormalFont( struct Cookie_Info * );
void CloseNormalFont( struct Cookie_Info * );
BOOL OpenDataFile( struct Cookie_Info * );
void CloseDataFile( struct Cookie_Info * );
void RandomizeFilePos( struct Cookie_Info * );
BOOL FindNextCookie( struct Cookie_Info * );
void CountCookieSize( struct Cookie_Info * );
void GetWindowSizeCorrect( struct Cookie_Info * );
BOOL DoWindow( struct Cookie_Info * );
void ReReadCookieAndPrint( struct Cookie_Info * );
BOOL FindCookieDelimeter( BPTR, LONG );
BOOL CheckEOC( STRPTR, LONG );
void ExpandTABs( STRPTR );
/****************************************************************************
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / \ \ \ \ \ / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / STRUCTURES / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
\ \ \ \ \ \ \ / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
****************************************************************************/
struct Cookie_Info {
struct TextFont * Font_Handle;
BPTR data_file_handle;
struct List cookie_contents;
// VARIABLES TO KEEP TRACK OF THE SELECTED COOKIE
ULONG maxlinelen, // LENGTH IN PIXELS OF THE LONGEST LINE IN THE COOKIE
numlines; // THE NUMBER OF LINES IN THE COOKIE
};
void InitializeCookieInfo( struct Cookie_Info * info )
{
NewList( &info->cookie_contents );
info->numlines = info->maxlinelen = 0;
}