Fix terminology in comment and message

Should be "bracket" not "brace" for [].
This commit is contained in:
Peter Eisentraut 2025-04-25 16:26:28 +02:00
parent 0787646e1d
commit 385959bdea

View File

@ -60,7 +60,7 @@ find_struct_member(const char *name, char *str, struct ECPGstruct_member *member
int count; int count;
/* /*
* We don't care about what's inside the array braces so * We don't care about what's inside the array brackets so
* just eat up the character * just eat up the character
*/ */
for (count = 1, end = next + 1; count; end++) for (count = 1, end = next + 1; count; end++)
@ -203,8 +203,8 @@ find_variable(const char *name)
if (*next == '[') if (*next == '[')
{ {
/* /*
* We don't care about what's inside the array braces so just eat * We don't care about what's inside the array brackets so just
* up the characters * eat up the characters
*/ */
for (count = 1, end = next + 1; count; end++) for (count = 1, end = next + 1; count; end++)
{ {
@ -217,7 +217,7 @@ find_variable(const char *name)
count--; count--;
break; break;
case '\0': case '\0':
mmfatal(PARSE_ERROR, "unmatched brace in variable \"%s\"", name); mmfatal(PARSE_ERROR, "unmatched bracket in variable \"%s\"", name);
break; break;
default: default:
break; break;