Klaus Demo nginx / a3e9f7d
fix conflicting names "true" and "false" Igor Sysoev 13 years ago
2 changed file(s) with 34 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
10151015 case ngx_http_script_file_dir:
10161016 case ngx_http_script_file_exists:
10171017 case ngx_http_script_file_exec:
1018 goto false;
1018 goto false_value;
10191019
10201020 case ngx_http_script_file_not_plain:
10211021 case ngx_http_script_file_not_dir:
10221022 case ngx_http_script_file_not_exists:
10231023 case ngx_http_script_file_not_exec:
1024 goto true;
1025 }
1026
1027 goto false;
1024 goto true_value;
1025 }
1026
1027 goto false_value;
10281028 }
10291029
10301030 switch (code->op) {
10311031 case ngx_http_script_file_plain:
10321032 if (of.is_file) {
1033 goto true;
1034 }
1035 goto false;
1033 goto true_value;
1034 }
1035 goto false_value;
10361036
10371037 case ngx_http_script_file_not_plain:
10381038 if (of.is_file) {
1039 goto false;
1040 }
1041 goto true;
1039 goto false_value;
1040 }
1041 goto true_value;
10421042
10431043 case ngx_http_script_file_dir:
10441044 if (of.is_dir) {
1045 goto true;
1046 }
1047 goto false;
1045 goto true_value;
1046 }
1047 goto false_value;
10481048
10491049 case ngx_http_script_file_not_dir:
10501050 if (of.is_dir) {
1051 goto false;
1052 }
1053 goto true;
1051 goto false_value;
1052 }
1053 goto true_value;
10541054
10551055 case ngx_http_script_file_exists:
10561056 if (of.is_file || of.is_dir || of.is_link) {
1057 goto true;
1058 }
1059 goto false;
1057 goto true_value;
1058 }
1059 goto false_value;
10601060
10611061 case ngx_http_script_file_not_exists:
10621062 if (of.is_file || of.is_dir || of.is_link) {
1063 goto false;
1064 }
1065 goto true;
1063 goto false_value;
1064 }
1065 goto true_value;
10661066
10671067 case ngx_http_script_file_exec:
10681068 if (of.is_exec) {
1069 goto true;
1070 }
1071 goto false;
1069 goto true_value;
1070 }
1071 goto false_value;
10721072
10731073 case ngx_http_script_file_not_exec:
10741074 if (of.is_exec) {
1075 goto false;
1076 }
1077 goto true;
1078 }
1079
1080 false:
1075 goto false_value;
1076 }
1077 goto true_value;
1078 }
1079
1080 false_value:
10811081
10821082 ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
10831083 "http script file op false");
10851085 *value = ngx_http_variable_null_value;
10861086 return;
10871087
1088 true:
1088 true_value:
10891089
10901090 *value = ngx_http_variable_true_value;
10911091 return;
2020
2121 #include <libkern/OSAtomic.h>
2222
23 /* "bool" conflicts with perl's CORE/handy.h
24 * "true" and "false" conflict with nginx, and of course we can rename them,
25 * but we need to undef "bool" anyway
26 */
23 /* "bool" conflicts with perl's CORE/handy.h */
2724 #undef bool
28 #undef true
29 #undef false
3025
3126
3227 #define NGX_HAVE_ATOMIC_OPS 1