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
--- a/src/cx/string.h	Mon Aug 29 20:54:42 2022 +0200
+++ b/src/cx/string.h	Tue Aug 30 19:34:22 2022 +0200
@@ -43,7 +43,7 @@
 /**
  * The UCX string structure.
  */
-struct {
+struct cx_mutstr_s {
     /**
      * A pointer to the string.
      * \note The string is not necessarily \c NULL terminated.
@@ -52,7 +52,7 @@
     char *ptr;
     /** The length of the string */
     size_t length;
-} cx_mutstr_s;
+};
 
 /**
  * A mutable string.
@@ -62,7 +62,7 @@
 /**
  * The UCX string structure for immutable (constant) strings.
  */
-struct {
+struct cx_string_s {
     /**
      * A pointer to the immutable string.
      * \note The string is not necessarily \c NULL terminated.
@@ -71,7 +71,7 @@
     char const *ptr;
     /** The length of the string */
     size_t length;
-} cx_string_s;
+};
 
 /**
  * An immutable string.

mercurial