#include #include "internal.h" #include "opt.h" rcc_option_value rccConfigGetOption(rcc_context ctx, rcc_option option) { if ((!ctx)||(option<0)||(option>=RCC_MAX_OPTIONS)) return -1; return ctx->options[option]; } int rccConfigSetOption(rcc_context ctx, rcc_option option, rcc_option_value value) { if ((!ctx)||(option>=RCC_MAX_OPTIONS)) return -1; if (ctx->options[option] != value) { ctx->configure = 1; ctx->options[option]=value; } return 0; }