当前位置: 首页>>代码示例>>C++>>正文


C++ TRACK函数代码示例

本文整理汇总了C++中TRACK函数的典型用法代码示例。如果您正苦于以下问题:C++ TRACK函数的具体用法?C++ TRACK怎么用?C++ TRACK使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了TRACK函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: TraceMsg

boolean NamedDrawObj_Create1
                         (tokentype    *Anchor,    numtype       ClassId,
                          nametype      Nam,
                          ft F,lt Z,zz *Status,    tokentype    *Token)
{
numtype        DrawId          = 0;

   if (DeBug || OaBug || ClassBug)
   if (sprintf (Msg,
               "\n NamedDrawObj:: Create Anchor[%3u:%8u];  ClassId=%4u\n",
                Anchor->DbId,  Anchor->Handle, ClassId))
       TraceMsg (0, Msg);

   if (DrawLib01)
      DrawId      =  ++DrawLib01->DrawId;

   if (Normal(*Status))
   if (Object_Create   (Anchor, ClassId,                McStat, Token))
   if (Attr_ValuePut   (Token,  Id_Attr,    (addrtype )&DrawId,     McStat))
   if (Attr_ValuePut   (Token,  Nam_Attr,   (addrtype  )Nam,        McStat))
   {
      if (DrawObjs_AddInto      (&LibTkn010,  Token,  McStat))
          NamedDrawObjs_AddInto (&LibTkn010,  Token,  McStat);
   }

TRACK(TrackBak,"NamedDrawObj_Create1\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:28,代码来源:drawobj.c

示例2: CoreMoveBytes

boolean    CoreMoveBytes  (addrtype      Source,      sizeinbytes   SourceSize,
                           sizeinbytes   TargetSize,
                           ft F,lt Z,zz *Status,      addrtype     *Target )
{
  if (SourceSize == 0)
  {
    *Target = Source;
    *Status = Err_NoBytesMoved;
  }

  if (Normal(*Status))
  if (CoreMoreCore     (TargetSize,              McStat,     Target))
     memcpy            ((char *)*Target, (char *)Source,     SourceSize);

  if (sprintf (Msg, TraceStr(66),
/*  "    CoreMoveBytes(%u) @%x to %x NewSize(%u)\n"  */
               SourceSize, Source, *Target, TargetSize))
     SendMsg (0, Msg);

  if (Normal(*Status))
     CoreFreeCoreSpace (&Source,                 SourceSize, McStat);

TRACK(TrackBak,"CoreMoveBytes\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:25,代码来源:core01.c

示例3: Ut_IntToStr

boolean NamedDrawObj_Create0
                         (tokentype    *Anchor,
                          ft F,lt Z,zz *Status,    tokentype    *Token)
{
numtype    DrawId   =  0;
static
nametype   Nam      = {"Create0_"};

   if (DrawLib01)
      DrawId   =  ++DrawLib01->DrawId;

   Ut_IntToStr   ((int )DrawId, Nam);

   if (DeBug || OaBug || ClassBug)
   if (sprintf (Msg, "\n NamedDrawObj:: Create [%3u:%8u] = <%s>\n",
                Anchor->DbId,  Anchor->Handle, Nam))
       TraceMsg (0, Msg);

   if (Object_Create   (Anchor, NamedDrawObj_Class,     McStat,     Token))
   if (Attr_ValuePut   (Token,  Id_Attr,    (addrtype )&DrawId,     McStat))
       Attr_ValuePut   (Token,  Nam_Attr,   (addrtype )&Nam,        McStat);

   if (Normal(*Status))
   if (DrawObjs_AddInto      (&LibTkn010,  Token,  McStat))
       NamedDrawObjs_AddInto (&LibTkn010,  Token,  McStat);

TRACK(TrackBak,"NamedDrawObj_Create0\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:29,代码来源:drawobj.c

示例4: FileGetSomeBytes

boolean FileGetSomeBytes (blkhdrtype   *BlkHdr,     farlongtype  FileOffset,
                          unsigned      SomeBytes,
                          ft F,lt Z,zz *Status,     addrtype     BytesAddr)
{
size_t  CheckCount  = 0;
int     SeekStatus  = 0;

    SeekStatus = fseek (BlkHdr->BlkFile, FileOffset, SEEK_SET);
    if (SeekStatus != 0)
    {
        sprintf  (Msg, TraceStr(9),
/* "***FileGetSomeBytes... SeekStatus= %u\n" */
                  SeekStatus);
        TraceMsg  (0,   Msg);
       *Status = File_BadDiskWrite;
    }

    CheckCount = fread (BytesAddr,       SomeBytes,  (size_t )1,
                        BlkHdr->BlkFile);
    if (CheckCount != (int )1)
    {
        sprintf  (Msg, TraceStr(10),
/* "***FileGetSomeBytes... CheckCount= %u\n" */
                  CheckCount);
        TraceMsg  (0,   Msg);
       *Status = File_BadDiskWrite;
    }

    if (SomeBytes == 0)
       *Status = Err_NoBytesMoved;

TRACK(TrackBak,"FileGetSomeBytes\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:34,代码来源:fm.c

示例5: Sprite32

void Sprite32 (short x, short y, short height, const unsigned long *sprite, void *vm_addr, short mode) {
     TRACK("Sprite32");
     Byte * Dest=(Byte *)vm_addr;
     Byte * SpriteData=(Byte *)(void *)sprite;
     int SpriteByteNum, ByteNum;
     for(int sy=0; sy<height; sy++) {
         for(int sx=0; sx<32; sx++) {
               if(sizeof(long) == 4)
                    SpriteByteNum=((sy)*32)+(31-sx);
               else /* 8byte long on 64-bit*/
                    SpriteByteNum=((sy)*64)+(31-sx);
               ByteNum=((sy+y)*ScreenState.XMax)+sx+x;
               if(GetBit(SpriteData[SpriteByteNum/8], SpriteByteNum%8)!=0) {
                    if(mode==SPRT_XOR) {
                         SetBit(&Dest[ByteNum/8], ByteNum%8);
                    }
                    if(mode==SPRT_OR) {
                         SetBit(&Dest[ByteNum/8], ByteNum%8);
                    }
               }
               else {
                    if(mode==SPRT_AND) {
                         SetBit(&Dest[ByteNum/8], ByteNum%8);
                    }
               }
          }
     }
}
开发者ID:Michaelcraighoffman,项目名称:TIM,代码行数:28,代码来源:sprites.cpp

示例6: Sprite16

void Sprite16 (short x, short y, short height, const unsigned short *sprite, void *vm_addr, short mode) {
     TRACK("Sprite16");
     Byte * Dest=(Byte *)vm_addr;
     Byte * SpriteData=(Byte *)(void *)sprite;
     int SpriteByteNum, ByteNum;
     for(int sy=0; sy<height; sy++) {
         for(int sx=0; sx<16; sx++) {
            SpriteByteNum=((sy)*16)+(15-sx);
            ByteNum=((sy+y)*ScreenState.XMax)+sx+x;
            if(GetBit(SpriteData[SpriteByteNum/8], SpriteByteNum%8)!=0) {
                if(mode==SPRT_XOR) {
                    if(GetBit(Dest[ByteNum/8], ByteNum%8)!=0) {
                         ClearBit(&Dest[ByteNum/8], ByteNum%8);
                    }
                    else
                         SetBit(&Dest[ByteNum/8], ByteNum%8);
                }
                if(mode==SPRT_OR || mode==SPRT_COPY) {
                    SetBit(&Dest[ByteNum/8], ByteNum%8);
                }
             }
             else {
                 if(mode==SPRT_AND) {
                     SetBit(&Dest[ByteNum/8], ByteNum%8);
                 }
                 else if(mode==SPRT_COPY) {
                     ClearBit(&Dest[ByteNum/8], ByteNum%8);
                 }
             }
         }
     }
}
开发者ID:Michaelcraighoffman,项目名称:TIM,代码行数:32,代码来源:sprites.cpp

示例7: sprintf

boolean  NamedDrawObj_ExportFunc  
                         (tokentype    *Token,   indextype       IterNum,
                          ft F,lt Z,zz *Status)
{
numtype             j      = IterNum;
NamedDrawObj       *r010   = NullPtr;

   if (j == 0 || j % QueBug == 0)
   {
      sprintf (Msg, " Object %4d. Iterate [%3u:%8u]\n",
               IterNum, Token->DbId, Token->Handle);
      TraceMsg (0, Msg);
   }

   if (Object_IsA           (Token,  McStat)   == NamedDrawObj_Class)
   {
      r010 = NamedDrawObj_new2 (Token,              McStat);
      if (r010)
      if (DrawObj_export    ((DrawObj  *)r010,    McStat))
          DrawObj_delete    ((DrawObj **)&r010,   dbFree,    McStat);
   }

TRACK(TrackBak,"NamedDrawObj_ExportFunc\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:25,代码来源:drawobj.c

示例8: MemCopyOutChunk

/*+-----------------------------------------------------------------------+*/
boolean MemCopyOutChunk (numtype    Chunk,    ft F,lt Z,zz *Status,
                         vbntype   *SwapVbn)
{
 
TRACK(TrackBak,"MemCopyOutChunk\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:8,代码来源:mem01.c

示例9: while

/*     14.1.1                                                             */
boolean List01_FindListHead
                         (tokentype    *Anchor,    char         *NameOfList,
                          ft F,lt Z,zz *Status,    tokentype    *ListTkn)
{
listheadtype *HeadObj    = NullPtr;
tokentype     ItorTkn    = NullToken;
boolean       FOUND      = False;

 *Status                 = Iterate_Begin;
  while (!FOUND
  &&     Primal_IterateOnClassObjects
                         (Anchor, DbListHead_Class, McStat,
                          &ItorTkn,   ListTkn))
  {
     if (OaGetObject    (ListTkn,   McStat,       (addrtype *)&HeadObj))
     if (!strncmp (HeadObj->ListName, NameOfList,  sizeof (nametype)))
        FOUND   = True;
  }
  if (*Status   == Iterate_EndOf)
      *Status    = Env_Normal;

  if (!FOUND)
  {
    *ListTkn  = NullToken;
    *Status   = List01_NotFound;
  }

TRACK(TrackBak,"List01_FindListHead\n");
return(STAT);
}
开发者ID:shivgarg,项目名称:SPEC_CPU_BENCH-2000-Android-APP,代码行数:31,代码来源:list01.c

示例10: TRACK

/*+-----------------------------------------------------------------------+*
~DBM                           1->0  
 *+-----------------------------------------------------------------------+*/
boolean Dbm_FreeDb      (tokentype    *DbToken,  ft F,lt Z,zz *Status)
{
   *Status  = Err_NotImplemented;

TRACK(TrackBak,"DbmFreeDb\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:10,代码来源:dbm2.c

示例11: TraceMsg

/*+-----------------------------------------------------------------------+*
 ~L                           DEBUG    
 *+-----------------------------------------------------------------------+*/
boolean    DbmDumpVchunkVchunk
                           (tokentype    *Token,   ft F,lt Z,zz *Status)
{
vchunktkntype VchunkToken;
dbheader     *CoreDb       = NullPtr;

  if (Token->Handle == 0)
  {
     TraceMsg (0,  "  *** NULL Handle to Virtual Chunk.\n");
    *Status = Oa_VchunkNotExist;
  }

  if (Token->DbId    > CoreDbCount)
  {
    *Status = Oa_VchunkNotExist;
  }

  if (Normal(*Status))
  if (TmGetCoreDb      (Token,     McStat,            &CoreDb))
  if (DbmGetVchunkTkn  (Token,     McStat,            &VchunkToken))

  if (Normal(*Status))
  if (VchunkToken.InCore)
     DumpChunkChunk    (0, VchunkToken.InCore);

TRACK(TrackBak,"DbmDumpVchunkVchunk\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:31,代码来源:vdbm.c

示例12: Grp_FreezePacket

/*     12.1.4                                                              */
boolean Grp_FreezePacket (tokentype    *Anchor,    numtype       GrpNum,
                          ft F,lt Z,zz *Status)
{
/* GrpNum is the Packet Index the DbHdr->GrpHdrDir                         */
dbheader    *CoreDb   = NullPtr;
grpheader   *GrpHdr   = NullPtr;
vbntype      Vbn      = 0;

  if (TmGetCoreDb   (Anchor,                      McStat,            &CoreDb))
  if (MemGetAddr    (CoreDb->GrpHdrDir, GrpNum,   McStat,(addrtype *)&GrpHdr))
  {
     if (GrpHdr == NullPtr)
     {
        if(CoreDb->GrpHdrDirVbn)
        if (MemGetVbn     (CoreDb->GrpVbnDir,               GrpNum,
                           McStat,                         &Vbn))          
            DbmLoadGrpHdr (Anchor, GrpNum,     McStat,     &GrpHdr);
     }

     if (GrpHdr)
         GrpHdr->FreezePacket  = True;
     else
        *Status  = Grp_PacketNotExist;

  } else {
    *Status = Grp_GrpHdrNotExist;
  }

TRACK(TrackBak,"GrpFreezePacket\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:32,代码来源:grp1.c

示例13: TRACK

/*     10.1.15                                                             */
boolean Vchunk_Copy      (tokentype    *Vtoken0,   tokentype    *Vtoken1, 
                          ft F,lt Z,zz *Status)
{
vchunktkntype Vchunk0;
vchunktkntype Vchunk1;
vchunkstruc   VchunkStruc0;
vchunkstruc   VchunkStruc1;
addrtype      VchunkAddr0   = NullPtr;
addrtype      VchunkAddr1   = NullPtr;

  if (DbmInvokeVchunk    (Vtoken0,         McStat,    &Vchunk0))
  if (MemGetChunkStruc   (Vchunk0.InCore,  McStat,    &VchunkStruc0))
  if (MemGetChunkAddr    (Vchunk0.InCore,  McStat,    &VchunkAddr0))

  if (DbmInvokeVchunk    (Vtoken1,         McStat,    &Vchunk1))
  if (MemGetChunkStruc   (Vchunk1.InCore,  McStat,    &VchunkStruc1))
  if (MemGetChunkAddr    (Vchunk1.InCore,  McStat,    &VchunkAddr1))

  if (VchunkStruc0.UnitSize == VchunkStruc1.UnitSize)
  {
     if (MemPutStackPtr  (Vchunk1.InCore,  VchunkStruc1.StackPtr,    McStat))
         MoveBytes       (VchunkAddr0,     VchunkAddr1, 
                          VchunkStruc0.UnitSize * VchunkStruc0.UnitCount);
  } else
    *Status = Vchunk_NotSameUnitSize;

TRACK(TrackBak,"Vchunk_Copy\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:30,代码来源:vchunk.c

示例14: DbmFreeVchunk

boolean    DbmFreeVchunk   (tokentype    *Vtoken,  ft F,lt Z,zz *Status)
{
vchunktkntype Vchunk;
numtype       IsCommitted  = 0;

#ifdef   __FREEZE_VCHUNKS__
dbheader     *DbHdr        = NullPtr;
#endif /* __FREEZE_VCHUNKS__  */

  if (!Vtoken->Handle)
     *Status = Oa_VchunkNotExist;

  if (Normal(*Status))
  if (DbmGetVchunkTkn    (Vtoken,          McStat,          &Vchunk))

  if (Normal(*Status))
  if (Vchunk.InCore) 
#ifdef   __FREEZE_VCHUNKS__
  if (TmGetCoreDb       (Vtoken,          McStat,       &DbHdr))
  if (DbHdr->VchunkCommitDir)
      MemGetBit         (DbHdr->VchunkCommitDir,  Vtoken->Handle, 
                         McStat,                 &IsCommitted);
#endif /* __FREEZE_VCHUNKS__  */

  if (Normal(*Status))
  if (IsCommitted == 0)
  if (MemFreeChunk      (&Vchunk.InCore,   McStat))
      DbmPutVchunkTkn   (Vtoken,          &Vchunk,           McStat);


TRACK(TrackBak,"DbmFreeVchunk\n");
return (STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:33,代码来源:vdbm.c

示例15: MemCopyInChunk

boolean MemCopyInChunk  (numtype       Chunk,      numtype       SwapVbn,
                         addrtype      SwapAddr,   ft F,lt Z,zz *Status)
{

TRACK(TrackBak,"MemCopyInChunk\n");
return(STAT);
}
开发者ID:palmerc,项目名称:lab,代码行数:7,代码来源:mem01.c


注:本文中的TRACK函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。