/* * aegis - project change supervisor * Copyright (C) 1999, 2000 Peter Miller; * All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA. * * MANIFEST: functions to manipulate allocs */ #include #include /* for assert */ #include #include #include change_ty * change_alloc(pp, number) project_ty *pp; long number; { change_ty *cp; trace(("change_alloc(pp = %8.8lX, number = %ld)\n{\n"/*}*/, pp, number)); assert(number >= 1 || number == MAGIC_ZERO); cp = (change_ty *)mem_alloc(sizeof(change_ty)); cp->reference_count = 1; cp->pp = project_copy(pp); cp->number = number; cp->cstate_data = 0; cp->cstate_filename = 0; cp->cstate_is_a_new_file = 0; cp->fstate_data = 0; cp->fstate_stp = 0; cp->fstate_filename = 0; cp->fstate_is_a_new_file = 0; cp->architecture_name = 0; cp->bogus = 0; cp->top_path_unresolved = 0; cp->top_path_resolved = 0; cp->development_directory_unresolved = 0; cp->development_directory_resolved = 0; cp->integration_directory_unresolved = 0; cp->integration_directory_resolved = 0; cp->lock_magic = 0; cp->logfile = 0; cp->pconf_data = 0; cp->pconf_path = 0; trace(("return %8.8lX;\n", cp)); trace((/*{*/"}\n")); return cp; }