/* * variable.h ΚΡΏτ΄ΙΝύ * * Copyright (C) 1997-1998 Masaki Chikama (Wren) * 1998- * * 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 of the License, or * (at your option) any later 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, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ /* $Id: variable.h,v 1.11 2003/04/22 16:34:28 chikama Exp $ */ #ifndef __VARIABLE__ #define __VARIABLE__ #include #include "portab.h" // #define SYSVAR_MAX 1024 //#define SYSVAR_MAX 8192# #define SYSVAR_MAX 65536 #define SYSVARLONG_MAX 128 #define STRVAR_MAX 5000 #define STRVAR_LEN 101 #define ARRAYVAR_PAGEMAX 256 typedef struct { int max; boolean saveflag; int *value; } arrayVarBufferStruct; typedef struct { int *pointvar; int page; int offset; } arrayVarStruct; extern int *sysVar; extern arrayVarStruct *sysVarAttribute; extern arrayVarBufferStruct *arrayVarBuffer; extern double longVar[]; extern boolean v_allocateArrayBuffer(int , int , boolean ); extern boolean v_defineArrayVar(int , int *, int , int ); extern boolean v_releaseArrayVar(int ); extern boolean v_releaseArrayVar(int datavar); extern int v_getArrayBufferCnt(int page); extern boolean v_getArrayBufferStatus(int page); extern void v_initStringVars(int ,int ); extern boolean v_initVars(); extern char *v_strcpy(int no, const char *str); extern char *v_strcat(int no, const char *str); extern size_t v_strlen(int no); extern char *v_str(int no); #endif /* !__VARIABLE__ */