|
version 1.10, 2016/05/18 12:47:42
|
version 1.12, 2022/01/06 15:13:01
|
|
Line 12 terms:
|
Line 12 terms:
|
| All of the documentation and software included in the ELWIX and AITNET |
All of the documentation and software included in the ELWIX and AITNET |
| Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org> |
| |
|
| Copyright 2004 - 2015 | Copyright 2004 - 2022 |
| by Michael Pounov <misho@elwix.org>. All rights reserved. |
by Michael Pounov <misho@elwix.org>. All rights reserved. |
| |
|
| Redistribution and use in source and binary forms, with or without |
Redistribution and use in source and binary forms, with or without |
|
Line 308 typedef struct __packed {
|
Line 308 typedef struct __packed {
|
| break; \ |
break; \ |
| } \ |
} \ |
| } while (0) |
} while (0) |
| |
/* Additional helper macro, which can help about copy data variables */ |
| #define AIT_COPY_DATA(_vl, _v) do { AIT_COPY_VAL((_vl), (_v)); \ |
#define AIT_COPY_DATA(_vl, _v) do { AIT_COPY_VAL((_vl), (_v)); \ |
| if (AIT_TYPE((_vl)) == data) \ |
if (AIT_TYPE((_vl)) == data) \ |
| AIT_SET_DATA((_vl), AIT_GET_DATA((_v)), \ |
AIT_SET_DATA((_vl), AIT_GET_DATA((_v)), \ |
|
Line 352 typedef struct __packed {
|
Line 353 typedef struct __packed {
|
| switch (AIT_TYPE(__val)) { \ |
switch (AIT_TYPE(__val)) { \ |
| case buffer: \ |
case buffer: \ |
| case string: \ |
case string: \ |
| |
assert(!__val->val_in); \ |
| if (__val->val.buffer) \ |
if (__val->val.buffer) \ |
| memset(__val->val.buffer, 0, \ |
memset(__val->val.buffer, 0, \ |
| AIT_LEN(__val)); \ |
AIT_LEN(__val)); \ |