postgresql/c.h typedefs Size as 'unsigned int' (fwd)
postgresql/c.h typedefs Size as 'unsigned int' (fwd)
От:
"Oliver Elphick" <olly@lfix.co.uk>
Дата:
This is a Debian Linux bug report. 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 To: submit@bugs.debian.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.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 ======================================== "Let us therefore come boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need." Hebrews 4:16
Re: [HACKERS] postgresql/c.h typedefs Size as 'unsigned int' (fwd)
От:
Bruce Momjian <maillist@candle.pha.pa.us>
Дата:
> This is a Debian Linux bug report. > > 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? I am going to change Size to size_t only in the CURRENT tree, but leave 6.4.1/RELEASE tree alone, OK? -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Re: [HACKERS] postgresql/c.h typedefs Size as 'unsigned int' (fwd)
От:
"Oliver Elphick" <olly@lfix.co.uk>
Дата:
Bruce Momjian wrote: >> This is a Debian Linux bug report. >> >> Size is still defined as unsigned int in 6.4. Paul is suggesting that thi >s >> be changed to size_t for compatibility with alpha. >> >> Is that correct? > >I am going to change Size to size_t only in the CURRENT tree, but leave >6.4.1/RELEASE tree alone, OK? OK, I will change it in the Debian release of 6.4.1 and let you know if it causes any problems (not that I expect any). -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP key from public servers; key ID 32B8FAA1 ======================================== "For thou art my hope, O Lord GOD; thou art my trust from my youth." Psalms 71:5