Mercurial > hg > xemacs-beta
comparison src/database.c @ 335:54f7aa390f4f r21-0-65
Import from CVS: tag r21-0-65
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:50:39 +0200 |
parents | c5d627a313b1 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
334:58353925ad93 | 335:54f7aa390f4f |
---|---|
500 DBC *dbcp; | 500 DBC *dbcp; |
501 /* Initialize the key/data pair so the flags aren't set. */ | 501 /* Initialize the key/data pair so the flags aren't set. */ |
502 xzero (keydatum); | 502 xzero (keydatum); |
503 xzero (valdatum); | 503 xzero (valdatum); |
504 | 504 |
505 #if DB_VERSION_MAJOR > 2 || DB_VERSION_MINOR >=6 | |
506 status = dbp->cursor (dbp, NULL, &dbcp, 0); | |
507 #else | |
505 status = dbp->cursor (dbp, NULL, &dbcp); | 508 status = dbp->cursor (dbp, NULL, &dbcp); |
509 #endif | |
506 for (status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_FIRST); | 510 for (status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_FIRST); |
507 status == 0; | 511 status == 0; |
508 status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_NEXT)) | 512 status = dbcp->c_get (dbcp, &keydatum, &valdatum, DB_NEXT)) |
509 { | 513 { |
510 /* ### Needs mule-izing */ | 514 /* ### Needs mule-izing */ |