?? global.h
字號:
/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
This file is public domain and comes with NO WARRANTY of any kind */
/*
This is the main include file that should included 'first' in every program.
It contains includes for two system dependent files. One for a the operating
system (s-) and one for the processor (m-).
For a list of what a machine and a operatings system must have se the
standard s- and m- files.
*/
#ifndef _global_h
#define _global_h
#if defined(_lint) && !defined(lint)
#define lint
#endif
#ifndef stdin
#include <stdio.h> /* Include so that m- and s- files can fix things */
#endif
#include <m-pc.h>
#include <s-msdos.h>
#ifdef USES_TYPES
#include <sys/types.h>
#endif
#if defined(DBUG_ON) && defined(DBUG_OFF)
#undef DBUG_OFF
#endif
#if defined(lint) && !defined(DBUG_OFF)
#define DBUG_OFF
#endif
#include <dbug.h>
/* Define void to stop lint from generating "null effekt" comments */
#if defined(lint) || defined(FORCE_INIT_OF_VARS)
#define LINT_INIT(var) var=0 /* No uninitialize-warning */
#else
#define LINT_INIT(var)
#endif
/* Define som useful general macros */
#if defined(__cplusplus) && defined(__GNUG__)
#define max(a, b) ((a) >? (b))
#define min(a, b) ((a) <? (b))
#else
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
#define sgn(a) (((a) < 0) ? -1 : ((a) > 0) ? 1 : 0)
#define swap(t,a,b) { register t dummy; dummy = a; a = b; b = dummy; }
#define test(a) ((a) ? 1 : 0)
#define set_if_bigger(a,b) { if ((a) < (b)) (a)=(b); }
#define set_if_smaller(a,b) { if ((a) > (b)) (a)=(b); }
#define test_all_bits(a,b) (((a) & (b)) == (b))
#define array_elements(A) ((uint) (sizeof(A)/sizeof(A[0])))
/* Define som general constants */
#ifndef TRUE
#define TRUE (1) /* Logical true */
#define FALSE (0) /* Logical false */
#endif
#ifdef __GNUC__
#define function_volatile volatile
#ifndef alloca
#define alloca __builtin_alloca
#endif
#ifdef __cplusplus
#define __attribute__(A)
#endif
#else
#define __attribute__(A)
#endif
#endif /* _global_h */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -