You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
506 B
29 lines
506 B
#include "sol.h"
|
|
VSZASSERT
|
|
|
|
|
|
|
|
BOOL FInitUndo(UDR *pudr)
|
|
{
|
|
INT icol;
|
|
|
|
pudr->fAvail = fFalse;
|
|
|
|
for(icol = 0; icol < 2; icol++)
|
|
if((pudr->rgpcol[icol] = PcolCreate(NULL, 0, 0, 0, 0, icrdUndoMax)) == NULL)
|
|
{
|
|
if(icol != 0)
|
|
FreeP(pudr->rgpcol[0]);
|
|
return fFalse;
|
|
}
|
|
return fTrue;
|
|
}
|
|
|
|
|
|
VOID FreeUndo(UDR *pudr)
|
|
{
|
|
INT icol;
|
|
|
|
for(icol = 0; icol < 2; icol++)
|
|
FreeP(pudr->rgpcol[icol]);
|
|
}
|