Re: [PATCHES] pgcrypto: make const array static

2004-10-04 Thread Neil Conway
On Mon, 2004-10-04 at 15:23, Neil Conway wrote:
 This one-line patches merges a micro-opt from upstream (OpenBSD) 
 sources: we can make a read-only local array static and reduce the 
 size of the generated object file slightly.

Patch applied.

-Neil



---(end of broadcast)---
TIP 5: Have you checked our extensive FAQ?

   http://www.postgresql.org/docs/faqs/FAQ.html


[PATCHES] pgcrypto: make const array static

2004-10-03 Thread Neil Conway
This one-line patches merges a micro-opt from upstream (OpenBSD) 
sources: we can make a read-only local array static and reduce the 
size of the generated object file slightly.

Barring any objections, I intend to apply this patch today or tomorrow.
-Neil
Index: contrib/pgcrypto/blf.c
===
RCS file: /Users/neilc/local/cvs/pgsql-server/contrib/pgcrypto/blf.c,v
retrieving revision 1.5
diff -c -r1.5 blf.c
*** contrib/pgcrypto/blf.c  29 Jan 2002 15:40:45 -  1.5
--- contrib/pgcrypto/blf.c  3 Oct 2004 16:07:31 -
***
*** 126,132 
  
  /* P-box and S-box tables initialized with digits of Pi */
  
!   const blf_ctx initstate =
  
{{
{
--- 126,132 
  
  /* P-box and S-box tables initialized with digits of Pi */
  
!   static const blf_ctx initstate =
  
{{
{

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly