We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d56ec8 commit 56c474aCopy full SHA for 56c474a
src/gpre/parse.h
@@ -51,10 +51,10 @@ struct tok
51
gpre_sym* tok_charset; // Character set of token
52
};
53
54
-const size_t TOK_LEN = sizeof(tok);
+inline constexpr size_t TOK_LEN = sizeof(tok);
55
56
// CVC: This function doesn't unescape embedded quotes.
57
-inline void strip_quotes(tok& tkn)
+inline void strip_quotes(tok& tkn) noexcept
58
{
59
int ij;
60
for (ij = 1; ij < tkn.tok_length - 1; ij++)
@@ -64,7 +64,7 @@ inline void strip_quotes(tok& tkn)
64
tkn.tok_length = ij;
65
}
66
67
-inline bool isQuoted(const int typ)
+inline bool isQuoted(const int typ) noexcept
68
69
return (typ == tok_sglquoted || typ == tok_dblquoted);
70
0 commit comments