Commonize mg_str

PUBLISHED_FROM=0e6a1c1a2356c1e12580e498c64ba7be367f601c
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-07-06 23:49:57 +00:00
1 parent 29b3950ee7
commit c907e6c5fb
9 files changed
+82 -113

No files matched your search

-1
View File
@@ -25,7 +25,6 @@ items:
- { type: file, name: mg_set_timer.md }
- { type: file, name: mg_time.md }
- { type: file, name: mg_event_handler_t.md }
- { type: file, name: struct_mg_str.md }
- { type: file, name: struct_mg_mgr.md }
- { type: file, name: struct_mg_connection.md }
- { type: file, name: struct_mg_add_sock_opts.md }
-13
View File
@@ -1,13 +0,0 @@
---
title: "struct mg_str"
decl_name: "struct mg_str"
symbol_kind: "struct"
signature: |
struct mg_str {
const char *p; /* Memory chunk pointer */
size_t len; /* Memory chunk length */
};
---
Describes chunk of memory
-10
View File
@@ -1,10 +0,0 @@
---
title: "MG_MK_STR()"
decl_name: "MG_MK_STR"
symbol_kind: "func"
signature: |
#define MG_MK_STR(str_literal);
---
Macro for initializing mg_str.
-4
View File
@@ -6,8 +6,6 @@ items:
- { type: file, name: mg_skip.md }
- { type: file, name: mg_ncasecmp.md }
- { type: file, name: mg_casecmp.md }
- { type: file, name: mg_vcmp.md }
- { type: file, name: mg_vcasecmp.md }
- { type: file, name: mg_base64_decode.md }
- { type: file, name: mg_base64_encode.md }
- { type: file, name: mg_stat.md }
@@ -23,8 +21,6 @@ items:
- { type: file, name: mg_is_big_endian.md }
- { type: file, name: mg_next_comma_list_entry.md }
- { type: file, name: mg_match_prefix.md }
- { type: file, name: mg_mk_str.md }
- { type: file, name: MG_MK_STR.md }
---
-11
View File
@@ -1,11 +0,0 @@
---
title: "mg_mk_str()"
decl_name: "mg_mk_str"
symbol_kind: "func"
signature: |
struct mg_str mg_mk_str(const char *s);
---
A helper function for creating mg_str struct from plain C string.
`NULL` is allowed and becomes `{NULL, 0}`.
-11
View File
@@ -1,11 +0,0 @@
---
title: "mg_vcasecmp()"
decl_name: "mg_vcasecmp"
symbol_kind: "func"
signature: |
int mg_vcasecmp(const struct mg_str *str2, const char *str1);
---
Cross-platform version of `strncasecmp()` where first string is
specified by `struct mg_str`.
-11
View File
@@ -1,11 +0,0 @@
---
title: "mg_vcmp()"
decl_name: "mg_vcmp"
symbol_kind: "func"
signature: |
int mg_vcmp(const struct mg_str *str2, const char *str1);
---
Cross-platform version of `strcmp()` where where first string is
specified by `struct mg_str`.