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:
@@ -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--
|
||||
|
||||
Reference in New Issue
Block a user