mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
c2arg2
This commit is contained in:
parent
ed5feee0e3
commit
68a0959795
2 changed files with 3 additions and 2 deletions
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#define PSYC_C2STR(str) {sizeof(str)-1, str}
|
#define PSYC_C2STR(str) {sizeof(str)-1, str}
|
||||||
#define PSYC_C2ARG(str) str, sizeof(str)-1
|
#define PSYC_C2ARG(str) str, sizeof(str)-1
|
||||||
|
#define PSYC_C2ARG2(str) sizeof(str)-1, str
|
||||||
#define PSYC_S2ARG(str) (str).data, (str).length
|
#define PSYC_S2ARG(str) (str).data, (str).length
|
||||||
#define PSYC_S2ARG2(str) (str).length, (str).data
|
#define PSYC_S2ARG2(str) (str).length, (str).data
|
||||||
|
|
||||||
|
|
|
@ -126,8 +126,8 @@ static inline
|
||||||
PsycModifier psyc_modifier_new (char oper,
|
PsycModifier psyc_modifier_new (char oper,
|
||||||
char *name, size_t namelen,
|
char *name, size_t namelen,
|
||||||
char *value, size_t valuelen,
|
char *value, size_t valuelen,
|
||||||
PsycModifierFlag flag){
|
PsycModifierFlag flag)
|
||||||
|
{
|
||||||
PsycModifier m = {oper, {namelen, name}, {valuelen, value}, flag};
|
PsycModifier m = {oper, {namelen, name}, {valuelen, value}, flag};
|
||||||
|
|
||||||
if (flag == PSYC_MODIFIER_CHECK_LENGTH) // find out if it needs a length
|
if (flag == PSYC_MODIFIER_CHECK_LENGTH) // find out if it needs a length
|
||||||
|
|
Loading…
Reference in a new issue