Fix terminology in comment and message
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 25 Apr 2025 14:26:28 +0000 (16:26 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 25 Apr 2025 14:26:28 +0000 (16:26 +0200)
Should be "bracket" not "brace" for [].

src/interfaces/ecpg/preproc/variable.c

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