Macros for time magic values

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Macros for time magic values
Date: 2011-03-11 17:50:42
Message-ID: 201103111750.p2BHogu27472@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

It has bothered me that many of our time routines use special magic
constants for time values, e.g. 24, 12, 60, etc.

The attached patch changes these magic constants to macros to clarify
the code. I would like to apply this for 9.1 as a cleanup.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/rtmp/macros.diff text/x-diff 9.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Browne 2011-03-11 17:58:01 Re: Macros for time magic values
Previous Message Heikki Linnakangas 2011-03-11 17:49:19 Re: B-tree parent pointer and checkpoints