quakeforge/tools/Forge/Bundles/MapEdit/Dict.h
Jeff Teunissen fb785c334b tactical whitespace bomb
Add return-type information to all methods, split up lines properly where
I could find them, and ran the whole thing through uncrustify. Looks purty
now. :)
2010-09-29 16:09:11 -04:00

55 lines
1.3 KiB
Objective-C

#ifndef Dict_h
#define Dict_h
#include <AppKit/AppKit.h>
#include "Storage.h"
typedef struct {
char *key;
char *value;
} dict_t;
@interface Dict: Storage
{
}
- (id) initFromFile: (FILE *)fp;
- (id) parseMultipleFrom: (const char *)value;
- (int) getValueUnits: (const char *)key;
- (id) delString: (const char *)string fromValue: (const char *)key;
- (id) addString: (const char *)string toValue: (const char *)key;
- (char *) convertListToString: (id)list;
- (const char *) getStringFor: (const char *)name;
- (id) removeKeyword: (const char *)key;
- (unsigned int) getValueFor: (const char *)name;
- (id) changeStringFor: (const char *)key to: (const char *)value;
- (dict_t *) findKeyword: (const char *)key;
- (id) writeBlockTo: (FILE *)fp;
- (id) writeFile: (const char *)path;
// INTERNAL
- (id) init;
- (id) parseBraceBlock: (FILE *)fp;
- (id) setupMultiple: (const char *)value;
- (char *) getNextParameter;
@end
int GetNextChar (FILE * fp);
void CopyUntilWhitespc (FILE * fp, char *buffer);
void CopyUntilQuote (FILE * fp, char *buffer);
int FindBrace (FILE * fp);
int FindQuote (FILE * fp);
int FindWhitespc (FILE * fp);
int FindNonwhitespc (FILE * fp);
char *FindWhitespcInBuffer (char *buffer);
char *FindNonwhitespcInBuffer (char *buffer);
#endif // Dict_h