www.pudn.com > AirAPIF.rar > air_defs.h
/* Copyright (C) FUJITSU LIMITED 1999-2001 */
/* $Id: air_defs.h,v 1.14 2001/07/19 10:21:17 JST age Exp $ */
/* This header file is public for users */
/*
* $Log: air_defs.h,v $
* Revision 1.14 2001/07/19 10:21:17 JST age
* 古川 ヘッダファイル "air_stdint.h" 追加
*
* Revision 1.13 2001/07/04 17:45:10 JST age
* 古川 AIR_R_SINGLE 追加
*
* Revision 1.12 2001/03/13 15:22:56 JST age
* 古川 AirExpandMode を C 言語に対応
*
* Revision 1.11 2001/03/05 15:58:33 JST age
* 古川 AIR_FILE_SYMBOLPORT_NAME 追加
*
* Revision 1.10 2000/09/25 15:09:57 JST age
* 古川 AIR_R_SUFFIX 追加
*
* Revision 1.9 2000/06/05 13:49:34 JST age
* 古川 AIR_DEFAULT_MAX_HASH 追加
*
* Revision 1.8 2000/04/21 17:12:12 JST age
* 古川 AIR_R_NOSUFFIX 追加
*
* Revision 1.7 2000/04/21 11:30:43 JST age
* 古川 AIR_R_NOSTACK, AIR_R_NOCOMPPORT 追加
*
* Revision 1.6 2000/04/07 17:09:31 JST age
* 古川 AIR_R_NODELETE 追加
*
* Revision 1.5 2000/04/05 16:31:38 JST age
* 古川 コメント修正
*
* Revision 1.4 2000/03/30 11:51:57 JST age
* 古川 AIR_R_ANYERROR, AIR_R_ALLERROR 変更
* AIR_R_ANYEXIST, AIR_R_ALLEXIST,
* AIR_R_ANYNOEXIST, AIR_R_ALLNOEXIST 追加
* AIR_FILE_IOBLOCK_NAME 追加
*
* Revision 1.3 2000/03/29 18:41:17 JST age
* 古川 AIR_R_ANYERROR, AIR_R_ALLERROR 追加
*
* Revision 1.2 2000/03/03 17:09:46 JST age
* *** empty log message ***
*
* $Com: 古川 ヘッダファイル "air_stdint.h" 追加
*/
/*
* 各種定義のヘッダファイル
*/
#ifndef AIR_DEFS_H
#define AIR_DEFS_H
#include "air_stdint.h"
/* NULL pointer */
#ifndef NULL_PTR
#define NULL_PTR (0)
#endif
/* numeric & character */
#define AIR_N_ZERO 0
#define AIR_N_ONE 1
#define AIR_N_TWO 2
#define AIR_N_THREE 3
#define AIR_N_FOUR 4
#define AIR_N_FIVE 5
#define AIR_N_SIX 6
#define AIR_N_SEVEN 7
#define AIR_N_EIGHT 8
#define AIR_N_NINE 9
#define AIR_N_TEN 10
#define AIR_C_SPACE ' '
#define AIR_C_EXCLAM '!'
#define AIR_C_QUOTEDBL '\"'
#define AIR_C_NUMBERSIGN '#'
#define AIR_C_DOLLAR '$'
#define AIR_C_PERCENT '%'
#define AIR_C_AMPERSAND '&'
#define AIR_C_QUOTERIGHT '\''
#define AIR_C_PARENLEFT '('
#define AIR_C_PARENRIGHT ')'
#define AIR_C_ASTERISK '*'
#define AIR_C_PLUS '+'
#define AIR_C_COMMA ','
#define AIR_C_MINUS '-'
#define AIR_C_PERIOD '.'
#define AIR_C_SLASH '/'
#define AIR_C_COLON ':'
#define AIR_C_SEMICOLON ';'
#define AIR_C_LESS '<'
#define AIR_C_EQUAL '='
#define AIR_C_GREATER '>'
#define AIR_C_QUESTION '\?'
#define AIR_C_AT '@'
#define AIR_C_BRACKETLEFT '['
#define AIR_C_BACKSLASH '\\'
#define AIR_C_BRACKETRIGHT ']'
#define AIR_C_ASCIICIRCUM '^'
#define AIR_C_UNDERSCORE '_'
#define AIR_C_QUOTELEFT '`'
#define AIR_C_BRACELEFT '{'
#define AIR_C_BAR '|'
#define AIR_C_BRACERIGHT '}'
#define AIR_C_ASCIITILDE '~'
/* return code */
const int32_t AIR_R_SUCCESS = 0; /* 正常終了 */
const int32_t AIR_R_ZERO = 0; /* 0 */
const int32_t AIR_R_FINISH = -16; /* 終了 */
const int32_t AIR_R_ALREADY = -17; /* 既にある */
const int32_t AIR_R_BREAK = -18; /* 中断 */
const int32_t AIR_R_LACK = -19; /* 不足 */
const int32_t AIR_R_SURPLUS = -20; /* 余剰 */
const int32_t AIR_R_SINGLE = -21; /* 単一 */
const int32_t AIR_R_NOFILE = -128; /* ファイルなし */
const int32_t AIR_R_NOACCESS = -129; /* アクセス不可 */
const int32_t AIR_R_EXIST = -130; /* 存在している */
const int32_t AIR_R_NODIR = -131; /* ディレクトリなし */
const int32_t AIR_R_ISDIR = -132; /* ディレクトリである */
const int32_t AIR_R_ISFILE = -133; /* ファイルである */
const int32_t AIR_R_IOERROR = -134; /* I/O エラー */
const int32_t AIR_R_NOEXIST = -135; /* 存在しない */
const int32_t AIR_R_NOCREATE = -136; /* 作成なし */
const int32_t AIR_R_NOCONV = -137; /* 変換なし */
const int32_t AIR_R_NOINIT = -138; /* 初期化なし */
const int32_t AIR_R_NOMEM = -139; /* メモリなし */
const int32_t AIR_R_NOREAD = -140; /* 読み込み不可 */
const int32_t AIR_R_NOWRITE = -141; /* 書き込み不可 */
const int32_t AIR_R_NODELETE = -142; /* 削除不可 */
const int32_t AIR_R_ANYERROR = -256; /* いくつかエラー */
const int32_t AIR_R_ALLERROR = -257; /* すべてエラー */
const int32_t AIR_R_ANYEXIST = -258; /* いくつか存在している */
const int32_t AIR_R_ALLEXIST = -259; /* すべて存在している */
const int32_t AIR_R_ANYNOEXIST = -260; /* いくつか存在しない */
const int32_t AIR_R_ALLNOEXIST = -261; /* すべて存在しない */
const int32_t AIR_R_NOPART = -512; /* パートなし */
const int32_t AIR_R_NOARCH = -513; /* アーキテクチャなし */
const int32_t AIR_R_NOSAVE = -514; /* 保存なし */
const int32_t AIR_R_NOLOAD = -515; /* 読み込みなし */
const int32_t AIR_R_MODIFY = -516; /* 変更あり */
const int32_t AIR_R_NOKEY = -517; /* KEY なし */
const int32_t AIR_R_NOBLOCK = -518; /* ブロックなし */
const int32_t AIR_R_NOSYM = -519; /* シンボルなし */
const int32_t AIR_R_NOCOMP = -520; /* コンポーネントなし */
const int32_t AIR_R_NOPAGE = -521; /* ページなし */
const int32_t AIR_R_NOPORT = -522; /* ポートなし */
const int32_t AIR_R_NONET = -523; /* ネットなし */
const int32_t AIR_R_NOID = -524; /* ID なし */
const int32_t AIR_R_TEXT = -525; /* テキストである */
const int32_t AIR_R_NOTEXT = -526; /* テキストなし */
const int32_t AIR_R_NOAPIF = -527; /* APIF なし */
const int32_t AIR_R_NOSTACK = -528; /* スタックなし */
const int32_t AIR_R_NOCOMPPORT = -529; /* コンポーネントポートなし */
const int32_t AIR_R_NOSUFFIX = -530; /* サフィックスなし */
const int32_t AIR_R_SUFFIX = -531; /* サフィックス付き */
const int32_t AIR_R_ERROR = -1023; /* その他のエラー */
/* ファイル名 and サフィックス */
#define AIR_FILE_ARCHITECTURE_PREFIX "arc"
#define AIR_FILE_ARCHITECTURE_NAME "architecture"
#define AIR_FILE_PAGE_NAME "page"
#define AIR_FILE_PAGEFIGURE_NAME "pagefigure"
#define AIR_FILE_PAGECOMMENT_NAME "pagecomment"
#define AIR_FILE_BLOCK_NAME "block"
#define AIR_FILE_IOBLOCK_NAME "ioblock"
#define AIR_FILE_BLOCKINFO_NAME "blockinfo"
#define AIR_FILE_BLOCKSYMBOL_NAME "blocksymbol"
#define AIR_FILE_STACK_NAME "stack"
#define AIR_FILE_COMPONENT_NAME "component"
#define AIR_FILE_COMPONENTINFO_NAME "componentinfo"
#define AIR_FILE_SYMBOL_NAME "symbol"
#define AIR_FILE_PORT_NAME "port"
#define AIR_FILE_PORTINFO_NAME "portinfo"
#define AIR_FILE_COMPONENTPORT_NAME "componentport"
#define AIR_FILE_COMPONENTPORTINFO_NAME "componentportinfo"
#define AIR_FILE_SYMBOLPORT_NAME "symbolport"
#define AIR_FILE_NET_NAME "net"
#define AIR_FILE_NETINFO_NAME "netinfo"
#define AIR_FILE_VECTOR_NAME "vector"
#define AIR_FILE_VECTORINFO_NAME "vectorinfo"
#define AIR_FILE_GROUP_NAME "group"
#define AIR_FILE_GROUPINFO_NAME "groupinfo"
#define AIR_FILE_FIGURE_NAME "figure"
#define AIR_FILE_NAME_NAME "name"
#define AIR_FILE_TEXT_NAME "text"
#define AIR_FILE_HASH_NAME "hash"
#define AIR_FILE_APPLDEF_NAME "appldef"
#define AIR_FILE_ARCHITECTUREPACKAGE_NAME "architecturepackage"
#define AIR_FILE_PORTPACKAGE_NAME "portpackage"
#define AIR_FILE_STACKPACKAGE_NAME "stackpackage"
#define AIR_FILE_NETINFOPACKAGE_NAME "netinfopackage"
#define AIR_FILE_STM_NAME "stm"
#define AIR_FILE_PART_SUFFIX ".ap"
#define AIR_FILE_DB_SUFFIX ".db"
#define AIR_FILE_ENV_NAME "env"
#define AIR_FILE_IGNORE_PREFIX "."
/* データベースメンバ */
#define AIR_DB_MEMBER_ARCHITECTURENAME "architecturename"
#define AIR_DB_MEMBER_MASTER_ARCH_F "master_arch_f"
/* */
#define AIR_DB_TIMEFORMAT "%Y%m%d%H%M%S"
#define AIR_DB_TIMEFORMAT_LENGTH 14
/* AirCfEnv 用キー名一覧 */
#include "air_envkey.h"
/* AirCfEnv 用 */
const char* const AIR_ENV_OPT = "-f";
#define AIR_URU_TRUE 0
#define AIR_URU_FALSE 1
/* 共通関数(Expand/Shrink)用 */
enum AirExpandMode {
AIR_EXPAND_NORMAL, /* 通常の展開モード */
AIR_EXPAND_EXTEND /* 拡張展開モード */
};
#ifndef __cplusplus
typedef enum AirExpandMode AirExpandMode;
#endif
/* */
const int32_t AIR_DEFAULT_MAX_HASH = 1024;
#endif