added QSE_XLI_MULSEGSTR
This commit is contained in:
@ -1478,7 +1478,7 @@ static int open_config_file (qse_httpd_t* httpd)
|
||||
}
|
||||
|
||||
qse_xli_getopt (httpd_xtn->xli, QSE_XLI_TRAIT, &trait);
|
||||
trait |= QSE_XLI_VALIDATE;
|
||||
trait |= QSE_XLI_MULSEGSTR | QSE_XLI_VALIDATE;
|
||||
qse_xli_setopt (httpd_xtn->xli, QSE_XLI_TRAIT, &trait);
|
||||
|
||||
for (i = 0; i < QSE_COUNTOF(defs); i++)
|
||||
|
@ -134,6 +134,8 @@ static void print_usage (QSE_FILE* out, int argc, qse_char_t* argv[])
|
||||
qse_fprintf (out, QSE_T(" -a allow a key alias\n"));
|
||||
qse_fprintf (out, QSE_T(" -f keep file inclusion info\n"));
|
||||
qse_fprintf (out, QSE_T(" -t keep comment text\n"));
|
||||
qse_fprintf (out, QSE_T(" -s allow multi-segmented strings\n"));
|
||||
qse_fprintf (out, QSE_T(" -v perform validation\n"));
|
||||
qse_fprintf (out, QSE_T(" -m number specify the maximum amount of memory to use in bytes\n"));
|
||||
#if defined(QSE_BUILD_DEBUG)
|
||||
qse_fprintf (out, QSE_T(" -X number fail the number'th memory allocation\n"));
|
||||
@ -160,9 +162,9 @@ static int handle_args (int argc, qse_char_t* argv[])
|
||||
static qse_opt_t opt =
|
||||
{
|
||||
#if defined(QSE_BUILD_DEBUG)
|
||||
QSE_T("hi:o:uaftvm:X:"),
|
||||
QSE_T("hi:o:uaftsvm:X:"),
|
||||
#else
|
||||
QSE_T("hi:o:uaftvm:"),
|
||||
QSE_T("hi:o:uaftsvm:"),
|
||||
#endif
|
||||
lng
|
||||
};
|
||||
@ -220,6 +222,10 @@ static int handle_args (int argc, qse_char_t* argv[])
|
||||
g_trait |= QSE_XLI_KEEPTEXT;
|
||||
break;
|
||||
|
||||
case QSE_T('s'):
|
||||
g_trait |= QSE_XLI_MULSEGSTR;
|
||||
break;
|
||||
|
||||
case QSE_T('v'):
|
||||
g_trait |= QSE_XLI_VALIDATE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user