Minor cleanup

This commit is contained in:
John J. Camilleri
2021-10-12 23:27:49 +02:00
parent 2a5434df96
commit 3bdfe1a336
3 changed files with 5 additions and 17 deletions

View File

@@ -28,7 +28,7 @@ libpgf_la_SOURCES = \
pgf/namespace.h pgf/namespace.h
libpgf_la_LDFLAGS = -no-undefined libpgf_la_LDFLAGS = -no-undefined
libpgf_la_LIBADD = # libpgf_la_LIBADD = -lrt
libpgf_la_CXXFLAGS = -fno-rtti -std=c++11 libpgf_la_CXXFLAGS = -fno-rtti -std=c++11
bin_PROGRAMS = bin_PROGRAMS =

View File

@@ -123,13 +123,7 @@ struct PGF_INTERNAL_DECL PgfPGF {
static void release(ref<PgfPGF> pgf); static void release(ref<PgfPGF> pgf);
}; };
// extern PGF_INTERNAL_DECL extern PGF_INTERNAL_DECL size_t master_size;
// PgfText master; extern PGF_INTERNAL_DECL char master_text[];
extern PGF_INTERNAL_DECL
size_t master_size;
extern PGF_INTERNAL_DECL
char master_text[];
#endif #endif

View File

@@ -30,14 +30,8 @@ pgf_exn_clear(PgfExn* err)
err->msg = strdup(e.what()); \ err->msg = strdup(e.what()); \
} }
// PGF_INTERNAL PGF_INTERNAL size_t master_size = 6;
// PgfText master = {size: 6, text: {}}; PGF_INTERNAL char master_text[] = {'m','a','s','t','e','r',0};
PGF_INTERNAL
size_t master_size = 6;
PGF_INTERNAL
char master_text[] = {'m','a','s','t','e','r',0};
PGF_API PGF_API
PgfDB *pgf_read_pgf(const char* fpath, PgfDB *pgf_read_pgf(const char* fpath,