mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
pgindent run before 6.3 release, with Thomas' requested changes.
This commit is contained in:
@ -12,30 +12,30 @@
|
||||
|
||||
#include "set_sequence.h"
|
||||
|
||||
extern int setval(struct varlena *seqin, int4 val);
|
||||
extern int setval(struct varlena * seqin, int4 val);
|
||||
|
||||
int
|
||||
set_currval(struct varlena *sequence, int4 nextval)
|
||||
set_currval(struct varlena * sequence, int4 nextval)
|
||||
{
|
||||
return setval(sequence, nextval);
|
||||
return setval(sequence, nextval);
|
||||
}
|
||||
|
||||
int
|
||||
next_id(struct varlena *sequence)
|
||||
next_id(struct varlena * sequence)
|
||||
{
|
||||
return nextval(sequence);
|
||||
return nextval(sequence);
|
||||
}
|
||||
|
||||
int
|
||||
last_id(struct varlena *sequence)
|
||||
last_id(struct varlena * sequence)
|
||||
{
|
||||
return currval(sequence);
|
||||
return currval(sequence);
|
||||
}
|
||||
|
||||
int
|
||||
set_last_id(struct varlena *sequence, int4 nextval)
|
||||
set_last_id(struct varlena * sequence, int4 nextval)
|
||||
{
|
||||
return setval(sequence, nextval);
|
||||
return setval(sequence, nextval);
|
||||
}
|
||||
|
||||
/* end of file */
|
||||
|
@ -1,9 +1,9 @@
|
||||
#ifndef SET_SEQUENCE_H
|
||||
#define SET_SEQUENCE_H
|
||||
|
||||
int set_currval(struct varlena *sequence, int4 nextval);
|
||||
int next_id(struct varlena *sequence);
|
||||
int last_id(struct varlena *sequence);
|
||||
int set_last_id(struct varlena *sequence, int4 nextval);
|
||||
int set_currval(struct varlena * sequence, int4 nextval);
|
||||
int next_id(struct varlena * sequence);
|
||||
int last_id(struct varlena * sequence);
|
||||
int set_last_id(struct varlena * sequence, int4 nextval);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user