0ed47717b6848d30f711d5cb12bef2da43802697 kent Wed Feb 4 23:08:58 2015 -0800 Adding missing part to the 'only include me once' bracketing of this include file. diff --git src/inc/ra.h src/inc/ra.h index 83333bc..76301ae 100644 --- src/inc/ra.h +++ src/inc/ra.h @@ -1,24 +1,25 @@ /* Stuff to parse .ra files. Ra files are simple text databases. * The database is broken into records by blank lines. * Each field takes a line. The name of the field is the first * word in the line. The value of the field is the rest of the line. * * This file is copyright 2002 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #ifndef RA_H +#define RA_H struct hash *raNextStanza(struct lineFile *lf); // Return a hash containing next record. // Will ignore '#' comments and joins continued lines (ending in '\'). // Returns NULL at end of file. freeHash this when done. // Note this will free the hash keys and values as well, // so you'll have to cloneMem them if you want them for later. #define raNextRecord(lf) raNextStanza(lf) struct slPair *raNextStanzAsPairs(struct lineFile *lf); // Return ra stanza as an slPair list instead of a hash. Handy to preserve the // order. Will ignore '#' comments and joins continued lines (ending in '\'). #define raNextRecordAsSlPairList(lf) raNextStanzAsPairs(lf) struct slPair *raNextStanzaLinesAndUntouched(struct lineFile *lf);