📄 e_shared.h
字号:
/*------------------------------------------------------------------------** Copyright 1998 by Paul Leventis, Jonathan Rose and the University of ** Toronto. Use is permitted, provided that this attribution is retained ** and no part of the code is re-distributed or included in any commercial ** product except by written agreement with the above parties. ** ** For more information, contact us directly: ** Paul Leventis (leventi@eecg.utoronto.ca) ** Jonathan Rose (jayar@eecg.toronto.edu) ** Department of Electrical and Computer Engineering ** University of Toronto, 10 King's College Rd., ** Toronto, Ontario, CANADA M5S 1A4 ** Phone: (416) 978-6992 Fax: (416) 971-2286 **------------------------------------------------------------------------*//* * e_shared.h * All functions, data, structures, etc. shared accross the entire project*/#ifndef E_SHARED_H#define E_SHARED_H#include <stdio.h>#include <stdlib.h>/* * Data structure to maintain command line options*/struct Options_type { unsigned remove:1; /* Remove "useless" nodes? */ unsigned reduce:1; /* Collapse truth-tables with const generators? */ unsigned func:1; /* Include logic functionality? */ unsigned quiet:1; /* Suppress all print statements (except errors) */ unsigned edif_warn:1; /* Print EDIF warnings? */ unsigned edif_verbose:1;/* Verbose EDIF parsing? */ unsigned edif_info:1; /* Print EDIF info? */ unsigned edif_warn_once:1; /* Print EDIF warnings once only? */ unsigned tab_warn:1; /* Print TAB warnings? */ unsigned tab_verbose:1; /* Verbose TAB parsing? */ unsigned tab_info:1; /* Print TAB info? */ unsigned blif_warn:1; /* Print BLIF warnings? */ unsigned blif_verbose:1;/* Verbose BLIF output messages? */ unsigned blif_info:1; /* Print BLIF info? */ char *edif_filename; char *tab_filename; char *blif_filename;};typedef struct Options_type Options;/* * Global Data*/extern Options opt;/* * My assertion routines **/#define mem_assert(x) { \if(!(x)) { \ fprintf(stderr, "Failed malloc around line %d of file " __FILE__ ".\n", __LINE__); \ exit(-1); \} \}#define my_assert(x) { \if(!(x)) { \ fprintf(stderr, \ "Failed assertion on line %d of file " __FILE__ ".\n" \ "Please report this bug to Paul Leventis (leventi@eecg.utoronto.ca)\n" \ , __LINE__); \ exit(-1); \} \}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -