1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-19 13:42:17 +03:00

Renaming cleanup, no pgindent yet.

This commit is contained in:
Bruce Momjian
1998-09-01 03:29:17 +00:00
parent 2aa080fc93
commit af74855a60
329 changed files with 4380 additions and 4388 deletions

View File

@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: geqo_pool.c,v 1.8 1998/06/15 19:28:37 momjian Exp $
* $Id: geqo_pool.c,v 1.9 1998/09/01 03:23:13 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -68,7 +68,7 @@ alloc_pool(int pool_size, int string_length)
for (i = 0; i < pool_size; i++)
chromo[i].string = palloc((string_length + 1) * sizeof(Gene));
return (new_pool);
return new_pool;
}
/*
@@ -140,11 +140,11 @@ compare(const void *arg1, const void *arg2)
Chromosome chromo2 = *(Chromosome *) arg2;
if (chromo1.worth == chromo2.worth)
return (0);
return 0;
else if (chromo1.worth > chromo2.worth)
return (1);
return 1;
else
return (-1);
return -1;
}
/* alloc_chromo--
@@ -158,7 +158,7 @@ alloc_chromo(int string_length)
chromo = (Chromosome *) palloc(sizeof(Chromosome));
chromo->string = (Gene *) palloc((string_length + 1) * sizeof(Gene));
return (chromo);
return chromo;
}
/* free_chromo--