added QSE_XLI_NOLIST and QSE_XLI_NONIL

This commit is contained in:
2013-09-23 14:06:25 +00:00
parent 72fd080f70
commit 84aca0ecb1
3 changed files with 24 additions and 4 deletions

View File

@ -136,6 +136,8 @@ static void print_usage (QSE_FILE* out, int argc, qse_char_t* argv[])
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(" -d allow a leading digit in identifiers\n"));
qse_fprintf (out, QSE_T(" -n disallow nil\n"));
qse_fprintf (out, QSE_T(" -l disallow lists\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)
@ -163,9 +165,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:uaftsdvm:X:"),
QSE_T("hi:o:uaftsdnlvm:X:"),
#else
QSE_T("hi:o:uaftsdvm:"),
QSE_T("hi:o:uaftsdnlvm:"),
#endif
lng
};
@ -231,6 +233,14 @@ static int handle_args (int argc, qse_char_t* argv[])
g_trait |= QSE_XLI_LEADDIGIT;
break;
case QSE_T('n'):
g_trait |= QSE_XLI_NONIL;
break;
case QSE_T('l'):
g_trait |= QSE_XLI_NOLIST;
break;
case QSE_T('v'):
g_trait |= QSE_XLI_VALIDATE;
break;