Deleted
Added
nxt_conf_validation.c (537:5158d7c49920) | nxt_conf_validation.c (584:28e8e1877e62) |
---|---|
1 2/* 3 * Copyright (C) Valentin V. Bartenev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include <nxt_conf.h> --- 210 unchanged lines hidden (view full) --- 219 NXT_CONF_VLDT_STRING, 220 NULL, 221 NULL }, 222 223 NXT_CONF_VLDT_NEXT(&nxt_conf_vldt_common_members) 224}; 225 226 | 1 2/* 3 * Copyright (C) Valentin V. Bartenev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include <nxt_conf.h> --- 210 unchanged lines hidden (view full) --- 219 NXT_CONF_VLDT_STRING, 220 NULL, 221 NULL }, 222 223 NXT_CONF_VLDT_NEXT(&nxt_conf_vldt_common_members) 224}; 225 226 |
227static nxt_conf_vldt_object_t nxt_conf_vldt_ruby_members[] = { 228 { nxt_string("script"), 229 NXT_CONF_VLDT_STRING, 230 NULL, 231 NULL }, 232 233 NXT_CONF_VLDT_NEXT(&nxt_conf_vldt_common_members) 234}; 235 236 |
|
227nxt_int_t 228nxt_conf_validate(nxt_conf_validation_t *vldt) 229{ 230 nxt_int_t ret; 231 232 ret = nxt_conf_vldt_type(vldt, NULL, vldt->conf, NXT_CONF_VLDT_OBJECT); 233 234 if (ret != NXT_OK) { --- 173 unchanged lines hidden (view full) --- 408 409 static nxt_str_t type_str = nxt_string("type"); 410 411 static void *members[] = { 412 nxt_conf_vldt_python_members, 413 nxt_conf_vldt_php_members, 414 nxt_conf_vldt_go_members, 415 nxt_conf_vldt_perl_members, | 237nxt_int_t 238nxt_conf_validate(nxt_conf_validation_t *vldt) 239{ 240 nxt_int_t ret; 241 242 ret = nxt_conf_vldt_type(vldt, NULL, vldt->conf, NXT_CONF_VLDT_OBJECT); 243 244 if (ret != NXT_OK) { --- 173 unchanged lines hidden (view full) --- 418 419 static nxt_str_t type_str = nxt_string("type"); 420 421 static void *members[] = { 422 nxt_conf_vldt_python_members, 423 nxt_conf_vldt_php_members, 424 nxt_conf_vldt_go_members, 425 nxt_conf_vldt_perl_members, |
426 nxt_conf_vldt_ruby_members, |
|
416 }; 417 418 ret = nxt_conf_vldt_type(vldt, name, value, NXT_CONF_VLDT_OBJECT); 419 420 if (ret != NXT_OK) { 421 return ret; 422 } 423 --- 287 unchanged lines hidden --- | 427 }; 428 429 ret = nxt_conf_vldt_type(vldt, name, value, NXT_CONF_VLDT_OBJECT); 430 431 if (ret != NXT_OK) { 432 return ret; 433 } 434 --- 287 unchanged lines hidden --- |