From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Nag: postgresql/c.h typedefs Size as 'unsigned int' on Alpha |
Date: | 1998-12-05 08:56:17 |
Message-ID: | 199812050856.IAA03942@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Can anyone give me an answer on this Debian bug report, please?:
Size is still defined as unsigned int in 6.4. Paul is suggesting that this
be changed to size_t for compatibility with alpha.
Is that correct?
------- Forwarded Message
Date: Wed, 16 Sep 1998 21:03:44 +0200
From: Paul Slootman <paul(at)wurtel(dot)demon(dot)nl>
To: submit(at)bugs(dot)debian(dot)org
Subject: Bug#26778: postgresql-dev: postgresql/c.h typedefs Size as 'unsigned i
nt', should be 'size_t'
Package: postgresql-dev
Version: 6.3.2-11
Using the above wrong type for "Size" leads to conflicts with system
prototypes, e.g. palloc() which is apparently a define for malloc().
Replacing the "typedef unsigned int Size;" with "typedef size_t Size;"
leads to a usable system again; at least, on Alpha, where "unsigned int"
is NOT the same as "unsigned long", unlike i386.
Thanks,
Paul Slootman
- -- System Information
Debian Release: 2.0
Kernel Version: Linux alf 2.0.35 #1 Tue Aug 11 11:09:24 CEST 1998 alpha unknown
------- End of Forwarded Message
--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"Go ye therefore, and teach all nations, baptizing them
in the name of the Father, and of the Son, and of the
Holy Ghost; Teaching them to observe all things
whatsoever I have commanded you; and, lo, I am with
you alway, even unto the end of the world. Amen."
Matthew 28:19,20
From | Date | Subject | |
---|---|---|---|
Next Message | Cd Chen | 1998-12-05 10:34:56 | |
Previous Message | Oliver Elphick | 1998-12-05 08:54:00 | Sorry to nag, but... [Failures with arrays] |