From c0142a10a26916f5c6365e421ce90a3cc7afa585 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 1 Dec 2007 17:20:09 +0000 Subject: Make pbm_allocrow a function instead of a macro for pm_allocrow git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@474 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pbm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/pbm.h') diff --git a/lib/pbm.h b/lib/pbm.h index 43c9c062..1c3fedc5 100644 --- a/lib/pbm.h +++ b/lib/pbm.h @@ -40,9 +40,11 @@ pbm_init(int * const argcP, void pbm_nextimage(FILE *file, int * const eofP); +bit * +pbm_allocrow(unsigned int const cols); + #define pbm_allocarray(cols, rows) \ ((bit**) pm_allocarray(cols, rows, sizeof(bit))) -#define pbm_allocrow(cols) ((bit*) pm_allocrow(cols, sizeof(bit))) #define pbm_freearray(bits, rows) pm_freearray((char**) bits, rows) #define pbm_freerow(bitrow) pm_freerow((char*) bitrow) #define pbm_packed_bytes(cols) (((cols)+7)/8) -- cgit 1.4.1