better error handling which always reports the right file name

This commit is contained in:
krangelov
2021-09-07 15:54:27 +02:00
parent 8936e6211e
commit a843ddba55
11 changed files with 95 additions and 49 deletions

View File

@@ -57,6 +57,7 @@ public:
class PgfDB {
private:
int fd;
const char *filepath;
malloc_state* ms;
pthread_rwlock_t rwlock;
@@ -64,7 +65,7 @@ private:
friend class PgfReader;
public:
PGF_INTERNAL_DECL PgfDB(const char* pathname, int flags, int mode);
PGF_INTERNAL_DECL PgfDB(const char* filepath, int flags, int mode);
PGF_INTERNAL_DECL ~PgfDB();
template<class A>