1 /* DLIFE Copyright (C) 2000 Richard W.M. Jones <rich@annexia.org>
2 * and other authors listed in the ``AUTHORS'' file.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 * $Id: state.h,v 1.1 2002/04/05 14:40:28 rich Exp $
29 /* The number of cycles we have been running for. */
30 unsigned long long cell_cycle;
32 /* The number of cells alive (running and on the alive list). */
35 /* The number of cells allocated (alive + undivided daughters). */
36 int nr_cells_allocated;
38 /* The list of cells currently alive (running). Some cells may also
39 * exist in an undivided state.
41 dlink_list_t alive_list;
43 /* The same list of cells, kept in order of best (fewest errors) to
44 * worse (most errors). This allows the grim reaper to quickly remove
47 dlink_list_t best_list;
52 /* Number of bytes in soup, and number of bytes free in soup. */
56 /* Filename of the soup image (for this thread). */
59 /* Thread number (first thread is number 0). */
63 extern struct state *state_malloc (int _soup_size, int thread_num);
64 extern void state_free (struct state *);