diff options
Diffstat (limited to 'src/map/if')
-rw-r--r-- | src/map/if/if.h | 3 | ||||
-rw-r--r-- | src/map/if/ifLibBox.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/map/if/if.h b/src/map/if/if.h index d7b0de54..6ae8b30b 100644 --- a/src/map/if/if.h +++ b/src/map/if/if.h @@ -364,6 +364,7 @@ struct If_Box_t_ struct If_LibBox_t_ { + int nBoxes; Vec_Ptr_t * vBoxes; }; @@ -600,6 +601,7 @@ extern float If_LibLutSlowestPinDelay( If_LibLut_t * p ); /*=== ifLibBox.c =============================================================*/ extern If_LibBox_t * If_LibBoxStart(); extern void If_LibBoxFree( If_LibBox_t * p ); +extern int If_LibBoxNum( If_LibBox_t * p ); extern If_Box_t * If_LibBoxReadBox( If_LibBox_t * p, int Id ); extern If_Box_t * If_LibBoxFindBox( If_LibBox_t * p, char * pName ); extern void If_LibBoxAdd( If_LibBox_t * p, If_Box_t * pBox ); @@ -608,6 +610,7 @@ extern If_LibBox_t * If_LibBoxRead2( char * pFileName ); extern void If_LibBoxPrint( FILE * pFile, If_LibBox_t * p ); extern void If_LibBoxWrite( char * pFileName, If_LibBox_t * p ); extern int If_LibBoxLoad( char * pFileName ); +extern If_Box_t * If_BoxStart( char * pName, int Id, int nPis, int nPos, int fSeq, int fBlack, int fOuter ); /*=== ifMan.c =============================================================*/ extern If_Man_t * If_ManStart( If_Par_t * pPars ); extern void If_ManRestart( If_Man_t * p ); diff --git a/src/map/if/ifLibBox.c b/src/map/if/ifLibBox.c index 2f440879..443dbd3f 100644 --- a/src/map/if/ifLibBox.c +++ b/src/map/if/ifLibBox.c @@ -139,6 +139,11 @@ void If_LibBoxAdd( If_LibBox_t * p, If_Box_t * pBox ) Vec_PtrFillExtra( p->vBoxes, 2 * pBox->Id + 10, NULL ); assert( Vec_PtrEntry( p->vBoxes, pBox->Id ) == NULL ); Vec_PtrWriteEntry( p->vBoxes, pBox->Id, pBox ); + p->nBoxes++; +} +int If_LibBoxNum( If_LibBox_t * p ) +{ + return p->nBoxes; } /**Function************************************************************* |