makepsres.c revision 824
561N/A#ifdef XENVIRONMENT
810N/Achar **directories;
837N/Aint *directoryLen;
810N/Aint directoryCount;
493N/Achar *outputFilename;
967N/Achar **inputFiles;
380N/Aint inputCount;
493N/Aint makeExclusive;
493N/Aint interactive;
int issueWarnings;
int noBackup;
int noSuffix;
typedef struct _t_Resource {
char *name;
char *file;
int noPrefix;
} Resource;
typedef struct _t_Duplicate {
char *name;
char *file1;
char *file2;
} Duplicate;
typedef struct _t_Category {
char *name;
} Category;
char *program;
extern char *sys_errlist[];
extern int errno;
char *result;
return result;
char *result;
return result;
char *result;
return result;
char *name;
*previous;
return (newCategory);
char *name;
return (category);
char *string;
int hash = 0;
if (comparison > 0) break;
if (comparison == 0 &&
if (!issueWarnings) return;
char *resourceName;
char *categoryName;
char *fileName;
int noPrefix;
*current,
*previous;
int comparison;
if (comparison > 0) break;
else if (comparison == 0) {
if (comparison > 0) {
char *categoryName;
char *resourceName;
for (i = 0; i < HASHSIZE; i++) {
typedef struct _t_UPRResource {
char *name;
char *file;
char *category;
int found;
int noPrefix;
} UPRResource;
#if DEBUG
int totalHashed = 0;
char *resourceName;
char *categoryName;
char *fileName;
char *prefix;
int noPrefix;
if (comparison > 0) break;
if (comparison == 0) {
if (noPrefix) break;
#if DEBUG
totalHashed++;
char *font;
char *sizes;
char *buf;
char *family;
char *faces;
char old;
ch++;
if (c == EOF) return false;
char *buf;
int size;
if (c == EOF) return false;
if (c == EOF) break;
if (c == closechar) {
if (nesting == 0) break;
else nesting--;
char *key;
result++;
return (result);
char *name;
char *pointer;
static char *bugFamilies[] = {
static char *fixedFamilies[] = {
static char *missingFoundries[] = {
static int missingFoundryLen[] = {
int digits = 0;
int i, diff;
src++;
src++;
else digits = 0;
src++;
src++;
if (diff < 0) break;
if (diff == 0) {
goto FAMILY_DONE;
src++;
src++;
missingFoundryLen[i]);
if (diff > 0) continue;
missingFoundryLen[i] != 0)) {
dst--;
src++;
dst++;
char *buf;
ch++;
ch--;
ch--;
char *line;
return line;
oldlen--;
return line;
char *filename;
int err;
if (issueWarnings) {
char *fullname;
char *category;
char *line;
int noPrefix;
char *resourceFile;
noPrefix);
resourceFile++;
char character;
if (c == character)
char *outchar;
*outchar = c;
char *fileName;
char out;
int found = 0;
#if DEBUG
#if DEBUG
char *fileName;
char *pointer;
char *fileName;
unsigned int found = 0;
char *fileName;
char *pointer;
char *extraCr;
char *fileName;
char *filename;
char *userCategories[] = {
char *filename;
static int stdinEOF = false;
if (stdinEOF) return;
numCats = i;
stdinEOF = true;
stdinEOF = true;
if (choice == 0) {
stdinEOF = true;
stdinEOF = true;
stdinEOF = true;
stdinEOF = true;
stdinEOF = true;
if (size <= 0) continue;
stdinEOF = true;
stdinEOF = true;
stdinEOF = true;
stdinEOF = true;
char *filename;
char *fileName;
register char *ch;
len1 = 0;
else len1++;
len1 = 0;
else len1++;
char *filename;
int err;
if (issueWarnings) {
char *filename;
if (issueWarnings) {
char *key;
int keyLength;
char *key2;
int key2Length;
} ResourceKey;
char *fileName;
char *filePath;
resourceType++) {
char *fileName;
char *filePath;
int len;
char *directoryName;
int top;
void (*fileFunction)();
#if DEBUG
if (issueWarnings) {
void GenerateEntriesFromUPRList()
int i, bucket;
if (!keep) {
for (i = 0; i < directoryCount; i++) {
directoryLen[i]) == 0 &&
NEXT_UPR: ;
ch++;
static char *ExtractDirectoryPrefix()
int bucket;
#if DEBUG
#if DEBUG
#if DEBUG
#if DEBUG
ch1++;
return prefix;
len++;
char *directoryName;
char *pname;
int prefixlen;
int bucket;
void Usage()
program);
int stdinDirectories = false;
void ReadStdinDirectories()
if (stdinDirectories) {
program);
Usage();
stdinDirectories = true;
directoryCount * sizeof(char *),
int argc;
char *argv[];
if (argc > 0) {
while (i < argc) {
if (directoryCount == 0) {
for (i = 0; i < directoryCount; i++) {
if (stdinDirectories) {
for (i = 0; i < directoryCount; i++) {
for (i = 0; i < inputCount; i++) {
program);
Usage();
#if DEBUG
for (i = 0; i < directoryCount; i++) {
char *filename;
char *backupname;
#ifndef __UNIXOS2__
void IssueDuplicateWarnings()
int headerIssued = false;
if (!headerIssued) {
headerIssued = true;
program);
int argc;
char *argv[];
int i, len;
char *prefix;
directoryCount = 0;
recursive = true;
discard = false;
keep = false;
inputCount = 0;
makeExclusive = false;
interactive = false;
strict = false;
noPrefix = false;
issueWarnings = true;
noBackup = false;
noSuffix = false;
for (i = 0; i < inputCount; i++) {
for (i = 0; i < directoryCount; i++) {
#if DEBUG
for (i = 0; i < HASHSIZE; i++) {
if (biggestBucket != 0) {
for (i = 0; i < HASHSIZE; i++) {
if (biggestBucket != 0) {
for (i = 0; i < directoryCount; i++) {
exit (0);