mmhash.h

来自「游戏《家园》源码」· C头文件 代码 · 共 38 行

H
38
字号
// Copyright (c) 1999 Relic Entertainment Inc.
// Written by Janik Joire
//
// $History: $

#ifndef MMHASH_H
#define MMHASH_H

// General constants
#ifndef OK
#define OK		0
#endif

#ifndef ERR
#define ERR		-1
#endif

// MissionMan constants
#define MMH_SEC_SING	"S_"
#define MMH_SEC_MULTI	"M_"
#define MMH_SEC_OBJ		"Object_"
#define MMH_KEY_TYPE	"Type"
#define MMH_KEY_FILE	"File_"
#define MMH_EXT_OBJ		".mor"

#ifdef __cplusplus
extern "C" {
#endif

// Functions
unsigned long strhash(char *str);

#ifdef __cplusplus
}		// extern "C"
#endif

#endif

⌨️ 快捷键说明

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