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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pval.c

?? asterisk 是一個很有知名度開源軟件
?? C
?? 第 1 頁 / 共 5 頁
字號:
/* * Asterisk -- An open source telephony toolkit. * * Copyright (C) 2006, Digium, Inc. * * Steve Murphy <murf@parsetree.com> * * See http://www.asterisk.org for more information about * the Asterisk project. Please do not directly contact * any of the maintainers of this project for assistance; * the project provides a web site, mailing lists and IRC * channels for your use. * * This program is free software, distributed under the terms of * the GNU General Public License Version 2. See the LICENSE file * at the top of the source tree. *//*! \file * * \brief Compile symbolic Asterisk Extension Logic into Asterisk extensions, version 2. *  */#include "asterisk.h"ASTERISK_FILE_VERSION(__FILE__, "$Revision: 168747 $")#include <sys/types.h>#include <stdlib.h>#include <unistd.h>#include <stdio.h>#include <string.h>#include <ctype.h>#include <errno.h>#include <regex.h>#include <sys/stat.h>#include "asterisk/pbx.h"#include "asterisk/config.h"#include "asterisk/module.h"#include "asterisk/logger.h"#include "asterisk/cli.h"#include "asterisk/app.h"#include "asterisk/channel.h"#include "asterisk/callerid.h"#include "asterisk/pval.h"#include "asterisk/ael_structs.h"#ifdef AAL_ARGCHECK#include "asterisk/argdesc.h"#endif#include "asterisk/utils.h"extern int localized_pbx_load_module(void);static char expr_output[2096];#define AST_PBX_MAX_STACK  128/* these functions are in ../ast_expr2.fl */static int errs, warns;static int notes;#ifdef STANDALONEstatic int extensions_dot_conf_loaded = 0;#endifstatic char *registrar = "pbx_ael";static pval *current_db;static pval *current_context;static pval *current_extension;static const char *match_context;static const char *match_exten;static const char *match_label;static int in_abstract_context;static int count_labels; /* true, put matcher in label counting mode */static int label_count;  /* labels are only meant to be counted in a context or exten */static int return_on_context_match;static pval *last_matched_label;struct pval *match_pval(pval *item);static void check_timerange(pval *p);static void check_dow(pval *DOW);static void check_day(pval *DAY);static void check_month(pval *MON);static void check_expr2_input(pval *expr, char *str);static int extension_matches(pval *here, const char *exten, const char *pattern);static void check_goto(pval *item);static void find_pval_goto_item(pval *item, int lev);static void find_pval_gotos(pval *item, int lev);static int check_break(pval *item);static int check_continue(pval *item);static void check_label(pval *item);static void check_macro_returns(pval *macro);static struct pval *find_label_in_current_context(char *exten, char *label, pval *curr_cont);static struct pval *find_first_label_in_current_context(char *label, pval *curr_cont);static void print_pval_list(FILE *fin, pval *item, int depth);static struct pval *find_label_in_current_extension(const char *label, pval *curr_ext);static struct pval *find_label_in_current_db(const char *context, const char *exten, const char *label);static pval *get_goto_target(pval *item);static int label_inside_case(pval *label);static void attach_exten(struct ael_extension **list, struct ael_extension *newmem);static void fix_gotos_in_extensions(struct ael_extension *exten);static pval *get_extension_or_contxt(pval *p);static pval *get_contxt(pval *p);static void remove_spaces_before_equals(char *str);/* PRETTY PRINTER FOR AEL:  ============================================================================= */static void print_pval(FILE *fin, pval *item, int depth){	int i;	pval *lp;		for (i=0; i<depth; i++) {		fprintf(fin, "\t"); /* depth == indentation */	}		switch ( item->type ) {	case PV_WORD:		fprintf(fin,"%s;\n", item->u1.str); /* usually, words are encapsulated in something else */		break;			case PV_MACRO:		fprintf(fin,"macro %s(", item->u1.str);		for (lp=item->u2.arglist; lp; lp=lp->next) {			if (lp != item->u2.arglist )				fprintf(fin,", ");			fprintf(fin,"%s", lp->u1.str);		}		fprintf(fin,") {\n");		print_pval_list(fin,item->u3.macro_statements,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n\n");		break;				case PV_CONTEXT:		if ( item->u3.abstract )			fprintf(fin,"abstract context %s {\n", item->u1.str);		else			fprintf(fin,"context %s {\n", item->u1.str);		print_pval_list(fin,item->u2.statements,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n\n");		break;				case PV_MACRO_CALL:		fprintf(fin,"&%s(", item->u1.str);		for (lp=item->u2.arglist; lp; lp=lp->next) {			if ( lp != item->u2.arglist )				fprintf(fin,", ");			fprintf(fin,"%s", lp->u1.str);		}		fprintf(fin,");\n");		break;				case PV_APPLICATION_CALL:		fprintf(fin,"%s(", item->u1.str);		for (lp=item->u2.arglist; lp; lp=lp->next) {			if ( lp != item->u2.arglist )				fprintf(fin,",");			fprintf(fin,"%s", lp->u1.str);		}		fprintf(fin,");\n");		break;				case PV_CASE:		fprintf(fin,"case %s:\n", item->u1.str);		print_pval_list(fin,item->u2.statements, depth+1);		break;				case PV_PATTERN:		fprintf(fin,"pattern %s:\n", item->u1.str);		print_pval_list(fin,item->u2.statements, depth+1);		break;				case PV_DEFAULT:		fprintf(fin,"default:\n");		print_pval_list(fin,item->u2.statements, depth+1);		break;				case PV_CATCH:		fprintf(fin,"catch %s {\n", item->u1.str);		print_pval_list(fin,item->u2.statements, depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n");		break;				case PV_SWITCHES:		fprintf(fin,"switches {\n");		print_pval_list(fin,item->u1.list,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n");		break;				case PV_ESWITCHES:		fprintf(fin,"eswitches {\n");		print_pval_list(fin,item->u1.list,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n");		break;				case PV_INCLUDES:		fprintf(fin,"includes {\n");		for (lp=item->u1.list; lp; lp=lp->next) {			for (i=0; i<depth+1; i++) {				fprintf(fin,"\t"); /* depth == indentation */			}			fprintf(fin,"%s", lp->u1.str); /* usually, words are encapsulated in something else */			if (lp->u2.arglist)				fprintf(fin,"|%s|%s|%s|%s", 						lp->u2.arglist->u1.str,						lp->u2.arglist->next->u1.str,						lp->u2.arglist->next->next->u1.str,						lp->u2.arglist->next->next->next->u1.str					);			fprintf(fin,";\n"); /* usually, words are encapsulated in something else */		}				for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"};\n");		break;				case PV_STATEMENTBLOCK:		fprintf(fin,"{\n");		print_pval_list(fin,item->u1.list, depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"}\n");		break;				case PV_VARDEC:		fprintf(fin,"%s=%s;\n", item->u1.str, item->u2.val);		break;				case PV_LOCALVARDEC:		fprintf(fin,"local %s=%s;\n", item->u1.str, item->u2.val);		break;				case PV_GOTO:		fprintf(fin,"goto %s", item->u1.list->u1.str);		if ( item->u1.list->next )			fprintf(fin,",%s", item->u1.list->next->u1.str);		if ( item->u1.list->next && item->u1.list->next->next )			fprintf(fin,",%s", item->u1.list->next->next->u1.str);		fprintf(fin,"\n");		break;				case PV_LABEL:		fprintf(fin,"%s:\n", item->u1.str);		break;				case PV_FOR:		fprintf(fin,"for (%s; %s; %s)\n", item->u1.for_init, item->u2.for_test, item->u3.for_inc);		print_pval_list(fin,item->u4.for_statements,depth+1);		break;				case PV_WHILE:		fprintf(fin,"while (%s)\n", item->u1.str);		print_pval_list(fin,item->u2.statements,depth+1);		break;				case PV_BREAK:		fprintf(fin,"break;\n");		break;				case PV_RETURN:		fprintf(fin,"return;\n");		break;				case PV_CONTINUE:		fprintf(fin,"continue;\n");		break;				case PV_RANDOM:	case PV_IFTIME:	case PV_IF:		if ( item->type == PV_IFTIME ) {						fprintf(fin,"ifTime ( %s|%s|%s|%s )\n", 					item->u1.list->u1.str, 					item->u1.list->next->u1.str, 					item->u1.list->next->next->u1.str, 					item->u1.list->next->next->next->u1.str					);		} else if ( item->type == PV_RANDOM ) {			fprintf(fin,"random ( %s )\n", item->u1.str );		} else			fprintf(fin,"if ( %s )\n", item->u1.str);		if ( item->u2.statements && item->u2.statements->next ) {			for (i=0; i<depth; i++) {				fprintf(fin,"\t"); /* depth == indentation */			}			fprintf(fin,"{\n");			print_pval_list(fin,item->u2.statements,depth+1);			for (i=0; i<depth; i++) {				fprintf(fin,"\t"); /* depth == indentation */			}			if ( item->u3.else_statements )				fprintf(fin,"}\n");			else				fprintf(fin,"};\n");		} else if (item->u2.statements ) {			print_pval_list(fin,item->u2.statements,depth+1);		} else {			if (item->u3.else_statements )				fprintf(fin, " {} ");			else				fprintf(fin, " {}; ");		}		if ( item->u3.else_statements ) {			for (i=0; i<depth; i++) {				fprintf(fin,"\t"); /* depth == indentation */			}			fprintf(fin,"else\n");			print_pval_list(fin,item->u3.else_statements, depth);		}		break;				case PV_SWITCH:		fprintf(fin,"switch( %s ) {\n", item->u1.str);		print_pval_list(fin,item->u2.statements,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"}\n");		break;				case PV_EXTENSION:		if ( item->u4.regexten )			fprintf(fin, "regexten ");		if ( item->u3.hints )			fprintf(fin,"hints(%s) ", item->u3.hints);				fprintf(fin,"%s => ", item->u1.str);		print_pval_list(fin,item->u2.statements,depth+1);		fprintf(fin,"\n");		break;				case PV_IGNOREPAT:		fprintf(fin,"ignorepat => %s;\n", item->u1.str);		break;				case PV_GLOBALS:		fprintf(fin,"globals {\n");		print_pval_list(fin,item->u1.statements,depth+1);		for (i=0; i<depth; i++) {			fprintf(fin,"\t"); /* depth == indentation */		}		fprintf(fin,"}\n");		break;	}}static void print_pval_list(FILE *fin, pval *item, int depth){	pval *i;		for (i=item; i; i=i->next) {		print_pval(fin, i, depth);	}}void ael2_print(char *fname, pval *tree){	FILE *fin = fopen(fname,"w");	if ( !fin ) {		ast_log(LOG_ERROR, "Couldn't open %s for writing.\n", fname);		return;	}	print_pval_list(fin, tree, 0);	fclose(fin);}/* EMPTY TEMPLATE FUNCS FOR AEL TRAVERSAL:  ============================================================================= */void traverse_pval_template(pval *item, int depth);void traverse_pval_item_template(pval *item, int depth);void traverse_pval_item_template(pval *item, int depth)/* depth comes in handy for a pretty print (indentation),														  but you may not need it */{	pval *lp;		switch ( item->type ) {	case PV_WORD:		/* fields: item->u1.str == string associated with this (word). */		break;			case PV_MACRO:		/* fields: item->u1.str     == name of macro		           item->u2.arglist == pval list of PV_WORD arguments of macro, as given by user				   item->u2.arglist->u1.str  == argument				   item->u2.arglist->next   == next arg				   item->u3.macro_statements == pval list of statements in macro body.		*/		for (lp=item->u2.arglist; lp; lp=lp->next) {				}		traverse_pval_item_template(item->u3.macro_statements,depth+1);		break;				case PV_CONTEXT:		/* fields: item->u1.str     == name of context		           item->u2.statements == pval list of statements in context body				   item->u3.abstract == int 1 if an abstract keyword were present		*/		traverse_pval_item_template(item->u2.statements,depth+1);		break;				case PV_MACRO_CALL:		/* fields: item->u1.str     == name of macro to call		           item->u2.arglist == pval list of PV_WORD arguments of macro call, as given by user				   item->u2.arglist->u1.str  == argument				   item->u2.arglist->next   == next arg		*/		for (lp=item->u2.arglist; lp; lp=lp->next) {		}		break;				case PV_APPLICATION_CALL:		/* fields: item->u1.str     == name of application to call		           item->u2.arglist == pval list of PV_WORD arguments of macro call, as given by user				   item->u2.arglist->u1.str  == argument				   item->u2.arglist->next   == next arg		*/		for (lp=item->u2.arglist; lp; lp=lp->next) {		}		break;				case PV_CASE:		/* fields: item->u1.str     == value of case		           item->u2.statements == pval list of statements under the case		*/		traverse_pval_item_template(item->u2.statements,depth+1);		break;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区在线播放视频 | 亚洲精品国产无天堂网2021 | 91美女片黄在线观看91美女| 国产乱妇无码大片在线观看| 成人激情电影免费在线观看| 欧美网站一区二区| 久久久夜色精品亚洲| 一区二区国产视频| 国产综合色在线| 色综合久久久久综合体| 91精品啪在线观看国产60岁| 国产精品视频免费| 午夜精品久久久久久久99水蜜桃 | 国产精品久久久一本精品 | 中文字幕精品在线不卡| 亚洲成人久久影院| 久久99国内精品| 日韩电影免费在线观看网站| 国产麻豆视频一区| 欧美视频中文字幕| 亚洲国产成人午夜在线一区| 午夜电影久久久| 99久久99久久精品国产片果冻| 欧美丰满嫩嫩电影| 亚洲精品免费在线观看| 狠狠色狠狠色综合| 日韩一区二区三区电影在线观看 | 欧美精品久久99| 综合中文字幕亚洲| 风间由美性色一区二区三区| 6080午夜不卡| 亚洲123区在线观看| 国内精品国产成人| 91精品国产综合久久福利| 精品国一区二区三区| 欧美一级理论片| 亚洲精品菠萝久久久久久久| 国产精品资源站在线| 91精品国产综合久久香蕉麻豆| 亚洲视频网在线直播| 成人小视频在线观看| 精品久久一二三区| 久久精品国产色蜜蜜麻豆| 欧美精品国产精品| 亚洲第一综合色| 欧美在线色视频| 亚洲久本草在线中文字幕| 成人精品视频一区| 久久久久97国产精华液好用吗| 亚洲伊人色欲综合网| 不卡一区二区三区四区| 欧美日本在线一区| 欧美国产一区在线| 视频一区在线视频| 91麻豆精品国产自产在线| 亚洲动漫第一页| 欧美日韩国产一二三| 亚洲国产欧美另类丝袜| 欧美特级限制片免费在线观看| 一区二区在线电影| 精品视频一区三区九区| 婷婷久久综合九色国产成人| 欧美高清性hdvideosex| 免费av成人在线| 久久久久久久精| 成人福利在线看| 亚洲另类在线一区| 欧美精选午夜久久久乱码6080| 日韩二区在线观看| 欧美精品一区二区在线观看| 国产精品一区二区在线观看网站| 国产精品伦一区二区三级视频| 99精品国产热久久91蜜凸| 亚洲激情一二三区| 欧美三级电影网| 五月天丁香久久| 欧美α欧美αv大片| 亚洲免费在线视频| 日韩欧美电影在线| 不卡av在线免费观看| 亚洲成人1区2区| 亚洲三级在线免费| 日韩欧美国产午夜精品| 成人国产精品免费观看视频| 石原莉奈在线亚洲二区| 国产日产欧产精品推荐色 | 色综合中文综合网| 韩国欧美一区二区| 亚洲欧美日韩一区二区三区在线观看| 91国产视频在线观看| 国产91在线看| 天使萌一区二区三区免费观看| 亚洲欧美在线观看| 日韩午夜精品电影| 色国产综合视频| 国产.欧美.日韩| 亚洲一区二区三区中文字幕| 中文字幕在线观看不卡| 日韩欧美激情一区| 在线免费观看视频一区| 国模一区二区三区白浆| 男女视频一区二区| 一区二区三区在线视频免费| 国产精品久久久久影视| 久久久久久免费毛片精品| 91.麻豆视频| 欧美亚洲免费在线一区| 国产不卡在线播放| 国产91综合网| 国模娜娜一区二区三区| 国内成人免费视频| 日韩高清一级片| 裸体健美xxxx欧美裸体表演| 亚洲成人在线免费| 国产精品久久久久久久久免费丝袜| 日韩欧美国产三级电影视频| 欧美日韩精品二区第二页| 欧美美女一区二区在线观看| 色999日韩国产欧美一区二区| 国产69精品久久久久777| 激情文学综合网| 久久精品国产精品亚洲精品| 日本欧美在线观看| 亚洲成人午夜影院| 国产精品日日摸夜夜摸av| 国产精品丝袜91| 亚洲国产精品t66y| 一区二区日韩av| 一区二区三区四区视频精品免费| 亚洲一二三专区| 一区二区三区四区国产精品| 中文字幕一区二区三区av| 国产精品久久久久aaaa樱花| 国产欧美精品一区| 一区二区成人在线视频| 亚洲乱码国产乱码精品精小说| 亚洲一二三四区| 日韩久久一区二区| 亚洲男人天堂av| 亚洲综合偷拍欧美一区色| 亚洲一区日韩精品中文字幕| 亚洲午夜激情av| 日本欧美肥老太交大片| 精品亚洲国产成人av制服丝袜| 国产一区二区中文字幕| 国产精品996| heyzo一本久久综合| 日本高清不卡一区| 精品日韩一区二区三区免费视频| 久久综合av免费| 亚洲毛片av在线| 午夜精品久久久久久久99樱桃| 日本美女一区二区三区| 精品一区二区在线播放| 高清免费成人av| 91国在线观看| 日韩一区二区电影| 欧美精品一区二区三区很污很色的 | 亚洲男同1069视频| 午夜伊人狠狠久久| 日韩电影在线一区二区| 成人app网站| 国产天堂亚洲国产碰碰| 免费欧美在线视频| 成人国产精品免费观看| 日韩欧美色综合网站| 亚洲国产一区二区在线播放| 成人免费毛片嘿嘿连载视频| 欧美三级资源在线| 国产亚洲精品aa| 久久99国内精品| 久久久精品天堂| 风间由美一区二区三区在线观看 | 成人国产在线观看| 色综合久久88色综合天天| 欧美一区二区三区免费大片| 久久综合九色综合久久久精品综合 | 97久久超碰国产精品| 秋霞影院一区二区| 一区二区三区毛片| 亚洲欧美激情一区二区| 国产乱对白刺激视频不卡| 欧洲视频一区二区| 国产欧美综合在线观看第十页 | 成人小视频免费观看| 欧美无乱码久久久免费午夜一区| 一色屋精品亚洲香蕉网站| 久久99国产精品尤物| 日韩三级电影网址| 亚洲成人一区二区| 欧美日韩另类一区| 国产精品久久久久影视| 亚洲午夜久久久久久久久电影网 | 成人av资源在线| 亚洲综合免费观看高清完整版在线 | 91麻豆精品国产91久久久久久久久 | 亚洲欧美成人一区二区三区| 国产乱码精品一区二区三区av| 欧美久久久久中文字幕| 偷拍亚洲欧洲综合|