This is an automated email from the ASF dual-hosted git repository.
astitcher pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
The following commit(s) were added to refs/heads/main by this push:
new 5d3473d PROTON-2248: [c] Some code doc fixes
5d3473d is described below
commit 5d3473dd484090590863c0d87dea4ea91bba87dc
Author: Andrew Stitcher <[email protected]>
AuthorDate: Fri Mar 19 16:10:10 2021 -0400
PROTON-2248: [c] Some code doc fixes
---
c/src/core/codec.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/c/src/core/codec.c b/c/src/core/codec.c
index 34f9d35..3719c22 100644
--- a/c/src/core/codec.c
+++ b/c/src/core/codec.c
@@ -553,8 +553,8 @@ static int pni_normalize_multiple(pn_data_t *data,
pn_data_t *src) {
d: double (double)
Z: binary (size_t, char*) - must not be NULL
z: binary (size_t, char*) - encode as AMQP null if NULL
- S: symbol (char*)
- s: string (char*)
+ S: string (char*)
+ s: symbol (char*)
D: described - next two codes are [descriptor, body]
@: enter array. If followed by D, a described array. Following codes to
matching ']' are elements.
T: type (pn_type_t) - set array type while in array
@@ -636,8 +636,8 @@ int pn_data_vfill(pn_data_t *data, const char *fmt, va_list
ap)
}
}
break;
- case 'S': /* encode symbol or null if NULL */
- case 's': /* encode string or null if NULL */
+ case 'S': /* encode string or null if NULL */
+ case 's': /* encode symbol or null if NULL */
{
char *start = va_arg(ap, char *);
size_t size;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]