Mercurial > noffle
comparison src/database.c @ 127:3c71e28c8eef noffle
[svn] Release-1-0 mergedocs/NOTES
author | bears |
---|---|
date | Tue, 25 Jul 2000 13:14:54 +0100 |
parents | 2bedacfe1ba7 |
children | 39838e7d38be |
comparison
equal
deleted
inserted
replaced
126:7c7a7c96d35b | 127:3c71e28c8eef |
---|---|
1 /* | 1 /* |
2 database.c | 2 database.c |
3 | 3 |
4 $Id: database.c 149 2000-06-19 21:56:12Z bears $ | 4 $Id: database.c 183 2000-07-25 12:14:54Z bears $ |
5 | 5 |
6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was | 6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was |
7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs | 7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs |
8 (e.g. it is not recommended to delete or overwrite entries with | 8 (e.g. it is not recommended to delete or overwrite entries with |
9 overflow pages). | 9 overflow pages). |
513 if ( ! loadArt( msgId ) ) | 513 if ( ! loadArt( msgId ) ) |
514 return ""; | 514 return ""; |
515 return db.date; | 515 return db.date; |
516 } | 516 } |
517 | 517 |
518 Over * | |
519 Db_over( const char *msgId ) | |
520 { | |
521 if ( ! loadArt( msgId ) ) | |
522 return NULL; | |
523 return new_Over( db.subj, db.from, db.date, msgId, | |
524 db.ref, db.bytes, db.lines ); | |
525 } | |
526 | |
518 Bool | 527 Bool |
519 Db_contains( const char *msgId ) | 528 Db_contains( const char *msgId ) |
520 { | 529 { |
521 datum key; | 530 datum key; |
522 | 531 |