source: trunk/dll/makelist.h@ 1844

Last change on this file since 1844 was 1403, checked in by Gregg Young, 16 years ago

Remove all IBMC specific code (ifdefs) including the removal of fsopen.c (obj reference removed from makefile).

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1
2/***********************************************************************
3
4 $Id: makelist.h 1403 2009-03-14 17:43:33Z gyoung $
5
6 makelist common definitions
7
8 Copyright (c) 1993-98 M. Kimes
9 Copyright (c) 2001, 2008 Steven H. Levine
10
11 05 Jan 08 SHL Move makelist.c definitions here
12 22 Jun 08 GKY Change variable type to fix compiler warning
13 17 Jul 08 SHL Add SetListOwner for Fortify support
14
15***********************************************************************/
16
17#if !defined(MAKELIST_H)
18#define MAKELIST_H
19
20#if !defined(OS2_INCLUDED)
21#define INCL_WINSTDCNR // avl.h
22#define INCL_LONGLONG
23#include <os2.h>
24#else
25#if !defined(INCL_WINSTDCNR)
26#error INCL_WINSTDCNR required
27#endif
28#if !defined(INCL_LONGLONG)
29#error INCL_LONGLONG required by makelist.h
30#endif
31#endif
32
33#include "avl.h" // typedef ARC_TYPE
34#include "arccnrs.h" // typedef ARCITEM, PARCITEM
35
36typedef struct
37{
38 ULONG attrFile;
39 ULONGLONG cbFile;
40 ULONGLONG easize;
41 FDATE date;
42 FTIME time;
43 FDATE ladate;
44 FTIME latime;
45 FDATE crdate;
46 FTIME crtime;
47 CHAR fname[1];
48}
49FILELIST;
50
51typedef struct
52{
53 HWND hwnd;
54 HWND hwndS;
55 ULONG type;
56 USHORT id;
57 INT flags;
58 struct __arc_type__ *info;
59 CHAR **list;
60 ULONG *ulitemID;
61 ULONGLONG *cbFile;
62 CHAR targetpath[CCHMAXPATH + 6];
63 CHAR arcname[CCHMAXPATH];
64 CHAR runfile[CCHMAXPATH];
65}
66LISTINFO;
67
68INT AddToList(CHAR *string, CHAR ***list, UINT *pnumfiles, UINT *pnumalloced);
69INT AddToFileList(CHAR *string, FILEFINDBUF4L *ffb4, FILELIST ***list,
70 UINT *pnumfiles, UINT *numalloced);
71CHAR **BuildList(HWND hwndCnr);
72VOID FreeListInfo(LISTINFO *li);
73VOID FreeList(CHAR **list);
74VOID SortList(LISTINFO *li);
75CHAR **BuildArcList(HWND hwndCnr);
76CHAR **RemoveFromList(CHAR **list, CHAR *item);
77CHAR **CombineLists(CHAR **prime, CHAR **add);
78
79#ifdef FORTIFY
80VOID SetListOwner(LISTINFO *li);
81#endif // FORTIFY
82
83#endif // MAKELIST_H
Note: See TracBrowser for help on using the repository browser.