lef/*.h: constify string function arguments
This commit is contained in:
parent
695692b620
commit
ad6ecb5bbb
|
|
@ -2385,7 +2385,7 @@ enum def_sections {DEF_VERSION = 0, DEF_NAMESCASESENSITIVE,
|
||||||
|
|
||||||
void
|
void
|
||||||
DefRead(
|
DefRead(
|
||||||
char *inName,
|
const char *inName,
|
||||||
bool dolabels,
|
bool dolabels,
|
||||||
bool annotate,
|
bool annotate,
|
||||||
bool noblockage)
|
bool noblockage)
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
/* Procedures for reading the technology file: */
|
/* Procedures for reading the technology file: */
|
||||||
|
|
||||||
extern void LefTechInit(void);
|
extern void LefTechInit(void);
|
||||||
extern bool LefTechLine(char *sectionName, int argc, char *argv[]);
|
extern bool LefTechLine(const char *sectionName, int argc, char *argv[]);
|
||||||
extern void LefTechScale(int scalen, int scaled);
|
extern void LefTechScale(int scalen, int scaled);
|
||||||
extern void LefTechSetDefaults(void);
|
extern void LefTechSetDefaults(void);
|
||||||
|
|
||||||
|
|
|
||||||
14
lef/lefInt.h
14
lef/lefInt.h
|
|
@ -143,24 +143,24 @@ extern linkedNetName *lefIgnoreNets;
|
||||||
|
|
||||||
extern int lefDefInitFunc(CellDef *def);
|
extern int lefDefInitFunc(CellDef *def);
|
||||||
extern int lefDefPushFunc(CellUse *use, bool *recurse);
|
extern int lefDefPushFunc(CellUse *use, bool *recurse);
|
||||||
extern FILE *lefFileOpen(CellDef *def, char *file, char *suffix, char *mode, char **prealfile);
|
extern FILE *lefFileOpen(CellDef *def, const char *file, const char *suffix, const char *mode, char **prealfile);
|
||||||
|
|
||||||
extern int LefParseEndStatement(FILE *f, const char *match);
|
extern int LefParseEndStatement(FILE *f, const char *match);
|
||||||
extern void LefSkipSection(FILE *f, const char *section);
|
extern void LefSkipSection(FILE *f, const char *section);
|
||||||
extern void LefEndStatement(FILE *f);
|
extern void LefEndStatement(FILE *f);
|
||||||
extern CellDef *lefFindCell(char *name);
|
extern CellDef *lefFindCell(const char *name);
|
||||||
extern char *LefNextToken(FILE *f, bool ignore_eol);
|
extern char *LefNextToken(FILE *f, bool ignore_eol);
|
||||||
extern char *LefLower(char *token);
|
extern char *LefLower(char *token);
|
||||||
extern LinkedRect *LefReadGeometry(CellDef *lefMacro, FILE *f, float oscale, bool do_list, bool is_imported);
|
extern LinkedRect *LefReadGeometry(CellDef *lefMacro, FILE *f, float oscale, bool do_list, bool is_imported);
|
||||||
extern void LefEstimate(int processed, int total, char *item_name);
|
extern void LefEstimate(int processed, int total, const char *item_name);
|
||||||
extern lefLayer *LefRedefined(lefLayer *lefl, char *redefname);
|
extern lefLayer *LefRedefined(lefLayer *lefl, const char *redefname);
|
||||||
extern void LefAddViaGeometry(FILE *f, lefLayer *lefl, TileType curlayer, float oscale);
|
extern void LefAddViaGeometry(FILE *f, lefLayer *lefl, TileType curlayer, float oscale);
|
||||||
extern void LefGenViaGeometry(FILE *f, lefLayer *lefl, int sizex, int sizey, int spacex, int spacey, int encbx,
|
extern void LefGenViaGeometry(FILE *f, lefLayer *lefl, int sizex, int sizey, int spacex, int spacey, int encbx,
|
||||||
int encby, int enctx, int encty, int rows, int cols, TileType tlayer, TileType clayer,
|
int encby, int enctx, int encty, int rows, int cols, TileType tlayer, TileType clayer,
|
||||||
TileType blayer, float oscale);
|
TileType blayer, float oscale);
|
||||||
extern Rect *LefReadRect(FILE *f, TileType curlayer, float oscale);
|
extern Rect *LefReadRect(FILE *f, TileType curlayer, float oscale);
|
||||||
extern TileType LefReadLayer(FILE *f, bool obstruct);
|
extern TileType LefReadLayer(FILE *f, bool obstruct);
|
||||||
extern void LefReadLayerSection(FILE *f, char *lname, int mode, lefLayer *lefl);
|
extern void LefReadLayerSection(FILE *f, const char *lname, int mode, lefLayer *lefl);
|
||||||
|
|
||||||
extern LefMapping *defMakeInverseLayerMap(bool do_vias);
|
extern LefMapping *defMakeInverseLayerMap(bool do_vias);
|
||||||
|
|
||||||
|
|
@ -168,8 +168,8 @@ extern LefMapping *defMakeInverseLayerMap(bool do_vias);
|
||||||
extern void LefError(int type, const char *fmt, ...) ATTR_FORMAT_PRINTF_2;
|
extern void LefError(int type, const char *fmt, ...) ATTR_FORMAT_PRINTF_2;
|
||||||
|
|
||||||
/* C99 compat */
|
/* C99 compat */
|
||||||
extern void LefRead(char *inName, bool importForeign, bool doAnnotate, int lefTimestamp);
|
extern void LefRead(const char *inName, bool importForeign, bool doAnnotate, int lefTimestamp);
|
||||||
extern void DefRead(char *inName, bool dolabels, bool annotate, bool noblockage);
|
extern void DefRead(const char *inName, bool dolabels, bool annotate, bool noblockage);
|
||||||
|
|
||||||
extern void LefWriteAll(CellUse *rootUse, bool writeTopCell, bool lefTech, int lefHide, int lefPinOnly, bool lefTopLayer,
|
extern void LefWriteAll(CellUse *rootUse, bool writeTopCell, bool lefTech, int lefHide, int lefPinOnly, bool lefTopLayer,
|
||||||
bool lefDoMaster, bool recurse);
|
bool lefDoMaster, bool recurse);
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ void
|
||||||
LefEstimate(
|
LefEstimate(
|
||||||
int processed,
|
int processed,
|
||||||
int total,
|
int total,
|
||||||
char *item_name)
|
const char *item_name)
|
||||||
{
|
{
|
||||||
static int check_interval, partition;
|
static int check_interval, partition;
|
||||||
static struct timeval tv_start;
|
static struct timeval tv_start;
|
||||||
|
|
@ -140,7 +140,7 @@ void
|
||||||
LefEstimate(
|
LefEstimate(
|
||||||
int processed,
|
int processed,
|
||||||
int total,
|
int total,
|
||||||
char *item_name)
|
const char *item_name)
|
||||||
{
|
{
|
||||||
static int check_interval, partition;
|
static int check_interval, partition;
|
||||||
static struct timeval tv_start;
|
static struct timeval tv_start;
|
||||||
|
|
@ -574,7 +574,7 @@ LefSkipSection(
|
||||||
|
|
||||||
CellDef *
|
CellDef *
|
||||||
lefFindCell(
|
lefFindCell(
|
||||||
char *name) /* Name of the cell to search for */
|
const char *name) /* Name of the cell to search for */
|
||||||
{
|
{
|
||||||
HashEntry *h;
|
HashEntry *h;
|
||||||
CellDef *def;
|
CellDef *def;
|
||||||
|
|
@ -638,7 +638,7 @@ LefLower(
|
||||||
lefLayer *
|
lefLayer *
|
||||||
LefRedefined(
|
LefRedefined(
|
||||||
lefLayer *lefl,
|
lefLayer *lefl,
|
||||||
char *redefname)
|
const char *redefname)
|
||||||
{
|
{
|
||||||
lefLayer *slef, *newlefl;
|
lefLayer *slef, *newlefl;
|
||||||
char *altName;
|
char *altName;
|
||||||
|
|
@ -2656,7 +2656,7 @@ enum lef_layer_keys {LEF_LAYER_TYPE=0, LEF_LAYER_WIDTH,
|
||||||
void
|
void
|
||||||
LefReadLayerSection(
|
LefReadLayerSection(
|
||||||
FILE *f, /* LEF file being read */
|
FILE *f, /* LEF file being read */
|
||||||
char *lname, /* name of the layer */
|
const char *lname, /* name of the layer */
|
||||||
int mode, /* layer, via, or viarule */
|
int mode, /* layer, via, or viarule */
|
||||||
lefLayer *lefl) /* pointer to layer info */
|
lefLayer *lefl) /* pointer to layer info */
|
||||||
{
|
{
|
||||||
|
|
@ -2892,7 +2892,7 @@ enum lef_sections {LEF_VERSION = 0,
|
||||||
|
|
||||||
void
|
void
|
||||||
LefRead(
|
LefRead(
|
||||||
char *inName,
|
const char *inName,
|
||||||
bool importForeign,
|
bool importForeign,
|
||||||
bool doAnnotate,
|
bool doAnnotate,
|
||||||
int lefTimestamp)
|
int lefTimestamp)
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@ lefRemoveGeneratedVias(void)
|
||||||
|
|
||||||
bool
|
bool
|
||||||
LefTechLine(
|
LefTechLine(
|
||||||
char *sectionName, /* Name of this section (unused). */
|
const char *sectionName, /* Name of this section (unused). */
|
||||||
int argc, /* Number of arguments on line. */
|
int argc, /* Number of arguments on line. */
|
||||||
char *argv[]) /* Pointers to fields of line. */
|
char *argv[]) /* Pointers to fields of line. */
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -151,21 +151,21 @@ lefFileOpen(
|
||||||
CellDef *def, /* Cell whose .lef file is to be written. Should
|
CellDef *def, /* Cell whose .lef file is to be written. Should
|
||||||
* be NULL if file is being opened for reading.
|
* be NULL if file is being opened for reading.
|
||||||
*/
|
*/
|
||||||
char *file, /* If non-NULL, open 'name'.lef; otherwise,
|
const char *file, /* If non-NULL, open 'name'.lef; otherwise,
|
||||||
* derive filename from 'def' as described
|
* derive filename from 'def' as described
|
||||||
* above.
|
* above.
|
||||||
*/
|
*/
|
||||||
char *suffix, /* Either ".lef" for LEF files or ".def" for DEF files */
|
const char *suffix, /* Either ".lef" for LEF files or ".def" for DEF files */
|
||||||
char *mode, /* Either "r" or "w", the mode in which the LEF/DEF
|
const char *mode, /* Either "r" or "w", the mode in which the LEF/DEF
|
||||||
* file is to be opened.
|
* file is to be opened.
|
||||||
*/
|
*/
|
||||||
char **prealfile) /* If this is non-NULL, it gets set to point to
|
char **prealfile) /* If this is non-NULL, it gets set to point to
|
||||||
* a string holding the name of the LEF/DEF file.
|
* a string holding the name of the LEF/DEF file.
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
char namebuf[512], *name, *endp, *ends;
|
const char *name, *ends, *endp;
|
||||||
char *locsuffix;
|
char namebuf[512];
|
||||||
char *pptr;
|
const char *locsuffix;
|
||||||
int len;
|
int len;
|
||||||
FILE *rfile;
|
FILE *rfile;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue