00001 /* 00002 00003 Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. 00004 00005 This program is free software; you can redistribute it and/or modify it 00006 under the terms of version 2 of the GNU General Public License as 00007 published by the Free Software Foundation. 00008 00009 This program is distributed in the hope that it would be useful, but 00010 WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 Further, this software is distributed without any warranty that it is 00014 free of the rightful claim of any third person regarding infringement 00015 or the like. Any license provided herein, whether implied or 00016 otherwise, applies only to this software file. Patent licenses, if 00017 any, provided herein do not apply to combinations of this program with 00018 other software, or any other product whatsoever. 00019 00020 You should have received a copy of the GNU General Public License along 00021 with this program; if not, write the Free Software Foundation, Inc., 59 00022 Temple Place - Suite 330, Boston MA 02111-1307, USA. 00023 00024 Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pky, 00025 Mountain View, CA 94043, or: 00026 00027 http://www.sgi.com 00028 00029 For further information regarding this notice, see: 00030 00031 http://oss.sgi.com/projects/GenInfo/NoticeExplan 00032 00033 */ 00034 00035 00036 /* ==================================================================== 00037 * ==================================================================== 00038 * 00039 * Module: cwh_mkdepend.h 00040 * $Revision$ 00041 * $Date$ 00042 * $Author$ 00043 * $Source$ 00044 * 00045 * Revision history: 00046 * 09-26-95 - Original Version 00047 * 00048 * Description: 00049 * 00050 * ==================================================================== 00051 * ==================================================================== 00052 */ 00053 00054 #ifndef CWH_MKDEPEND_INCLUDED 00055 #define CWH_MKDEPEND_INCLUDED 00056 00057 00058 00059 extern char * mdupdate_file; 00060 extern char * mdtarget_file; 00061 00062 00063 /* Generic routines for manipulating tables */ 00064 typedef struct { 00065 INT32 current_idx; /* Last used index in table */ 00066 INT32 current_size; /* How big is the current table */ 00067 void **ptr; /* pointer to the data */ 00068 } table_s, *table_p; 00069 00070 extern INT32 cwh_next_table_entry( table_p t); 00071 extern void cwh_add_to_module_files_table(char *name); 00072 extern void cwh_mkdepend_add_name(INT32 idx, char * name) ; 00073 extern void cwh_write_makedepend(void) ; 00074 00075 #ifdef __cplusplus 00076 extern "C" { 00077 #endif /* __cplusplus */ 00078 00079 extern void cwh_add_to_used_files_table(char * name, INT duplicate) ; 00080 00081 #ifdef __cplusplus 00082 } 00083 #endif /* __cplusplus */ 00084 00085 00086 00087 00088 #define TABLE_SIZE(x) (x.current_size) 00089 #define TABLE_CURRENT_IDX(x) (x.current_idx) 00090 #define TABLE_PTR(x) (x.ptr) 00091 #define TABLE_IDX(x,i) ((x).ptr[i]) 00092 #define SET_TABLE_IDX(x,i,val) (x).ptr[(i)] = (void *) (val) 00093 #define TABLE_TOP(x,ty) ((ty *) ((x).ptr[(x).current_idx])) 00094 #define TABLE_INCREMENT 16 00095 #define INIT_TABLE {-1,0,NULL} 00096 00097 #endif /* CWH_MKDEPEND_INCLUDED */ 00098
1.5.6