~ubuntu-branches/ubuntu/lucid/postgresql-8.4/lucid-proposed

« back to all changes in this revision

Viewing changes to src/timezone/tzfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 * 1996-06-05 by Arthur David Olson.
7
7
 *
8
8
 * IDENTIFICATION
9
 
 *        $PostgreSQL: pgsql/src/timezone/tzfile.h,v 1.7 2008/02/16 21:16:04 tgl Exp $
 
9
 *        $PostgreSQL: pgsql/src/timezone/tzfile.h,v 1.8 2009/06/11 14:49:15 momjian Exp $
10
10
 */
11
11
 
12
12
/*
133
133
 
134
134
/*
135
135
 * Since everything in isleap is modulo 400 (or a factor of 400), we know that
136
 
 *    isleap(y) == isleap(y % 400)
 
136
 *        isleap(y) == isleap(y % 400)
137
137
 * and so
138
 
 *    isleap(a + b) == isleap((a + b) % 400)
 
138
 *        isleap(a + b) == isleap((a + b) % 400)
139
139
 * or
140
 
 *    isleap(a + b) == isleap(a % 400 + b % 400)
 
140
 *        isleap(a + b) == isleap(a % 400 + b % 400)
141
141
 * This is true even if % means modulo rather than Fortran remainder
142
142
 * (which is allowed by C89 but not C99).
143
143
 * We use this to avoid addition overflow problems.
144
144
 */
145
145
 
146
 
#define isleap_sum(a, b)      isleap((a) % 400 + (b) % 400)
 
146
#define isleap_sum(a, b)          isleap((a) % 400 + (b) % 400)
147
147
 
148
148
#endif   /* !defined TZFILE_H */