set_block_error(-5);
}
iFigureUID = getFigure(block);
- if (iFigureUID == NULL)
+ if (iFigureUID == 0)
{
// allocation error
set_block_error(-5);
case StateUpdate:
iFigureUID = getFigure(block);
- if (iFigureUID == NULL)
+ if (iFigureUID == 0)
{
// allocation error
set_block_error(-5);
iFigureUID = getFigureFromIndex(figNum);
// create on demand
- if (iFigureUID == NULL)
+ if (iFigureUID == 0)
{
iFigureUID = createNewFigureWithAxes();
setGraphicObjectProperty(iFigureUID, __GO_ID__, &figNum, jni_int, 1);
// assert the sco is not NULL
if (sco == NULL)
{
- return NULL;
+ return 0;
}
// fast path for an existing object
/*
* Allocate if necessary
*/
- if (iAxe == NULL)
+ if (iAxe == 0)
{
cloneAxesModel(iFigureUID);
iAxe = findChildWithKindAt(iFigureUID, __GO_AXES__, 0);
/*
* Setup on first access
*/
- if (iAxe != NULL)
+ if (iAxe != 0)
{
// allocate the polylines through the getter
for (i = 0; i < block->insz[0]; i++)
}
else
{
- return NULL;
+ return 0;
}
/*
// assert the sco is not NULL
if (sco == NULL || sco->scope.cachedArcsUIDs == NULL)
{
- return NULL;
+ return 0;
}
// fast path for an existing object
{
iArc = createGraphicObject(__GO_ARC__);
- if (iArc != NULL)
+ if (iArc != 0)
{
createDataObject(iArc, __GO_ARC__);
setGraphicObjectRelationship(iAxeUID, iArc);
}
else
{
- return NULL;
+ return 0;
}
}
set_block_error(-5);
}
iFigureUID = getFigure(block);
- if (iFigureUID == NULL)
+ if (iFigureUID == 0)
{
// allocation error
set_block_error(-5);
case StateUpdate:
iFigureUID = getFigure(block);
- if (iFigureUID == NULL)
+ if (iFigureUID == 0)
{
// allocation error
set_block_error(-5);
// assert the sco is not NULL
if (sco == NULL)
{
- return NULL;
+ return 0;
}
// fast path for an existing object
static int getPolyline(int iAxeUID, scicos_block * block, int row)
{
int iPolyline;
- double d__0 = 0.0;
BOOL b__true = TRUE;
int color;