database: DBTypeShortName() return const char *
This commit is contained in:
parent
70054ccde2
commit
4864a80179
|
|
@ -327,11 +327,11 @@ DBTechNoisyNamePlane(planename)
|
||||||
* ----------------------------------------------------------------------------
|
* ----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
DBTypeShortName(type)
|
DBTypeShortName(
|
||||||
TileType type;
|
TileType type)
|
||||||
{
|
{
|
||||||
NameList *tbl;
|
const NameList *tbl;
|
||||||
|
|
||||||
for (tbl = dbTypeNameLists.sn_next;
|
for (tbl = dbTypeNameLists.sn_next;
|
||||||
tbl != &dbTypeNameLists;
|
tbl != &dbTypeNameLists;
|
||||||
|
|
|
||||||
|
|
@ -1124,7 +1124,7 @@ extern PlaneMask DBTypePlaneMaskTbl[TT_MAXTYPES];
|
||||||
extern char *DBTypeLongNameTbl[TT_MAXTYPES];
|
extern char *DBTypeLongNameTbl[TT_MAXTYPES];
|
||||||
|
|
||||||
/* Gives a short name for a tile type: */
|
/* Gives a short name for a tile type: */
|
||||||
extern char *DBTypeShortName();
|
extern const char *DBTypeShortName(TileType type);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following give masks of all planes that may be affected
|
* The following give masks of all planes that may be affected
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
|
||||||
#include "drc/drc.h"
|
#include "drc/drc.h"
|
||||||
|
|
||||||
extern char *maskToPrint();
|
extern char *maskToPrint();
|
||||||
extern char *DBTypeShortName();
|
extern const char *DBTypeShortName(TileType type);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ----------------------------------------------------------------------------
|
* ----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue