1 /* 2 * This file is part of the Alliance CAD System 3 * Copyright (C) Laboratoire LIP6 - D�partement ASIM 4 * Universite Pierre et Marie Curie 5 * 6 * Home page : http://www-asim.lip6.fr/alliance/ 7 * E-mail : mailto:alliance-users@asim.lip6.fr 8 * 9 * This library is free software; you can redistribute it and/or modify it 10 * under the terms of the GNU Library General Public License as published 11 * by the Free Software Foundation; either version 2 of the License, or (at 12 * your option) any later version. 13 * 14 * Alliance VLSI CAD System is distributed in the hope that it will be 15 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 17 * Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with the GNU C Library; see the file COPYING. If not, write to the Free 21 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 22 */ 23 24 /* 25 * Purpose : mbk_ph.c header file for functions declarations 26 * Date : 18/12/91 27 * Author : Frederic Petrot <Frederic.Petrot@lip6.fr> 28 * Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 29 * $Id: mbk_ph.h,v 1.3 2012/05/14 14:20:23 alliance Exp $ 30 */ 31 32 #ifndef _MBK_PH_H_ 33 #define _MBK_PH_H_ 34 35 #ifndef __P 36 # if defined(__STDC__) || defined(__GNUC__) 37 # define __P(x) x 38 # else 39 # define __P(x) () 40 # endif 41 #endif 42 43 extern phcon_list * addphcon __P((phfig_list *ptfig, char orient, const char *conname, long x, long y, char layer, long width)); 44 extern phfig_list * addphfig __P((const char *figname)); 45 extern phins_list * addphins __P((phfig_list *ptfig, const char *figname, const char *insname, char sym, long x, long y)); 46 extern phref_list * addphref __P((phfig_list *ptfig, const char *type, const char *name, long x, long y)); 47 extern phseg_list * addphseg __P((phfig_list *ptfig, char layer, long width, long x1, long y1, long x2, long y2, const char *nodename)); 48 extern phvia_list * addphvia __P((phfig_list *ptfig, char viatype, long x, long y, long dx, long dy, const char *name)); 49 static chain_list *addsorted(); 50 extern void defab __P((phfig_list *ptfig, long x1, long y1, long x2, long y2)); 51 extern int delphcon __P((phfig_list *ptfig, phcon_list *ptdelcon)); 52 extern int delphfig __P((const char *name)); 53 extern int delphins __P((phfig_list *ptfig, const char *insname)); 54 extern int delphref __P((phfig_list *ptfig, phref_list *ptref)); 55 extern int delphseg __P((phfig_list *ptfig, phseg_list *ptseg)); 56 extern int delphvia __P((phfig_list *ptfig, phvia_list *ptvia)); 57 extern phcon_list * getphcon __P((phfig_list *ptfig, const char *conname, long index)); 58 extern phins_list * getphins __P((phfig_list *ptfig, const char *insname)); 59 extern phref_list * getphref __P((phfig_list *ptfig, const char *refname)); 60 extern void viewphcon __P((phcon_list *pt_con)); 61 extern void viewphins __P((phins_list *pt_ins)); 62 extern void viewphseg __P((phseg_list *pt_seg)); 63 extern void viewphvia __P((phvia_list *pt_via)); 64 extern void viewphref __P((phref_list *pt_ref)); 65 extern void viewph __P(()); 66 extern void viewphfig __P((phfig_list *pt_fig)); 67 extern void xyflat __P((long *xout, long *yout, long x, long y, long xins, long yins, long x1, long y1, long x2, long y2, char trsf)); 68 69 #endif 70 71