CORSIKA add-on package IACT/ATMO:  Version 1.63 (November 2020)
Macros | Typedefs
initial.h File Reference

Indentification of the system and including some basic include file. More...

#include <string.h>
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <sys/types.h>
Include dependency graph for initial.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define Abs(a)   (((a)>=0)?(a):(-1*(a)))
 
#define APPEND_BINARY   "a"
 
#define APPEND_TEXT   "a"
 
#define ARGLIST(a)   a
 
#define CONST_QUAL
 
#define IEEE_FLOAT_FORMAT   1
 
#define M_PI   3.14159265358979323846
 
#define Max(a, b)   ((a)>(b)?(a):(b))
 
#define max(a, b)   ((a)>(b)?(a):(b))
 
#define Min(a, b)   ((a)<(b)?(a):(b))
 
#define min(a, b)   ((a)<(b)?(a):(b))
 
#define Nint(a)   (((a)>=0.)?((long)(a+0.5)):((long)(a-0.5)))
 
#define READ_BINARY   "r"
 
#define READ_TEXT   "r"
 
#define REGISTER   register
 
#define SEEK_CUR   1
 
#define WRITE_BINARY   "w"
 
#define WRITE_TEXT   "w"
 

Typedefs

typedef short int16_t
 
typedef int int32_t
 
typedef char int8_t
 
typedef long intmax_t
 
typedef unsigned short uint16_t
 
typedef unsigned int uint32_t
 
typedef unsigned char uint8_t
 
typedef unsigned long uintmax_t
 

Detailed Description

Author
Konrad Bernloehr
Date
1991 to 2010
$Date: 2018/11/26 12:29:34 $ 
Version
$Revision: 1.20 $ 

This file identifies a range of supported operating systems and processor types. As a result, some preprocessor definitions are made. A basic set of system include files (which may vary from one system to another) are included. In addition, compatibility between different systems is improved, for example between K&R compiler systems and ANSI C compilers of various flavours.

    Identification of the host operating system (not CPU):
 
    Supported identifiers are
    OS_MSDOS
    OS_VAXVMS
    OS_UNIX
        + variant identifiers like
        OS_ULTRIX, OS_LYNX, OS_LINUX, OS_DECUNIX, OS_AIX, OS_HPUX,
        OS_DARWIN (Mac OS X).
        Note: ULTRIX may be on VAX or MIPS, LINUX on Intel or Alpha,
        OS_LYNX on 68K or PowerPC.
    OS_OS9
 
    You might first reset all identifiers here.
 
    Then set one or more identifiers according to the system.
 
    Identification of the CPU architecture:

    Supported CPU identifiers are
       CPU_I86
       CPU_X86_64
       CPU_VAX
       CPU_MIPS
       CPU_ALPHA
       CPU_68K
       CPU_RS6000
       CPU_PowerPC
       CPU_HPPA