1
0
mirror of https://github.com/postgres/postgres.git synced 2025-12-15 02:22:24 +03:00

pgindent run before 6.3 release, with Thomas' requested changes.

This commit is contained in:
Bruce Momjian
1998-02-26 04:46:47 +00:00
parent 757bf69a2e
commit a32450a585
430 changed files with 12390 additions and 10292 deletions

View File

@@ -72,10 +72,10 @@ static int readExports(ModulePtr);
static void terminate(void);
static void *findMain(void);
void *
void *
dlopen(const char *path, int mode)
{
ModulePtr mp;
ModulePtr mp;
static void *mainModule;
/*
@@ -168,7 +168,7 @@ dlopen(const char *path, int mode)
*/
if (mode & RTLD_GLOBAL)
{
ModulePtr mp1;
ModulePtr mp1;
for (mp1 = mp->next; mp1; mp1 = mp1->next)
if (loadbind(0, mp1->entry, mp->entry) == -1)
@@ -221,7 +221,7 @@ dlopen(const char *path, int mode)
static void
caterr(char *s)
{
char *p = s;
char *p = s;
while (*p >= '0' && *p <= '9')
p++;
@@ -255,12 +255,12 @@ caterr(char *s)
}
}
void *
void *
dlsym(void *handle, const char *symbol)
{
ModulePtr mp = (ModulePtr) handle;
ExportPtr ep;
int i;
ModulePtr mp = (ModulePtr) handle;
ExportPtr ep;
int i;
/*
* Could speed up the search, but I assume that one assigns the result
@@ -275,7 +275,7 @@ dlsym(void *handle, const char *symbol)
return NULL;
}
char *
char *
dlerror(void)
{
if (errvalid)
@@ -289,9 +289,9 @@ dlerror(void)
int
dlclose(void *handle)
{
ModulePtr mp = (ModulePtr) handle;
ModulePtr mp = (ModulePtr) handle;
int result;
ModulePtr mp1;
ModulePtr mp1;
if (--mp->refCnt > 0)
return 0;
@@ -311,8 +311,8 @@ dlclose(void *handle)
}
if (mp->exports)
{
ExportPtr ep;
int i;
ExportPtr ep;
int i;
for (ep = mp->exports, i = mp->nExports; i; i--, ep++)
if (ep->name)
@@ -537,7 +537,7 @@ readExports(ModulePtr mp)
* first SYMNMLEN chars and make sure we have a zero byte at
* the end.
*/
StrNCpy(tmpsym, ls->l_name, SYMNMLEN+1);
StrNCpy(tmpsym, ls->l_name, SYMNMLEN + 1);
symname = tmpsym;
}
ep->name = strdup(symname);