From 4807fbbf67620e396baba9588397e9d76d710e14 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 30 Sep 2018 12:35:07 -0700 Subject: [PATCH] SCP: Expose the REGEX type (PCREPOSIX, REGEX, none) in SIM_REGEX_TYPE env var --- scp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scp.c b/scp.c index 921cc957..a1a007be 100644 --- a/scp.c +++ b/scp.c @@ -2521,6 +2521,11 @@ if (!sim_quiet) { show_version (stdout, NULL, NULL, 0, NULL); } show_version (stdnul, NULL, NULL, 1, NULL); /* Quietly set SIM_OSTYPE */ +#if defined (HAVE_PCREPOSIX_H) +setenv ("SIM_REGEX_TYPE", "PCREPOSIX", 1); /* Publish regex type */ +#elif defined (HAVE_REGEX_H) +setenv ("SIM_REGEX_TYPE", "REGEX", 1); /* Publish regex type */ +#endif if (((sim_dflt_dev->flags & DEV_DEBUG) == 0) && /* default device without debug? */ (sim_dflt_dev->debflags == NULL)) { sim_dflt_dev->flags |= DEV_DEBUG; /* connect default event debugging */