-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUtils.h
47 lines (40 loc) · 984 Bytes
/
Utils.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
#define bool char
#define TRUE 1
#define FALSE 0
#define BUFFERSIZE 5000
// Package Helper (PH)
extern char *PH;
extern char *PHSI;
extern char *PHSL;
extern char *PHSLQ;
extern char *PHQEQ;
extern char *PHQQ;
extern char *PHQUQ;
extern char *PHQI;
extern char *PHQ;
extern char *PHSY;
extern char *PHS;
extern char *PHSYU;
typedef struct Package
{
char *pkg; // package name
bool isExplicit;
struct Package *next;
} Package;
extern Package *headList;
extern unsigned int explicitWordLen;
extern unsigned int dependsWordLen;
extern unsigned int explicitWordCt;
extern unsigned int dependsWordCt;
void initilizeAll();
bool isExplicit(char *pkg);
bool isOutdated(char *pkg);
bool isPackageInstalled(char *pkg);
bool isInDatabase(char *pkg);
char *trimString(char *str);
void syncDatabase();
void updateDependencyPackages(char *pkg);
bool isValidPackage(char *str);
Package *createPackage(char *pkg, bool isExplicit);
void configurationSetup();
void fullUpgrade();