亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? conscomp.c

?? clips源代碼
?? C
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  06/04/06            */   /*                                                     */   /*              CONSTRUCT COMPILER MODULE              */   /*******************************************************//*************************************************************//* Purpose: Provides core routines for the constructs-to-c   *//*   command.                                                *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*      Brian L. Donnell                                     *//*      Barry Cameron                                        *//*                                                           *//* Contributing Programmer(s):                               *//*                                                           *//* Revision History:                                         *//*      6.23: Modifications to use the system constant       *//*            FILENAME_MAX to check file name lengths.       *//*            DR0856                                         *//*                                                           *//*            Corrected compilation errors for files         *//*            generated by constructs-to-c. DR0861           *//*                                                           *//*      6.24: Used EnvClear rather than Clear in             *//*            InitCImage initialization code.                *//*                                                           *//*            Added environment parameter to GenClose.       *//*            Added environment parameter to GenOpen.        *//*                                                           *//*            Removed SHORT_LINK_NAMES code as this option   *//*            is no longer supported.                        *//*                                                           *//*            Support for run-time programs directly passing *//*            the hash tables for initialization.            *//*                                                           *//*************************************************************/#define _CONSCOMP_SOURCE_#include "setup.h"#if CONSTRUCT_COMPILER && (! RUN_TIME)#include <stdio.h>#define _STDIO_INCLUDED_#include <stdlib.h>#include <string.h>#include "symbol.h"#include "memalloc.h"#include "constant.h"#include "exprnpsr.h"#include "cstrccom.h"#include "constrct.h"#include "argacces.h"#include "cstrncmp.h"#include "router.h"#include "sysdep.h"#include "utility.h"#include "modulcmp.h"#include "envrnmnt.h"#if DEFRULE_CONSTRUCT#include "network.h"#endif#if DEFFUNCTION_CONSTRUCT#include "dffnxcmp.h"#endif#if DEFTEMPLATE_CONSTRUCT#include "tmpltcmp.h"#endif#if DEFGLOBAL_CONSTRUCT#include "globlcmp.h"#endif#if DEFGENERIC_CONSTRUCT#include "genrccmp.h"#endif#if OBJECT_SYSTEM#include "objcmp.h"#endif#include "conscomp.h"/***************//* DEFINITIONS *//***************/#define FSIZE 80/**********************************************//* CONSTRUCT CODES DEFINITIONS: The codes F,  *//*   I, B, S, E, P, L, and C are not included *//*   because those are already taken.         *//*                                            *//*   B: BitMap hash nodes                     *//*   C: Constraint hash nodes                 *//*   E: Expression hash nodes                 *//*   F: Float hash nodes                      *//*   I: Integer hash nodes                    *//*   L: Bitmaps                               *//*   P: Functions                             *//*   S: Symbol hash nodes                     *//**********************************************/#define PRIMARY_CODES   "ADGHJKMNOQRTUVWXYZ"#define PRIMARY_LEN     18#define SECONDARY_CODES "ABCDEFGHIJKLMNOPQRSTUVWXYZ"#define SECONDARY_LEN   26/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/   void                               ConstructsToCCommand(void *);   static int                         ConstructsToC(void *,char *,long long,long long);   static void                        WriteFunctionExternDeclarations(void *,FILE *);   static int                         FunctionsToCode(void *theEnv,char *);   static int                         WriteInitializationFunction(void *,char *);   static void                        DumpExpression(void *,struct expr *);   static void                        MarkConstruct(void *,struct constructHeader *,void *);   static void                        HashedExpressionsToCode(void *);   static void                        DeallocateConstructCompilerData(void *);/**********************************************************//* InitializeConstructCompilerData: Allocates environment *//*    data for the constructs-to-c command.               *//**********************************************************/globle void InitializeConstructCompilerData(  void *theEnv)  {   AllocateEnvironmentData(theEnv,CONSTRUCT_COMPILER_DATA,sizeof(struct constructCompilerData),DeallocateConstructCompilerData);      ConstructCompilerData(theEnv)->MaxIndices = 2000;   ConstructCompilerData(theEnv)->CodeGeneratorCount = 0;  }  /************************************************************//* DeallocateConstructCompilerData: Deallocates environment *//*    data for the constructs-to-c command.                 *//************************************************************/static void DeallocateConstructCompilerData(  void *theEnv)  {   struct CodeGeneratorItem *tmpPtr, *nextPtr;   int i;      tmpPtr = ConstructCompilerData(theEnv)->ListOfCodeGeneratorItems;   while (tmpPtr != NULL)     {      nextPtr = tmpPtr->next;      for (i = 0; i < tmpPtr->arrayCount ; i++)        { rm(theEnv,tmpPtr->arrayNames[i],strlen(tmpPtr->arrayNames[i]) + 1); }              if (tmpPtr->arrayCount != 0)        { rm(theEnv,tmpPtr->arrayNames,sizeof(char *) * tmpPtr->arrayCount); }            rtn_struct(theEnv,CodeGeneratorItem,tmpPtr);      tmpPtr = nextPtr;     }  }/**********************************************//* ConstructsToCCommand: H/L access routine   *//*   for the constructs-to-c command.         *//**********************************************/globle void ConstructsToCCommand(  void *theEnv)  {   char *fileName;   DATA_OBJECT theArg;   int argCount;   long long id, max;    int nameLength;#if VAX_VMS || IBM_MSC || IBM_TBC   int i;#endif   /*============================================*/   /* Check for appropriate number of arguments. */   /*============================================*/   if ((argCount = EnvArgRangeCheck(theEnv,"constructs-to-c",2,3)) == -1) return;   /*====================================================*/   /* Get the name of the file in which to place C code. */   /*====================================================*/   if (EnvArgTypeCheck(theEnv,"constructs-to-c",1,SYMBOL_OR_STRING,&theArg) == FALSE)     { return; }   fileName = DOToString(theArg);   nameLength = (int) strlen(fileName);   /*================================*/   /* File names for the VAX and IBM */   /* PCs can't contain a period.    */   /*================================*/#if VAX_VMS || IBM_MSC || IBM_TBC   for (i = 0 ; *(fileName+i) ; i++)     {      if (*(fileName+i) == '.')        {         PrintErrorID(theEnv,"CONSCOMP",1,FALSE);         EnvPrintRouter(theEnv,WERROR,"Invalid file name ");         EnvPrintRouter(theEnv,WERROR,fileName);         EnvPrintRouter(theEnv,WERROR," contains \'.\'\n");         return;        }      }#endif   /*==========================================================*/   /* The maximum file name size that can be passed into fopen */   /* is specified by FILENAME_MAX. Assume that the most       */   /* characters that will be appended to the file prefix will */   /* be 20 and check that the prefix plus the additional      */   /* characters is less than the supported maximum.           */   /*==========================================================*/   if ((nameLength + 20) > FILENAME_MAX)     {      PrintErrorID(theEnv,"CONSCOMP",1,FALSE);      EnvPrintRouter(theEnv,WERROR,"Aborting because the base file name may cause the fopen maximum of ");      PrintLongInteger(theEnv,WERROR,FILENAME_MAX);      EnvPrintRouter(theEnv,WERROR," to be violated when file names are generated.\n");      return;     }   /*===========================================*/   /* If the base file name is greater than 3   */   /* characters, issue a warning that the file */   /* name lengths may exceed what is allowed   */   /* under some operating systems.             */   /*===========================================*/   if (nameLength > 3)     {      PrintWarningID(theEnv,"CONSCOMP",1,FALSE);      EnvPrintRouter(theEnv,WWARNING,"Base file name exceeds 3 characters.\n");      EnvPrintRouter(theEnv,WWARNING,"  This may cause files to be overwritten if file name length\n");      EnvPrintRouter(theEnv,WWARNING,"  is limited on your platform.\n");     }   /*====================================*/   /* Get the runtime image ID argument. */   /*====================================*/   if (EnvArgTypeCheck(theEnv,"constructs-to-c",2,INTEGER,&theArg) == FALSE)     { return; }   id = DOToLong(theArg);   if (id < 0)     {      ExpectedTypeError1(theEnv,"constructs-to-c",2,"positive integer");      return;     }   /*===========================================*/   /* Get the maximum number of data structures */   /* to store per file argument (if supplied). */   /*===========================================*/   if (argCount == 3)     {      if (EnvArgTypeCheck(theEnv,"constructs-to-c",3,INTEGER,&theArg) == FALSE)        { return; }      max = DOToLong(theArg);      if (max < 0)        {         ExpectedTypeError1(theEnv,"constructs-to-c",3,"positive integer");         return;        }     }   else     { max = 10000; }   /*============================*/   /* Call the driver routine to */   /* generate the C code.       */   /*============================*/   ConstructsToC(theEnv,fileName,id,max);  }/***************************************//* ConstructsToC: C access routine for *//*   the constructs-to-c command.      *//***************************************/static int ConstructsToC(  void *theEnv,  char *fileName,  long long theImageID,  long long max)  {   char fname[FILENAME_MAX+1];   int fileVersion;   struct CodeGeneratorItem *cgPtr;   /*===============================================*/   /* Set the global MaxIndices variable indicating */   /* the maximum number of data structures to save */   /* in each file.                                 */   /*===============================================*/   ConstructCompilerData(theEnv)->MaxIndices = (int) max; /* TBD */   /*==================================*/   /* Call the list of functions to be */   /* executed before generating code. */   /*==================================*/   for (cgPtr = ConstructCompilerData(theEnv)->ListOfCodeGeneratorItems;        cgPtr != NULL;        cgPtr = cgPtr->next)     { if (cgPtr->beforeFunction != NULL) (*cgPtr->beforeFunction)(theEnv); }   /*=================================================*/   /* Do a periodic cleanup without using heuristics  */   /* to get rid of as much garbage as possible so    */   /* that it isn't written out as C data structures. */   /*=================================================*/   PeriodicCleanup(theEnv,FALSE,FALSE);   /*=====================================*/   /* Initialize some global information. */   /*=====================================*/   ConstructCompilerData(theEnv)->FilePrefix = fileName;   ConstructCompilerData(theEnv)->ImageID = (int) theImageID; /* TBD */   ConstructCompilerData(theEnv)->ExpressionFP = NULL;   ConstructCompilerData(theEnv)->ExpressionVersion = 1;   ConstructCompilerData(theEnv)->ExpressionHeader = TRUE;   ConstructCompilerData(theEnv)->ExpressionCount = 0;   /*=====================================================*/   /* Open a header file for dumping general information. */   /*=====================================================*/   gensprintf(fname,"%s.h",fileName);   if ((ConstructCompilerData(theEnv)->HeaderFP = GenOpen(theEnv,fname,"w")) == NULL)     {      OpenErrorMessage(theEnv,"constructs-to-c",fname);      return(0);     }   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#ifndef _CONSTRUCT_COMPILER_HEADER_\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#define _CONSTRUCT_COMPILER_HEADER_\n\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#include <stdio.h>\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#include \"setup.h\"\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#include \"expressn.h\"\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#include \"extnfunc.h\"\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"#include \"%s\"\n",API_HEADER);   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"\n#define VS (void *)\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"\n");   /*=========================================================*/   /* Give extern declarations for user and system functions. */   /*=========================================================*/   WriteFunctionExternDeclarations(theEnv,ConstructCompilerData(theEnv)->HeaderFP);   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"\n#endif\n\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"/****************************/\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"/* EXTERN ARRAY DEFINITIONS */\n");   fprintf(ConstructCompilerData(theEnv)->HeaderFP,"/****************************/\n\n");   /*============================================*/   /* Open a file for dumping fixup information. */   /*============================================*/   gensprintf(fname,"%s_init.c",fileName);   if ((ConstructCompilerData(theEnv)->FixupFP = GenOpen(theEnv,fname,"w")) == NULL)     {      OpenErrorMessage(theEnv,"constructs-to-c",fname);      return(0);     }

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线视频综合导航| 亚洲成人一区在线| 成人免费高清在线| 国产亚洲综合在线| 国产激情视频一区二区在线观看| 久久久综合激的五月天| 国产成人av电影在线播放| 中文字幕av一区二区三区免费看| jiyouzz国产精品久久| 亚洲美女屁股眼交| 欧美日本一区二区| 久久 天天综合| 国产精品久久久久久久久久久免费看 | 午夜精品福利一区二区蜜股av | 色偷偷成人一区二区三区91| 依依成人综合视频| 欧美日韩精品一区二区在线播放| 日韩国产一二三区| 国产日韩精品一区二区三区| 成人av电影在线网| 香蕉成人伊视频在线观看| 欧美不卡一二三| 不卡av在线免费观看| 亚洲成人第一页| 欧美成人一区二区| 91女厕偷拍女厕偷拍高清| 亚洲成av人片| 国产午夜精品一区二区三区视频| 91污片在线观看| 麻豆国产欧美日韩综合精品二区| 欧美激情资源网| 欧美日韩国产影片| 成人小视频免费观看| 亚洲国产毛片aaaaa无费看| 久久一夜天堂av一区二区三区| 波多野结衣在线一区| 视频一区欧美日韩| 18成人在线观看| 日韩欧美一区二区视频| 一本色道久久综合精品竹菊| 老司机午夜精品| 亚洲免费av网站| 久久精品人人做人人综合 | 7777精品伊人久久久大香线蕉的| 久久成人综合网| 欧美国产乱子伦| 欧美日韩精品一区二区三区蜜桃| 精品一区二区三区久久| 亚洲午夜在线电影| 国产精品网曝门| 精品精品欲导航| 亚洲色图一区二区| 国产日产欧美一区二区三区 | 日韩西西人体444www| 91小视频在线免费看| 国产在线精品不卡| 日本视频在线一区| 亚洲一二三四久久| 国产精品久久久久7777按摩| 精品成人一区二区| 7777精品伊人久久久大香线蕉的| 欧洲色大大久久| 99re8在线精品视频免费播放| 国产乱码精品一区二区三区av | 精品久久人人做人人爰| 欧美日韩国产在线观看| 欧美性受xxxx黑人xyx性爽| 成人avav在线| 成人毛片老司机大片| 国产精品一区二区三区99| 另类小说一区二区三区| 蜜桃av一区二区| 久久国产视频网| 紧缚捆绑精品一区二区| 奇米影视一区二区三区小说| 日韩成人午夜精品| 日韩av电影免费观看高清完整版 | 色婷婷综合激情| av在线不卡网| av资源站一区| 一本色道久久综合精品竹菊 | 欧美区在线观看| 欧美日韩精品综合在线| 91 com成人网| 精品日本一线二线三线不卡| 精品美女在线播放| 久久综合999| 欧美高清在线视频| 国产精品夫妻自拍| 亚洲免费在线视频| 亚洲一区影音先锋| 天天色综合成人网| 美女在线一区二区| 国产尤物一区二区在线| 成人激情免费视频| 色8久久精品久久久久久蜜| 欧美性视频一区二区三区| 7777女厕盗摄久久久| 日韩视频在线观看一区二区| 国产亚洲va综合人人澡精品| 中文字幕日韩av资源站| 亚洲一区在线播放| 美国av一区二区| 成人听书哪个软件好| 91国产丝袜在线播放| 91精品国产综合久久香蕉麻豆| 精品国产免费久久| 亚洲欧洲精品一区二区三区| 午夜精品久久久久久不卡8050| 九九九精品视频| 97aⅴ精品视频一二三区| 欧美日韩www| 国产网红主播福利一区二区| 一区二区三区四区不卡视频 | 亚洲成人av资源| 狠狠色狠狠色合久久伊人| 波多野结衣精品在线| 欧美一区午夜视频在线观看| 国产日本亚洲高清| 日韩中文字幕不卡| 成人午夜免费av| 欧美一级片在线| 亚洲特级片在线| 粉嫩在线一区二区三区视频| 精品婷婷伊人一区三区三| 精品国产乱子伦一区| 亚洲精品高清在线观看| 国产黑丝在线一区二区三区| 欧洲中文字幕精品| 国产性天天综合网| 美女性感视频久久| 色婷婷久久一区二区三区麻豆| 精品久久久久久无| 亚洲国产精品嫩草影院| 99久久精品免费观看| 精品国产伦一区二区三区观看体验 | 欧美电影在哪看比较好| 国产精品久久久久久久久免费樱桃 | 欧美三级电影在线看| 国产三级精品三级在线专区| 日韩精品电影在线| 日本韩国精品一区二区在线观看| 久久久久久久久岛国免费| 天堂蜜桃91精品| 日本精品一区二区三区高清 | 精品国产污网站| 首页亚洲欧美制服丝腿| 日本精品视频一区二区三区| 国产调教视频一区| 九九热在线视频观看这里只有精品| 欧美影院一区二区三区| 亚洲欧美综合另类在线卡通| 国产成人亚洲综合a∨婷婷 | 欧美日韩一区二区三区视频| 国产精品电影一区二区三区| 国产成人综合视频| 久久综合久久综合久久| 免费成人你懂的| 制服丝袜亚洲色图| 午夜精品成人在线| 欧美亚洲综合久久| 夜夜嗨av一区二区三区网页| 91一区二区三区在线播放| 国产精品视频一二三| av亚洲精华国产精华精华| 国产精品人妖ts系列视频| 丁香啪啪综合成人亚洲小说| 国产丝袜美腿一区二区三区| 国产成人高清在线| 国产精品乱子久久久久| 99久久免费视频.com| 国产精品久99| 色婷婷综合在线| 午夜日韩在线观看| 制服视频三区第一页精品| 日本 国产 欧美色综合| 日韩精品一区二区三区在线观看| 久久精品国产**网站演员| 精品电影一区二区三区| 丁香婷婷综合色啪| 亚洲视频中文字幕| 欧美中文字幕不卡| 午夜亚洲福利老司机| 日韩欧美激情一区| 老司机午夜精品99久久| 国产欧美日韩不卡| 99re66热这里只有精品3直播| 亚洲欧美日韩国产综合| 欧美三级中文字| 奇米在线7777在线精品| 久久女同精品一区二区| zzijzzij亚洲日本少妇熟睡| 一个色综合av| 日韩一级黄色大片| 风间由美一区二区三区在线观看 | 欧美日韩一区不卡| 免费观看91视频大全| 国产肉丝袜一区二区| 欧日韩精品视频| www.日韩av|