From 48d3ce46d82001854f90062d59a87ce34e5d64b9 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 21 Sep 2017 18:39:23 -0400 Subject: [PATCH] Commenary --- src/V3PreProc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3PreProc.cpp b/src/V3PreProc.cpp index 54ad0f22c..c12d27292 100644 --- a/src/V3PreProc.cpp +++ b/src/V3PreProc.cpp @@ -561,7 +561,7 @@ string V3PreProcImp::defineSubst(V3DefineRef* refp) { bool quote = false; bool haveDefault = false; // Note there's a leading ( and trailing ), so parens==1 is the base parsing level - string params = refp->params(); // Must keep in scope + string params = refp->params(); // Must keep str in scope to get pointer const char* cp=params.c_str(); if (*cp == '(') cp++; for (; *cp; cp++) { @@ -1265,7 +1265,7 @@ int V3PreProcImp::getStateToken() { error("Recursive `define substitution: `"+name); goto next_tok; } - // substitute + // Substitute if (!defExists(name)) { // Not found, return original string as-is m_defDepth = 0; UINFO(4,"Defref `"< not_defined"<