pgcrypto: make const array static
От | Neil Conway |
---|---|
Тема | pgcrypto: make const array static |
Дата | |
Msg-id | 4160DE51.5070302@samurai.com обсуждение исходный текст |
Ответы |
Re: pgcrypto: make const array static
|
Список | pgsql-patches |
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 -0000 1.5 --- contrib/pgcrypto/blf.c 3 Oct 2004 16:07:31 -0000 *************** *** 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 = {{ {
В списке pgsql-patches по дате отправления: