Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
a0407f50
Commit
a0407f50
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add comment about void* use in MemSet.
parent
0e5c62d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/c.h
+2
-1
2 additions, 1 deletion
src/include/c.h
src/include/utils/timestamp.h
+7
-1
7 additions, 1 deletion
src/include/utils/timestamp.h
src/interfaces/ecpg/pgtypeslib/dt.h
+6
-0
6 additions, 0 deletions
src/interfaces/ecpg/pgtypeslib/dt.h
with
15 additions
and
2 deletions
src/include/c.h
+
2
−
1
View file @
a0407f50
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/c.h,v 1.18
8
2005/07/1
8
15:
53:28 tgl
Exp $
* $PostgreSQL: pgsql/src/include/c.h,v 1.18
9
2005/07/
2
1 15:
16:27 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -630,6 +630,7 @@ typedef NameData *Name;
...
@@ -630,6 +630,7 @@ typedef NameData *Name;
#define MemSet(start, val, len) \
#define MemSet(start, val, len) \
do \
do \
{ \
{ \
/* must be void* because we don't know if it is integer aligned yet */
\
void *_vstart = (void *) (start); \
void *_vstart = (void *) (start); \
int _val = (val); \
int _val = (val); \
Size _len = (len); \
Size _len = (len); \
...
...
This diff is collapsed.
Click to expand it.
src/include/utils/timestamp.h
+
7
−
1
View file @
a0407f50
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.
49
2005/07/21
04:48:42
momjian Exp $
* $PostgreSQL: pgsql/src/include/utils/timestamp.h,v 1.
50
2005/07/21
15:16:27
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -63,6 +63,12 @@ typedef struct
...
@@ -63,6 +63,12 @@ typedef struct
/* in both timestamp.h and ecpg/dt.h */
/* in both timestamp.h and ecpg/dt.h */
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define MONTHS_PER_YEAR 12
#define MONTHS_PER_YEAR 12
/*
* DAYS_PER_MONTH is very imprecise. The more accurate value is
* 365.25/12 = 30.4375, or '30 days 10:30:00'. Right now we only
* return an integral number of days, but someday perhaps we should
* also return a 'time' value to be used as well.
*/
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/pgtypeslib/dt.h
+
6
−
0
View file @
a0407f50
...
@@ -219,6 +219,12 @@ do { \
...
@@ -219,6 +219,12 @@ do { \
/* in both timestamp.h and ecpg/dt.h */
/* in both timestamp.h and ecpg/dt.h */
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define DAYS_PER_YEAR 365.25
/* assumes leap year every four years */
#define MONTHS_PER_YEAR 12
#define MONTHS_PER_YEAR 12
/*
* DAYS_PER_MONTH is very imprecise. The more accurate value is
* 365.25/12 = 30.4375, or '30 days 10:30:00'. Right now we only
* return an integral number of days, but someday perhaps we should
* also return a 'time' value to be used as well.
*/
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define DAYS_PER_MONTH 30
/* assumes exactly 30 days per month */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
#define HOURS_PER_DAY 24
/* assume no daylight savings time changes */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment