⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn1c_internal.h

📁 RSA加密/解密算法源码 asn1c-0.9.12
💻 H
字号:
#ifndef	_ASN1_COMPILER_INTERNAL_H_#define	_ASN1_COMPILER_INTERNAL_H_#ifdef	HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>#include <stdlib.h>#include <string.h>		/* for strlen(3) and memset(3) */#include <ctype.h>		/* for isalnum(3) */#include <sys/types.h>		/* for fstat(2) */#include <stdarg.h>#include <errno.h>#include <assert.h>#ifdef	HAVE_SYS_STAT_H#include <sys/stat.h>		/* for fstat(2) */#endif#ifdef	HAVE_UNISTD_H#include <unistd.h>		/* for unlink(2) */#endif#ifdef	WIN32#include <io.h>#define	open	_open#define	close	_close#define	alloca		_alloca#define	snprintf	_snprintf#define	vsnprintf	_vsnprintf#else#include <fcntl.h>		/* for open(2) */#include <glob.h>		/* for glob(3) */#endif#ifdef	HAVE_SYS_PARAM_H#include <sys/param.h>	/* For MAXPATHLEN */#endif#include "asn1compiler.h"typedef struct arg_s {	enum asn1c_flags flags;	void (*logger_cb)(int _severity, const char *fmt, ...);	int (*default_cb)(struct arg_s *);	struct compiler_streams *target;	asn1p_t		*asn;	asn1p_module_t	*mod;	asn1p_expr_t	*expr;	int embed;} arg_t;/* * Logging. */#define	LOG(ll, fmt, args...)	do {			\		arg->logger_cb(ll, fmt, ##args);	\	} while(0)#define	DEBUG(fmt, args...)	do {		\		if(arg->flags & A1C_DEBUG)	\			LOG(-1, fmt, ##args);	\	} while(0)#define	WARNING(fmt, args...)	LOG(0, fmt, ##args);#define	FATAL(fmt, args...)	LOG(1, fmt, ##args);#endif	/* _ASN1_COMPILER_INTERNAL_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -