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

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

?? multifld.c

?? clips源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號(hào):
   /*******************************************************/   /*      "C" Language Integrated Production System      */   /*                                                     */   /*             CLIPS Version 6.24  06/05/06            */   /*                                                     */   /*                  MULTIFIELD MODULE                  */   /*******************************************************//*************************************************************//* Purpose:                                                  *//*                                                           *//* Principal Programmer(s):                                  *//*      Gary D. Riley                                        *//*                                                           *//* Contributing Programmer(s):                               *//*      Brian L. Donnell                                     *//*                                                           *//* Revision History:                                         *//*                                                           *//*      6.24: Renamed BOOLEAN macro type to intBool.         *//*                                                           *//*            Corrected code to remove compiler warnings.    *//*                                                           *//*            Moved ImplodeMultifield from multifun.c.       *//*                                                           *//*************************************************************/#define _MULTIFLD_SOURCE_#include <stdio.h>#define _STDIO_INCLUDED_#include "setup.h"#include "constant.h"#include "memalloc.h"#include "envrnmnt.h"#include "evaluatn.h"#include "scanner.h"#include "router.h"#include "strngrtr.h"#include "utility.h"#if OBJECT_SYSTEM#include "object.h"#endif#include "multifld.h"/***************************************//* LOCAL INTERNAL FUNCTION DEFINITIONS *//***************************************/   static void                    DeallocateMultifieldData(void *);/***************************************************//* InitializeMultifieldData: Allocates environment *//*    data for multifield values.                  *//***************************************************/globle void InitializeMultifieldData(  void *theEnv)  {   AllocateEnvironmentData(theEnv,MULTIFIELD_DATA,sizeof(struct multifieldData),DeallocateMultifieldData);  }/*****************************************************//* DeallocateMultifieldData: Deallocates environment *//*    data for multifield values.                    *//*****************************************************/static void DeallocateMultifieldData(  void *theEnv)  {   struct multifield *tmpPtr, *nextPtr;       tmpPtr = MultifieldData(theEnv)->ListOfMultifields;   while (tmpPtr != NULL)     {      nextPtr = tmpPtr->next;      ReturnMultifield(theEnv,tmpPtr);      tmpPtr = nextPtr;     }  }/***********************************************************//* CreateMultifield2:       *//***********************************************************/globle void *CreateMultifield2(  void *theEnv,  long size)  {   struct multifield *theSegment;   long newSize = size;   if (size <= 0) newSize = 1;   theSegment = get_var_struct(theEnv,multifield,(long) sizeof(struct field) * (newSize - 1L));   theSegment->multifieldLength = size;   theSegment->depth = (short) EvaluationData(theEnv)->CurrentEvaluationDepth;   theSegment->busyCount = 0;   theSegment->next = NULL;   return((void *) theSegment);  }/*****************************************************************//* ReturnMultifield:                                             *//*****************************************************************/globle void ReturnMultifield(  void *theEnv,  struct multifield *theSegment)  {   unsigned long newSize;   if (theSegment == NULL) return;   if (theSegment->multifieldLength == 0) newSize = 1;   else newSize = theSegment->multifieldLength;   rtn_var_struct(theEnv,multifield,sizeof(struct field) * (newSize - 1),theSegment);  }/******************************//* MultifieldInstall:            *//******************************/globle void MultifieldInstall(  void *theEnv,  struct multifield *theSegment)  {   unsigned long length, i;   struct field *theFields;   if (theSegment == NULL) return;   length = theSegment->multifieldLength;   theSegment->busyCount++;   theFields = theSegment->theFields;   for (i = 0 ; i < length ; i++)     { AtomInstall(theEnv,theFields[i].type,theFields[i].value); }  }/******************************//* MultifieldDeinstall:       *//******************************/globle void MultifieldDeinstall(  void *theEnv,  struct multifield *theSegment)  {   unsigned long length, i;   struct field *theFields;   if (theSegment == NULL) return;   length = theSegment->multifieldLength;   theSegment->busyCount--;   theFields = theSegment->theFields;   for (i = 0 ; i < length ; i++)     { AtomDeinstall(theEnv,theFields[i].type,theFields[i].value); }  }/*******************************************************//* StringToMultifield:  Returns a multifield structure *//*    that represents the string sent as the argument. *//*******************************************************/globle struct multifield *StringToMultifield(  void *theEnv,  char *theString)  {   struct token theToken;   struct multifield *theSegment;   struct field *theFields;   unsigned long numberOfFields = 0;   struct expr *topAtom = NULL, *lastAtom = NULL, *theAtom;   /*====================================================*/   /* Open the string as an input source and read in the */   /* list of values to be stored in the multifield.     */   /*====================================================*/   OpenStringSource(theEnv,"multifield-str",theString,0);   GetToken(theEnv,"multifield-str",&theToken);   while (theToken.type != STOP)     {      if ((theToken.type == SYMBOL) || (theToken.type == STRING) ||          (theToken.type == FLOAT) || (theToken.type == INTEGER) ||          (theToken.type == INSTANCE_NAME))        { theAtom = GenConstant(theEnv,theToken.type,theToken.value); }      else        { theAtom = GenConstant(theEnv,STRING,EnvAddSymbol(theEnv,theToken.printForm)); }      numberOfFields++;      if (topAtom == NULL) topAtom = theAtom;      else lastAtom->nextArg = theAtom;      lastAtom = theAtom;      GetToken(theEnv,"multifield-str",&theToken);     }   CloseStringSource(theEnv,"multifield-str");   /*====================================================================*/   /* Create a multifield of the appropriate size for the values parsed. */   /*====================================================================*/   theSegment = (struct multifield *) EnvCreateMultifield(theEnv,numberOfFields);   theFields = theSegment->theFields;   /*====================================*/   /* Copy the values to the multifield. */   /*====================================*/   theAtom = topAtom;   numberOfFields = 0;   while (theAtom != NULL)     {      theFields[numberOfFields].type = theAtom->type;      theFields[numberOfFields].value = theAtom->value;      numberOfFields++;      theAtom = theAtom->nextArg;     }   /*===========================*/   /* Return the parsed values. */   /*===========================*/   ReturnExpression(theEnv,topAtom);   /*============================*/   /* Return the new multifield. */   /*============================*/   return(theSegment);  }  /**************************************************************//* EnvCreateMultifield: Creates a multifield of the specified *//*   size and adds it to the list of segments.                *//**************************************************************/globle void *EnvCreateMultifield(  void *theEnv,  long size)  {   struct multifield *theSegment;   long newSize;   if (size <= 0) newSize = 1;   else newSize = size;   theSegment = get_var_struct(theEnv,multifield,(long) sizeof(struct field) * (newSize - 1L));   theSegment->multifieldLength = size;   theSegment->depth = (short) EvaluationData(theEnv)->CurrentEvaluationDepth;   theSegment->busyCount = 0;   theSegment->next = NULL;   theSegment->next = MultifieldData(theEnv)->ListOfMultifields;   MultifieldData(theEnv)->ListOfMultifields = theSegment;   UtilityData(theEnv)->EphemeralItemCount++;   UtilityData(theEnv)->EphemeralItemSize += sizeof(struct multifield) + (sizeof(struct field) * newSize);   return((void *) theSegment);  }/*********************************************************************//* DOToMultifield:    *//*********************************************************************/globle void *DOToMultifield(  void *theEnv,  DATA_OBJECT *theValue)  {   struct multifield *dst, *src;   if (theValue->type != MULTIFIELD) return(NULL);   dst = (struct multifield *) CreateMultifield2(theEnv,(unsigned long) GetpDOLength(theValue));   src = (struct multifield *) theValue->value;   GenCopyMemory(struct field,dst->multifieldLength,              &(dst->theFields[0]),&(src->theFields[GetpDOBegin(theValue) - 1]));   return((void *) dst);  }/***********************************************************//* AddToMultifieldList:                                       *//***********************************************************/globle void AddToMultifieldList(  void *theEnv,  struct multifield *theSegment)  {   theSegment->depth = (short) EvaluationData(theEnv)->CurrentEvaluationDepth;   theSegment->next = MultifieldData(theEnv)->ListOfMultifields;   MultifieldData(theEnv)->ListOfMultifields = theSegment;   UtilityData(theEnv)->EphemeralItemCount++;   UtilityData(theEnv)->EphemeralItemSize += sizeof(struct multifield) + (sizeof(struct field) * theSegment->multifieldLength);  }/***********************************************************//* FlushMultifields:                                         *//***********************************************************/globle void FlushMultifields(  void *theEnv)  {   struct multifield *theSegment, *nextPtr, *lastPtr = NULL;   unsigned long newSize;   theSegment = MultifieldData(theEnv)->ListOfMultifields;   while (theSegment != NULL)     {      nextPtr = theSegment->next;      if ((theSegment->depth > EvaluationData(theEnv)->CurrentEvaluationDepth) && (theSegment->busyCount == 0))        {         UtilityData(theEnv)->EphemeralItemCount--;         UtilityData(theEnv)->EphemeralItemSize -= sizeof(struct multifield) +                              (sizeof(struct field) * theSegment->multifieldLength);         if (theSegment->multifieldLength == 0) newSize = 1;         else newSize = theSegment->multifieldLength;         rtn_var_struct(theEnv,multifield,sizeof(struct field) * (newSize - 1),theSegment);         if (lastPtr == NULL) MultifieldData(theEnv)->ListOfMultifields = nextPtr;         else lastPtr->next = nextPtr;        }      else        { lastPtr = theSegment; }      theSegment = nextPtr;     }  }/*********************************************************************//* DuplicateMultifield: Allocates a new segment and copies results from *//*                  old value to new - NOT put on ListOfMultifields!!   *//*********************************************************************/globle void DuplicateMultifield(  void *theEnv,  DATA_OBJECT_PTR dst,  DATA_OBJECT_PTR src)  {   dst->type = MULTIFIELD;   dst->begin = 0;   dst->end = src->end - src->begin;   dst->value = (void *) CreateMultifield2(theEnv,(unsigned long) dst->end + 1);   GenCopyMemory(struct field,dst->end + 1,&((struct multifield *) dst->value)->theFields[0],                                        &((struct multifield *) src->value)->theFields[src->begin]);  }/*********************************************************************//* CopyMultifield:    *//*********************************************************************/globle void *CopyMultifield(  void *theEnv,  struct multifield *src)  {   struct multifield *dst;   dst = (struct multifield *) CreateMultifield2(theEnv,src->multifieldLength);   GenCopyMemory(struct field,src->multifieldLength,&(dst->theFields[0]),&(src->theFields[0]));   return((void *) dst);  }/**********************************************************//* PrintMultifield: Prints out a multifield               *//**********************************************************/globle void PrintMultifield(  void *theEnv,  char *fileid,  struct multifield *segment,  long begin,  long end,  int printParens)  {   struct field *theMultifield;   int i;   theMultifield = segment->theFields;   if (printParens)     EnvPrintRouter(theEnv,fileid,"(");   i = begin;   while (i <= end)     {      PrintAtom(theEnv,fileid,theMultifield[i].type,theMultifield[i].value);      i++;      if (i <= end) EnvPrintRouter(theEnv,fileid," ");     }   if (printParens)     EnvPrintRouter(theEnv,fileid,")");  }/*****************************************************//* StoreInMultifield:  Append function for segments. *//*****************************************************/globle void StoreInMultifield(  void *theEnv,  DATA_OBJECT *returnValue,  EXPRESSION *expptr,  int garbageSegment)  {   DATA_OBJECT val_ptr;   DATA_OBJECT *val_arr;   struct multifield *theMultifield;   struct multifield *orig_ptr;   long start, end, i,j, k, argCount;   unsigned long seg_size;   argCount = CountArguments(expptr);   /*=========================================*/   /* If no arguments are given return a NULL */   /* multifield of length zero.              */   /*=========================================*/   if (argCount == 0)     {      SetpType(returnValue,MULTIFIELD);      SetpDOBegin(returnValue,1);      SetpDOEnd(returnValue,0);      if (garbageSegment) theMultifield = (struct multifield *) EnvCreateMultifield(theEnv,0L);      else theMultifield = (struct multifield *) CreateMultifield2(theEnv,0L);      SetpValue(returnValue,(void *) theMultifield);      return;     }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产aⅴ天堂久久| 亚洲欧美日韩一区二区三区在线观看 | 在线播放亚洲一区| 日韩欧美自拍偷拍| 国产精品无遮挡| 亚洲国产一区二区三区青草影视| 香蕉成人啪国产精品视频综合网 | 成人app下载| 欧美日韩在线播放三区| 日韩视频免费观看高清完整版在线观看 | 国产精品久久久久桃色tv| 亚洲综合视频网| 国内外成人在线视频| 色婷婷香蕉在线一区二区| 7777女厕盗摄久久久| 亚洲欧美自拍偷拍| 国产综合久久久久久鬼色| 91黄色激情网站| 国产欧美一区二区三区在线看蜜臀| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 亚洲精选在线视频| 看电视剧不卡顿的网站| 色婷婷激情久久| 欧美极品少妇xxxxⅹ高跟鞋| 欧美aaa在线| 欧美一区2区视频在线观看| 亚洲乱码国产乱码精品精可以看| 国产一区在线看| 欧美大片免费久久精品三p| 亚洲毛片av在线| 色综合久久66| 午夜欧美大尺度福利影院在线看| 91麻豆swag| 一区二区三区免费在线观看| 97精品久久久午夜一区二区三区| 国产欧美日产一区| 99国产精品国产精品久久| 中文字幕一区二区在线播放| 国产毛片一区二区| 亚洲精品久久久蜜桃| 成人国产精品免费观看视频| 久久久久久99精品| 99久久久久久99| 亚洲成av人片一区二区梦乃| 欧美精品一二三| 国产精品69毛片高清亚洲| 久久精品夜色噜噜亚洲a∨ | 欧美一级精品大片| 国产精品12区| 一区二区三区四区国产精品| 欧美性受xxxx| 国产成人综合精品三级| 亚洲综合一二区| 久久久99久久精品欧美| 成人免费视频免费观看| 亚洲一区av在线| 国产蜜臀97一区二区三区| 在线看不卡av| 成人一级片网址| 久久成人麻豆午夜电影| 一区二区成人在线视频 | 亚洲gay无套男同| 国产精品视频第一区| 欧美喷水一区二区| 91热门视频在线观看| 国产一区在线不卡| 日韩国产在线观看| 亚洲精品高清在线| 最新国产精品久久精品| 久久综合九色综合欧美亚洲| 欧美日韩国产一二三| 91蜜桃在线免费视频| 成人一区二区在线观看| 大陆成人av片| 成人精品免费视频| 丁香激情综合五月| 成人午夜激情视频| 色综合色综合色综合色综合色综合 | 日本视频中文字幕一区二区三区| 一区二区三区欧美日韩| 玉足女爽爽91| 婷婷综合五月天| 免费成人在线播放| 国产在线精品一区二区三区不卡| 韩国精品免费视频| hitomi一区二区三区精品| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 中文字幕 久热精品 视频在线 | 成人午夜激情在线| 在线视频观看一区| 91精品国产综合久久国产大片| 日韩欧美中文一区二区| 精品国产免费一区二区三区香蕉| 国产性色一区二区| 亚洲色图在线视频| 爽爽淫人综合网网站| 国产精品一区二区在线看| 99精品视频在线观看| 欧美一区二区三区不卡| 中文字幕免费一区| 蜜臀av一区二区在线免费观看| 成+人+亚洲+综合天堂| 欧美福利视频一区| 亚洲精品国产第一综合99久久| 国产精品自产自拍| 欧洲生活片亚洲生活在线观看| 精品国产麻豆免费人成网站| 一区二区三区成人在线视频| 美女网站在线免费欧美精品| eeuss国产一区二区三区| 日韩欧美国产1| 亚洲电影第三页| 91丨九色丨尤物| 国产午夜精品理论片a级大结局| 日本不卡视频一二三区| 欧美日韩国产影片| 亚洲成人第一页| 欧美久久婷婷综合色| 亚洲va中文字幕| 欧美性色aⅴ视频一区日韩精品| 国产精品传媒在线| caoporn国产精品| 亚洲女同ⅹxx女同tv| 成人v精品蜜桃久久一区| 亚洲国产精品黑人久久久| 国产精品一区专区| 欧美国产精品一区二区三区| 国产精品亚洲成人| 国产精品国产三级国产普通话三级| 国产一区二区三区四| 国产亚洲视频系列| gogo大胆日本视频一区| 亚洲欧洲性图库| 色妹子一区二区| 日韩成人一级片| 欧美成人vps| 色综合视频一区二区三区高清| 亚洲免费观看高清完整| 欧美日韩在线播放一区| 激情五月婷婷综合| 中文字幕av不卡| 欧美人狂配大交3d怪物一区| 久久精品国产亚洲a| 自拍偷拍欧美激情| 666欧美在线视频| 99精品视频在线观看免费| 日韩成人一区二区| 亚洲精品国产无天堂网2021| 欧美成人伊人久久综合网| 不卡av在线免费观看| 日本欧美加勒比视频| √…a在线天堂一区| 精品国产乱码久久久久久浪潮 | 欧美va天堂va视频va在线| 91香蕉视频mp4| 国产麻豆午夜三级精品| 亚洲二区视频在线| 亚洲精品视频观看| 日本一区二区电影| 亚洲精品在线免费播放| 欧美精品一二三四| 欧美精品乱人伦久久久久久| 不卡欧美aaaaa| 大陆成人av片| 不卡电影一区二区三区| 国产成人h网站| av一二三不卡影片| 国产v综合v亚洲欧| 成人免费av在线| 色综合中文综合网| 国产网站一区二区| 久久久久久毛片| 国产精品美女久久久久久久网站| 亚洲精品一区二区三区精华液 | 国产成人午夜精品5599| 丁香啪啪综合成人亚洲小说 | 久久久精品中文字幕麻豆发布| 日韩一区二区免费在线电影| 欧美成人a∨高清免费观看| 日韩欧美在线不卡| 国产日本欧洲亚洲| 亚洲一区二区中文在线| 亚洲国产视频网站| 精品一区二区三区av| 成人免费高清在线| 欧美军同video69gay| 亚洲精品一区二区三区精华液| 国产精品拍天天在线| 亚洲一区二区三区美女| 免费高清在线一区| 成人免费观看男女羞羞视频| 91高清视频在线| 久久综合五月天婷婷伊人| 成人免费在线视频| 久久国产精品色婷婷| 91看片淫黄大片一级在线观看| 欧美一区日本一区韩国一区| 日本一区二区在线不卡| 蜜臀精品久久久久久蜜臀| 91久久香蕉国产日韩欧美9色|