Postfix3.3.1
データ構造 | マクロ定義 | 関数
mac_expand.c ファイル
#include <sys_defs.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <msg.h>
#include <vstring.h>
#include <mymalloc.h>
#include <stringops.h>
#include <name_code.h>
#include <mac_parse.h>
#include <mac_expand.h>

[ソースコード]

データ構造

struct  MAC_EXP_CONTEXT
 

マクロ定義

#define MAC_EXP_BVAL_TRUE   "true"
 
#define MAC_EXP_BVAL_FALSE   ""
 
#define MAC_EXP_OP_STR_EQ   "=="
 
#define MAC_EXP_OP_STR_NE   "!="
 
#define MAC_EXP_OP_STR_LT   "<"
 
#define MAC_EXP_OP_STR_LE   "<="
 
#define MAC_EXP_OP_STR_GE   ">="
 
#define MAC_EXP_OP_STR_GT   ">"
 
#define MAC_EXP_OP_STR_ANY
 
#define MAC_EXP_OP_TOK_NONE   0
 
#define MAC_EXP_OP_TOK_EQ   1
 
#define MAC_EXP_OP_TOK_NE   2
 
#define MAC_EXP_OP_TOK_LT   3
 
#define MAC_EXP_OP_TOK_LE   4
 
#define MAC_EXP_OP_TOK_GE   5
 
#define MAC_EXP_OP_TOK_GT   6
 
#define MAC_EXP_WHITESPACE   CHARS_SPACE
 
#define MAC_EXP_ERR_RETURN(mc, fmt, ...)
 
#define MAC_EXP_FIND_LEFT_CURLY(len, cp)
 

関数

int mac_expand (VSTRING *result, const char *pattern, int flags, const char *filter, MAC_EXP_LOOKUP_FN lookup, void *context)
 

マクロ定義詳解

#define MAC_EXP_BVAL_FALSE   ""

mac_expand.c180 行目に定義があります。

#define MAC_EXP_BVAL_TRUE   "true"

mac_expand.c179 行目に定義があります。

#define MAC_EXP_ERR_RETURN (   mc,
  fmt,
  ... 
)
値:
do { \
return (mac_exp_parse_error(mc, fmt, __VA_ARGS__)); \
} while (0)
int const char * fmt

mac_expand.c285 行目に定義があります。

#define MAC_EXP_FIND_LEFT_CURLY (   len,
  cp 
)
値:
((cp[len = strspn(cp, MAC_EXP_WHITESPACE)] == '{') ? \
(cp += len) : 0)
#define MAC_EXP_WHITESPACE
Definition: mac_expand.c:220

mac_expand.c308 行目に定義があります。

#define MAC_EXP_OP_STR_ANY
値:
"\" or \"" MAC_EXP_OP_STR_NE "\"" \
"\" or \"" MAC_EXP_OP_STR_LT "\"" \
"\" or \"" MAC_EXP_OP_STR_LE "\"" \
"\" or \"" MAC_EXP_OP_STR_GE "\"" \
"\" or \"" MAC_EXP_OP_STR_GT "\""
#define MAC_EXP_OP_STR_GE
Definition: mac_expand.c:189
#define MAC_EXP_OP_STR_GT
Definition: mac_expand.c:190
#define MAC_EXP_OP_STR_LT
Definition: mac_expand.c:187
#define MAC_EXP_OP_STR_NE
Definition: mac_expand.c:186
#define MAC_EXP_OP_STR_LE
Definition: mac_expand.c:188
#define MAC_EXP_OP_STR_EQ
Definition: mac_expand.c:185

mac_expand.c191 行目に定義があります。

#define MAC_EXP_OP_STR_EQ   "=="

mac_expand.c185 行目に定義があります。

#define MAC_EXP_OP_STR_GE   ">="

mac_expand.c189 行目に定義があります。

#define MAC_EXP_OP_STR_GT   ">"

mac_expand.c190 行目に定義があります。

#define MAC_EXP_OP_STR_LE   "<="

mac_expand.c188 行目に定義があります。

#define MAC_EXP_OP_STR_LT   "<"

mac_expand.c187 行目に定義があります。

#define MAC_EXP_OP_STR_NE   "!="

mac_expand.c186 行目に定義があります。

#define MAC_EXP_OP_TOK_EQ   1

mac_expand.c199 行目に定義があります。

#define MAC_EXP_OP_TOK_GE   5

mac_expand.c203 行目に定義があります。

#define MAC_EXP_OP_TOK_GT   6

mac_expand.c204 行目に定義があります。

#define MAC_EXP_OP_TOK_LE   4

mac_expand.c202 行目に定義があります。

#define MAC_EXP_OP_TOK_LT   3

mac_expand.c201 行目に定義があります。

#define MAC_EXP_OP_TOK_NE   2

mac_expand.c200 行目に定義があります。

#define MAC_EXP_OP_TOK_NONE   0

mac_expand.c198 行目に定義があります。

#define MAC_EXP_WHITESPACE   CHARS_SPACE

mac_expand.c220 行目に定義があります。

関数詳解

int mac_expand ( VSTRING result,
const char *  pattern,
int  flags,
const char *  filter,
MAC_EXP_LOOKUP_FN  lookup,
void *  context 
)

mac_expand.c593 行目に定義があります。