utils.h

来自「The Lite Evaluation/Demonstration Kit is」· C头文件 代码 · 共 68 行

H
68
字号
//////////////////////////////////////////////////////////////////////
//
// File: utils.h 
//
// $Archive: /ComemL/Host/ComemLif/utils.h $
//
// Purpose:
//
// $Author: Tpm $
//
// $History: utils.h $
//  
//  *****************  Version 12  *****************
//  User: Tpm          Date: 11/06/98   Time: 4:58p
//  Updated in $/ComemL/Host/ComemLif
//  Creat seperate directory for ComemLite IF Library.
//  
//  *****************  Version 10  *****************
//  User: Tpm          Date: 8/27/98    Time: 10:30a
//  Updated in $/Comem/Mapper
//  Aug Plug-Fest version.
//  
//  *****************  Version 9  *****************
//  User: Tpm          Date: 8/27/98    Time: 9:12a
//  Updated in $/ComemL/Host/ComemLif
//  use ComelL.vxd.
//  
//  *****************  Version 8  *****************
//  User: Stevek       Date: 11/07/97   Time: 10:52a
//  Updated in $/Comem/Mapper
//  Removed windows centric define.
//  
//  *****************  Version 7  *****************
//  User: Stevek       Date: 10/28/97   Time: 2:24p
//  Updated in $/Comem/Mapper
//  Added checks for resetout inactive on start, changed reset to allow for
//  interrupts active on startup.
//  
//  *****************  Version 6  *****************
//  User: Stevek       Date: 10/28/97   Time: 9:57a
//  Updated in $/Comem/Mapper
//  More seperation for seperate library file.
//  Removed embeddedSystems stuff.
//  
//  *****************  Version 5  *****************
//  User: Stevek       Date: 10/27/97   Time: 1:16p
//  Updated in $/Comem/Mapper
//  Moved interface functions into the comem_if.lib file.
//  
//  *****************  Version 4  *****************
//  User: Stevek       Date: 10/22/97   Time: 12:27p
//  Updated in $/Comem/Mapper
//  Added header blocks to all files at once!
//  
// Copyright (c) 1997 Anchor Chips, Inc.  May not be reproduced without
// permission.  See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
int timeout(unsigned long time, unsigned timer);
void report_error(const char *msg, ...);
void reportErrorCode(DWORD status, char * whereAmI);
int my_sscanf(const char * buffer, DWORD *data);

const int FOREGROUND_TIMER = 0;

const int ONE_SECOND = 18;    // number of ticks per second
#define STORAZ(type, val) (*((type *) &val))

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?