aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-16 10:39:09 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-16 10:39:09 -0800
commita7e3e421dbc78ac988862a459c4077877a4ecba7 (patch)
tree4d8c8070ef38c3e3a6e754efd4244fb4aebca8fb /utils.c
parent3f6e7c2beb512d6c3db51bfc94279f0d11e47057 (diff)
Deprecated #(...)# block comments
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/utils.c b/utils.c
index 616255f..3c38e4e 100644
--- a/utils.c
+++ b/utils.c
@@ -14,7 +14,6 @@
//
const char *after_spaces(const char *str)
{
- int block_comment_depth = 0;
// Skip whitespace and comments:
skip_whitespace:
switch (*str) {
@@ -23,20 +22,7 @@ const char *after_spaces(const char *str)
goto skip_whitespace;
}
case '#': {
- if (str[1] == '(') {
- ++block_comment_depth;
- for (str += 2; *str && block_comment_depth > 0; ++str) {
- if (str[0] == '#' && str[1] == '(') {
- ++block_comment_depth;
- ++str;
- } else if (str[0] == ')' && str[1] == '#') {
- --block_comment_depth;
- ++str;
- }
- }
- } else {
- while (*str && *str != '\n') ++str;
- }
+ while (*str && *str != '\n') ++str;
goto skip_whitespace;
}
}