Lines Matching refs:cenv
644 * Iterate through tests. Pass in NULL for cenv to begin the iteration. For
649 sym_test_env(struct sym_test *st, struct compile_env *cenv, int *need)
651 int i = cenv ? cenv->ce_index + 1: 0;
655 cenv = &compile_env[i];
658 return (cenv);
667 env_name(struct compile_env *cenv)
669 return (cenv->ce_name);
673 env_lang(struct compile_env *cenv)
675 return (cenv->ce_lang);
679 env_defs(struct compile_env *cenv)
681 return (cenv->ce_defs);
846 do_compile(test_t t, struct sym_test *st, struct compile_env *cenv, int need)
872 if (strcmp(env_lang(cenv), "c99") == 0) {
875 } else if (strcmp(env_lang(cenv), "c11") == 0) {
890 compiler, cflags, env_defs(cenv), cfile, ofile, lfile);
908 test_failed(t, "error compiling in %s: %s", env_name(cenv),
915 test_failed(t, "symbol visible in %s", env_name(cenv));
923 test_failed(t, "error compiling in %s", env_name(cenv));
936 struct compile_env *cenv;
945 for (cenv = sym_test_env(st, NULL, &need);
946 cenv != NULL;
947 cenv = sym_test_env(st, cenv, &need)) {
949 need ? '+' : '-', env_name(cenv));
950 if (do_compile(t, st, cenv, need) == 0) {