📄 util.h
字号:
/*
* @(#)util.h
*
* Copyright 1997-1999, Wes Cherry (mailto:wesc@technosis.com)
* 2000-2001, Aaron Ardiri (mailto:aaron@ardiri.com)
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, please write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Revisions:
* ==========
*
* pre 18-Jun-2000 <numerous developers>
* creation
* 18-Jun-2000 Aaron Ardiri
* GNU GPL documentation additions
*/
#ifndef __UTIL_H__
#define __UTIL_H__
#include <stdio.h>
/* RMa add : Debug mode define */
#ifdef _DEBUG
#define HEXOUT 1
#endif
VOID Error(char *sz);
VOID Error2(char *sz1,
char *sz2);
VOID Error3(char *sz1,
char *sz2,
char *sz3);
void ErrorLine(char *sz);
void WarningLine(char *sz);
void ErrorLine2(char *sz,
char *sz2);
BOOL FSzEqI(char *sz1,
char *sz2);
int WMin(int w1,
int w2);
int WMax(int w1,
int w2);
void EmitB(unsigned char b);
void EmitW(unsigned short w);
void EmitL(unsigned long l);
/*void SwapBytes(void *pv, int cb); */
/*void SwapLong(void *pl); */
/*void SwapStruct(void *pv, char *szPic); */
VOID OpenOutput(char *szBase,
int id);
VOID CloseOutput();
FILE *getOpenedOutputFile();
VOID OpenResFile(char *szFile);
VOID CloseResFile();
void DumpBytes(void *pv,
int cb);
void PadBoundary();
void PadWordBoundary();
int IbOut();
VOID SetOutFileDir(char *sz);
char *FindAndOpenFile(char *szIn,
char *mode,
FILE ** returnFile);
extern char rgbZero[];
extern FILE *vfhIn;
#define MAXPATHS 64
extern char *includePaths[];
extern int totalIncludePaths;
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -