wrong position of struct identifier

Tue, 30 Aug 2022 19:34:22 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 30 Aug 2022 19:34:22 +0200
changeset 577
26447d59a5ab
parent 576
ba0c4ff6698e
child 578
0b2c0cb280a9

wrong position of struct identifier

src/cx/string.h file | annotate | diff | comparison | revisions
     1.1 --- a/src/cx/string.h	Mon Aug 29 20:54:42 2022 +0200
     1.2 +++ b/src/cx/string.h	Tue Aug 30 19:34:22 2022 +0200
     1.3 @@ -43,7 +43,7 @@
     1.4  /**
     1.5   * The UCX string structure.
     1.6   */
     1.7 -struct {
     1.8 +struct cx_mutstr_s {
     1.9      /**
    1.10       * A pointer to the string.
    1.11       * \note The string is not necessarily \c NULL terminated.
    1.12 @@ -52,7 +52,7 @@
    1.13      char *ptr;
    1.14      /** The length of the string */
    1.15      size_t length;
    1.16 -} cx_mutstr_s;
    1.17 +};
    1.18  
    1.19  /**
    1.20   * A mutable string.
    1.21 @@ -62,7 +62,7 @@
    1.22  /**
    1.23   * The UCX string structure for immutable (constant) strings.
    1.24   */
    1.25 -struct {
    1.26 +struct cx_string_s {
    1.27      /**
    1.28       * A pointer to the immutable string.
    1.29       * \note The string is not necessarily \c NULL terminated.
    1.30 @@ -71,7 +71,7 @@
    1.31      char const *ptr;
    1.32      /** The length of the string */
    1.33      size_t length;
    1.34 -} cx_string_s;
    1.35 +};
    1.36  
    1.37  /**
    1.38   * An immutable string.

mercurial