*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/bootstrap/bootparse.y,v 1.73 2004/08/31 17:10:36 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/bootstrap/bootparse.y,v 1.74 2004/10/10 23:37:16 neilc Exp $
*
*-------------------------------------------------------------------------
*/
static void
-do_start()
+do_start(void)
{
StartTransactionCommand();
elog(DEBUG4, "start transaction");
static void
-do_end()
+do_end(void)
{
CommitTransactionCommand();
elog(DEBUG4, "commit transaction");
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.194 2004/10/08 01:36:33 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/bootstrap/bootstrap.c,v 1.195 2004/10/10 23:37:16 neilc Exp $
*
*-------------------------------------------------------------------------
*/
len = strlen(str);
- node = FindStr(str, len, 0);
+ node = FindStr(str, len, NULL);
if (node)
return node->strnum;
else
#include "mb/pg_wchar.h"
int
-pg_wchar_strncmp(s1, s2, n)
-register const pg_wchar *s1,
- *s2;
-register size_t n;
+pg_wchar_strncmp(const pg_wchar *s1, const pg_wchar *s2, size_t n)
{
if (n == 0)
return 0;
}
int
-pg_char_and_wchar_strncmp(s1, s2, n)
-register const char *s1;
-register const pg_wchar *s2;
-register size_t n;
+pg_char_and_wchar_strncmp(const char *s1, const pg_wchar *s2, size_t n)
{
if (n == 0)
return 0;
}
size_t
-pg_wchar_strlen(str)
-const pg_wchar *str;
+pg_wchar_strlen(const pg_wchar *str)
{
- register const pg_wchar *s;
+ const pg_wchar *s;
for (s = str; *s; ++s)
;
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.241 2004/10/09 23:13:10 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.242 2004/10/10 23:37:28 neilc Exp $
*
*--------------------------------------------------------------------
*/
define_custom_variable(&var->gen);
}
-extern void
+void
EmitWarningsOnPlaceholders(const char *className)
{
struct config_generic **vars = guc_variables;
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.59 2004/10/07 18:57:26 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.60 2004/10/10 23:37:31 neilc Exp $
*
*-------------------------------------------------------------------------
*/
* call exit_nicely() if we got a signal, or else output "ok".
*/
static void
-check_ok()
+check_ok(void)
{
if (caught_signal)
{
{"debug", no_argument, NULL, 'd'},
{"show", no_argument, NULL, 's'},
{"noclean", no_argument, NULL, 'n'},
- {0, 0, 0, 0}
+ {NULL, 0, NULL, 0}
};
int c,
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.7 2004/10/06 17:21:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.8 2004/10/10 23:37:34 neilc Exp $
*
*-------------------------------------------------------------------------
*/
static char *progname;
static void
-help()
+help(void)
{
printf(_("\n%s provides information about the installed version of PostgreSQL.\n\n"), progname);
printf(_("Usage:\n"));
}
static void
-advice()
+advice(void)
{
fprintf(stderr, _("\nTry \"%s --help\" for more information\n"), progname);
}
*
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.32 2004/10/07 15:21:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_ctl/pg_ctl.c,v 1.33 2004/10/10 23:37:37 neilc Exp $
*
*-------------------------------------------------------------------------
*/
{"mode", required_argument, NULL, 'm'},
{"pgdata", required_argument, NULL, 'D'},
{"silent", no_argument, NULL, 's'},
- {0, 0, 0, 0}
+ {NULL, 0, NULL, 0}
};
int option_index;
*
* Copyright (c) 2000-2004, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.91 2004/09/20 18:51:19 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/common.c,v 1.92 2004/10/10 23:37:40 neilc Exp $
*/
#include "postgres_fe.h"
#include "common.h"
* Returns whether our backend connection is still there.
*/
static bool
-ConnectionUp()
+ConnectionUp(void)
{
return PQstatus(pset.db) != CONNECTION_BAD;
}
descriptor_variable(const char *name, int input)
{
static char descriptor_names[2][MAX_DESCRIPTOR_NAMELEN];
- static const struct ECPGtype descriptor_type = {ECPGt_descriptor, 0};
+ static const struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL};
static const struct variable varspace[2] = {
{descriptor_names[0], (struct ECPGtype *) & descriptor_type, 0, NULL},
{descriptor_names[1], (struct ECPGtype *) & descriptor_type, 0, NULL}
ne->type = type;
ne->size = size;
- ne->u.element = 0;
+ ne->u.element = NULL;
ne->struct_sizeof = NULL;
return ne;
if (indicator_set && (ind_type->type == ECPGt_struct || ind_type->type == ECPGt_array))
mmerror(INDICATOR_NOT_SIMPLE, ET_FATAL, "Indicator for simple datatype has to be simple.\n");
- ECPGdump_a_simple(o, name, type->type, 0, make_str("-1"), NULL, prefix);
+ ECPGdump_a_simple(o, name, type->type, NULL, make_str("-1"), NULL, prefix);
ECPGdump_a_simple(o, ind_name, ind_type->type, ind_type->size, make_str("-1"), NULL, ind_prefix);
break;
default:
* procedural language
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.37 2004/09/14 23:46:46 neilc Exp $
+ * $PostgreSQL: pgsql/src/pl/plpgsql/src/pl_funcs.c,v 1.38 2004/10/10 23:37:45 neilc Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
* ----------
*/
void
-plpgsql_ns_pop()
+plpgsql_ns_pop(void)
{
int i;
PLpgSQL_ns *old;
static void
-dump_ind()
+dump_ind(void)
{
int i;