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

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

?? sexp_ops.c

?? 機(jī)器人足球AI設(shè)計(jì)比賽
?? C
字號(hào):
/** SFSEXP: Small, Fast S-Expression Library version 1.0Written by Matthew Sottile (matt@lanl.gov)Copyright (2004). The Regents of the University of California. This materialwas produced under U.S. Government contract W-7405-ENG-36 for Los AlamosNational Laboratory, which is operated by the University of California forthe U.S. Department of Energy. The U.S. Government has rights to use,reproduce, and distribute this software. NEITHER THE GOVERNMENT NOR THEUNIVERSITY MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY LIABILITYFOR THE USE OF THIS SOFTWARE. If software is modified to produce derivativeworks, such modified software should be clearly marked, so as not to confuseit with the version available from LANL.Additionally, this program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2 of the License, or (at youroption) any later version. Accordingly, this program is distributed in thehope that it will be useful, but WITHOUT ANY WARRANTY; without even theimplied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Seethe GNU General Public License for more details.LA-CC-04-094**/#include <assert.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "sexp_ops.h"/** * Given an s-expression, find the atom inside of it with the  * value matchine name, and return a reference to it.  If the atom * doesn't occur inside start, return NULL. */sexp_t *find_sexp (const char *name, sexp_t * start){  sexp_t *temp;  if (start == NULL)    return NULL;  if (start->ty == SEXP_LIST)    {      temp = find_sexp (name, start->list);      if (temp == NULL)	return find_sexp (name, start->next);      else	return temp;    }  else    {      assert(start->val != NULL);      if (strcmp (start->val, name) == 0)	return start;      else	return find_sexp (name, start->next);    }  return NULL;			/* shouldn't get here */}/** * Breadth first search - look at ->next before ->list when seeing list * elements of an expression. */sexp_t *bfs_find_sexp(const char *str, sexp_t *sx) {  sexp_t *t = sx;  sexp_t *rt;    if (sx == NULL) return NULL;  while (t != NULL) {    if (t->ty == SEXP_VALUE) {      assert(t->val != NULL);      if (strcmp(t->val,str) == 0) {	return t;      }    }     t = t->next;  }  t = sx;  while (t != NULL) {    if (t->ty == SEXP_LIST) {      rt = bfs_find_sexp(str,t->list);      if (rt != NULL) return rt;    }        t = t->next;  }  return NULL;}/** * Give the length of a s-expression list. */int sexp_list_length(const sexp_t *sx) {  int len = 0;  const sexp_t *t;  if (sx == NULL) return 0;  if (sx->ty == SEXP_VALUE) return 1;  t = sx->list;    while (t != NULL) {    len++;    t = t->next;  }  return len;}/** * Copy an s-expression. */sexp_t *copy_sexp(const sexp_t *s) {  sexp_t *snew;  if (s == NULL) return NULL;  snew = sexp_t_allocate();  assert(snew != NULL);  snew->ty = s->ty;  if (snew->ty == SEXP_VALUE) {    snew->aty = s->aty;    assert(s->val != NULL);    /** allocate space **/    snew->val = (char *)sexp_malloc(sizeof(char)*s->val_used);    assert(snew->val != NULL);    snew->val_used = snew->val_allocated = s->val_used;    strcpy(snew->val,s->val);    snew->list = NULL;  } else {    snew->list = copy_sexp(s->list);  }    snew->next = copy_sexp(s->next);  return snew;}/** * Cons: Concatenate two s-expressions together, without references to the * originals. */sexp_t *cons_sexp(sexp_t *r, sexp_t *l) {  sexp_t *cr, *cl, *t;  cr = copy_sexp(r);  if (cr->ty == SEXP_VALUE) {    fprintf(stderr,"Cannot cons non-lists.\n");    destroy_sexp(cr);    return NULL;  } else {    t = cr->list;    while (t != NULL && t->next != NULL) t = t->next;  }  cl = copy_sexp(l);  if (cl->ty == SEXP_LIST) {    if (t != NULL && cl != NULL) {      t->next = cl->list;      /* free(cl); */ /* memory leak fix: SMJ, 4/24/2002 */      sexp_t_deallocate(cl);    }  } else {    fprintf(stderr,"Cannot cons non-lists.\n");    destroy_sexp(cr);    destroy_sexp(cl);    return NULL;  }  return cr;}/** * car: similar to head, except this is a copy and not just a reference. */sexp_t *car_sexp(sexp_t *s) {  sexp_t *cr, *ocr, *tmp;    /* really dumb - calling on null */  if (s == NULL) {    fprintf(stderr,"car called on null sexpr.\n");    return NULL;  }    /* less dumb - calling on an atom */  if (s->ty == SEXP_VALUE) {    fprintf(stderr,"car called on an atom.\n");    return NULL;  }    ocr = sexp_t_allocate();  assert(ocr != NULL);  ocr->ty = SEXP_LIST;  ocr->next = NULL;    /* allocate the new sexp_t */  /* cr = (sexp_t *)malloc(sizeof(sexp_t)); */  /* this stuff is pushed down into the conditional below */  /*  cr = sexp_t_allocate();  assert(cr != NULL);  ocr->list = cr;  */  /* copy the head of the sexpr */  if (s->list->ty == SEXP_VALUE) {    tmp = s->list->next;    s->list->next = NULL;    ocr->list = copy_sexp(s->list);    s->list->next = tmp;  } else {    cr = sexp_t_allocate();    assert(cr != NULL);    ocr->list = cr;    cr->ty = SEXP_LIST;    cr->next = NULL;    cr->list = copy_sexp(s->list->list);  }    return ocr;}/** * cdr: similar to tail, except this is a copy and not just a reference. */sexp_t *cdr_sexp(sexp_t *s) {  sexp_t *cd;    /* really dumb */  if (s == NULL) {    fprintf(stderr,"cdr called on null.\n");    return NULL;  }    /* less dumb */  if (s->ty != SEXP_LIST) {    fprintf(stderr,"cdr called on atom.\n");    return NULL;  }  /* if the list looks like () */  if (s->list == NULL) return NULL;  /* if the list looks like (a) */  if (s->list->list == NULL) return NULL;  /* here we know list looks like (a ...) where ... is something. */  /* cd = (sexp_t *)malloc(sizeof(sexp_t)); */  cd = sexp_t_allocate();  assert(cd != NULL);    cd->ty = SEXP_LIST;  cd->next = NULL;  cd->list = copy_sexp(s->list->next);  return cd;}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美熟乱第一页| 国产凹凸在线观看一区二区| 91猫先生在线| 久久66热re国产| 亚洲精品成人悠悠色影视| 精品奇米国产一区二区三区| 91在线视频观看| 国产乱国产乱300精品| 午夜亚洲福利老司机| 中文字幕亚洲欧美在线不卡| 欧美精品一区在线观看| 成人污视频在线观看| 另类小说视频一区二区| 亚洲国产精品一区二区久久| 欧美日韩国产精选| 激情综合色综合久久| 国产香蕉久久精品综合网| 91网站在线播放| 爽好久久久欧美精品| 亚洲人成亚洲人成在线观看图片| 在线观看www91| 美女精品一区二区| 国产精品第13页| 国产亚洲精品aa| 久久这里只有精品首页| 91丨porny丨户外露出| 高清久久久久久| 国产69精品久久777的优势| 亚洲精品乱码久久久久久久久| 亚洲国产精品ⅴa在线观看| 久久久久久久久一| 欧美亚洲一区二区在线| 91在线国内视频| 蜜芽一区二区三区| 免费看日韩a级影片| 国产精品久久久久9999吃药| 欧美日韩精品系列| 欧美性猛交xxxx黑人交| 色综合天天综合网天天看片| av中文字幕在线不卡| 日韩二区三区在线观看| 日韩成人午夜精品| 亚洲欧洲成人精品av97| 国产精品久久免费看| 国产精品区一区二区三区| 欧美情侣在线播放| 91老司机福利 在线| 色综合色综合色综合| 精品写真视频在线观看| 国产精品资源在线| 99精品偷自拍| 欧美日韩精品一区二区三区四区| 成人国产精品免费观看视频| 成人免费av在线| 91福利资源站| 制服丝袜亚洲播放| 色妞www精品视频| 欧美日本一区二区| 精品乱人伦小说| 国产精品色婷婷| 国产视频亚洲色图| 亚洲精品大片www| 麻豆中文一区二区| 成人免费视频免费观看| 91国内精品野花午夜精品| 成人永久免费视频| 国产乱妇无码大片在线观看| 成人av影院在线| 91精品国产品国语在线不卡| 久久品道一品道久久精品| 亚洲欧洲www| 国产精品美女久久久久高潮| 伊人婷婷欧美激情| 狠狠色丁香久久婷婷综合_中| 成人免费不卡视频| 成人动漫一区二区三区| 国产伦精品一区二区三区在线观看| 日韩制服丝袜av| 日韩电影网1区2区| 丝袜国产日韩另类美女| 一区二区成人在线| 精品一区二区三区香蕉蜜桃 | 中文字幕一区三区| 亚洲国产精品传媒在线观看| 精品国产一二三区| 一区二区三区欧美日韩| 久久精品99国产精品| 91首页免费视频| 亚洲精品一区二区三区99| 一区二区三区免费在线观看| 亚洲精品乱码久久久久久久久| 日本中文一区二区三区| 日本成人在线网站| 成人免费视频一区二区| 日韩色在线观看| 欧美精品一区二区三区四区| 国产精品国产三级国产有无不卡 | 欧美高清在线视频| 免播放器亚洲一区| 欧美亚日韩国产aⅴ精品中极品| 欧美主播一区二区三区| 欧美日韩一级大片网址| 国产精品理论片| 国产一区视频在线看| 粉嫩一区二区三区在线看| 制服丝袜成人动漫| 久久久99精品久久| 喷水一区二区三区| 国产一区二区三区黄视频 | 中文字幕亚洲一区二区va在线| 亚洲女同一区二区| 国产河南妇女毛片精品久久久| 成人综合在线网站| 精品国产制服丝袜高跟| 三级久久三级久久久| 在线免费精品视频| 一区二区三区欧美| 美女视频网站久久| 91精品国产91综合久久蜜臀| 精品国产乱码久久久久久久| 九九精品一区二区| 日韩亚洲欧美在线观看| 视频一区二区国产| 欧美二区乱c少妇| 亚洲自拍偷拍九九九| 蜜桃91丨九色丨蝌蚪91桃色| 欧美日本一道本| 日本中文在线一区| 成人网在线播放| 国产精品全国免费观看高清| 亚洲国产另类av| 91成人免费电影| 国产日韩欧美一区二区三区乱码 | 欧美亚洲国产一区在线观看网站| 国产精品狼人久久影院观看方式| 成人午夜视频在线| 国产精品嫩草99a| 日韩激情视频网站| 99在线热播精品免费| 欧美一区二区三区免费在线看| 亚洲一二三专区| 国产精品1区2区3区| 精品成人a区在线观看| 亚洲综合区在线| 欧美亚洲国产bt| 国产精品久久久久aaaa樱花| 免费三级欧美电影| 在线视频你懂得一区| 亚洲国产va精品久久久不卡综合| 欧美日韩高清在线| 麻豆国产欧美日韩综合精品二区| 91精品国产麻豆国产自产在线| 亚洲视频一二三| 成人中文字幕在线| 亚洲视频免费观看| 国产乱人伦偷精品视频免下载| 国产欧美一区二区三区在线老狼| 免费在线观看一区| 国产欧美1区2区3区| 成人97人人超碰人人99| 精品久久久久一区| heyzo一本久久综合| 亚洲国产中文字幕| wwwwxxxxx欧美| 九色综合狠狠综合久久| 欧美国产国产综合| 国产东北露脸精品视频| 日韩精品一区二区三区swag| 亚洲国产欧美一区二区三区丁香婷| 91精品国产麻豆国产自产在线| 国产福利一区二区三区视频 | 亚洲激情图片小说视频| 制服.丝袜.亚洲.中文.综合| 国产精品一区二区x88av| 亚洲欧洲另类国产综合| 在线91免费看| 国产宾馆实践打屁股91| 亚洲成人在线观看视频| 国产成人精品亚洲日本在线桃色| 欧美一区二区三区影视| 婷婷激情综合网| 欧美精品在欧美一区二区少妇| 国产一区二区三区黄视频| 久久久久成人黄色影片| 国产成人免费视频一区| 国产日韩一级二级三级| 极品少妇xxxx偷拍精品少妇| 日韩一区二区三区电影在线观看| 日韩经典中文字幕一区| 国产精品网站一区| av高清久久久| 一卡二卡三卡日韩欧美| 精品入口麻豆88视频| 国模无码大尺度一区二区三区| 精品播放一区二区| 欧美日韩精品一区二区三区四区 | 久久99国产精品久久99| 亚洲欧美成人一区二区三区| 久久影院视频免费| 国产精品911|