/ast/src/lib/libdss/ |
H A D | cxattr.c | 48 S("unsigned"), CX_UNSIGNED|CX_INTEGER, 0, 0, -1, 51 S("octal"), CX_UNSIGNED|CX_INTEGER, 0, 8, -1, 52 S("hex"), CX_UNSIGNED|CX_INTEGER, 0, 16, -1,
|
H A D | cx.h | 78 #define CX_UNSIGNED 0x0004 macro
|
H A D | cxopen.c | 162 *f++ = (format->flags & CX_UNSIGNED) ? 'u' : 'd'; 209 if (format && (format->flags & CX_UNSIGNED)) 223 (*disc->errorf)(cx, disc, 1, "%s: invalid number [(buf+size)=%p e=%p%s base=%d size=%d]", fmtquote(buf, NiL, NiL, size, 0), (char*)buf+size, e, (format && (format->flags & CX_UNSIGNED)) ? " unsigned" : "", format ? format->base : 0, size);
|
/ast/src/cmd/dsslib/time_t/ |
H A D | time_t.c | 569 { "tm_hour_t", "Hour since midnight with optional meridian (AM/PM).", CXH, (Cxtype_t*)"number", 0, tm_hour_external, tm_hour_internal, 0, 0, 0, 0, { "The format details string is a \bprintf\b(3) format string.", "%d", CX_UNSIGNED|CX_INTEGER, 1 } }, 570 { "tm_mon_t", "Month name represented as a number [0-11], starting at January.", CXH, (Cxtype_t*)"number", 0, tm_mon_external, tm_mon_internal, 0, 0, 0, 0, { "The format details string is a \bprintf\b(3) format string.", "%s", CX_UNSIGNED|CX_INTEGER, 1 } }, 571 { "tm_wday_t", "Weekday name represented as a number [0-6], starting at Sunday.", CXH, (Cxtype_t*)"number", 0, tm_wday_external, tm_wday_internal, 0, 0, 0, 0, { "The format details string is a \bprintf\b(3) format string.", "%s", CX_UNSIGNED|CX_INTEGER, 1 } }, 572 { "tm_t", "Time parts.", CXH, (Cxtype_t*)"number", tm_init, 0, 0, 0, 0, 0, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 4 }, 0, &tm_member }, 574 { "ns_t", "64 bit nanoseconds since the epoch.", CXH, (Cxtype_t*)"tm_t", ns_init, precise_external, precise_internal, 0, 0, 0, 0, { "The format details string is a \bstrftime\b(3)/\bstrptime\b(3) format string.", "%K.%9N", CX_UNSIGNED|CX_INTEGER, 8 } }, 575 { "stamp_t", "64 bit 1/2**32 seconds since the epoch.", CXH, (Cxtype_t*)"tm_t", stamp_init, precise_external, precise_internal, 0, 0, 0, 0, { "The format details string is a \bstrftime\b(3)/\bstrptime\b(3) format string.", "%K.%N", CX_UNSIGNED|CX_INTEGER, 8 } }, 576 { "time_t", "32 bit seconds since the epoch.", CXH, (Cxtype_t*)"tm_t", 0, time_external, time_internal, 0, 0, 0, 0, { "The format details string is a \bstrftime\b(3)/\bstrptime\b(3) format string.", "%K", CX_UNSIGNED|CX_INTEGER, 4 } },
|
/ast/src/cmd/dsslib/fix/ |
H A D | fix.c | 200 field->flags = CX_UNSIGNED; 238 field->flags ^= CX_UNSIGNED|CX_INTEGER; 315 if (field->flags & CX_UNSIGNED)
|
/ast/src/cmd/dsslib/ip_t/ |
H A D | ip_t.c | 978 { "as16_t", "An unsigned 16 bit autonomous system number.", CXH, (Cxtype_t*)"number", 0, 0, 0, 0, 0, 2, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 2, 5 }, 0 }, 979 { "as32_t", "A 32 bit autonomous system number.", CXH, (Cxtype_t*)"number", 0, as32_external, as32_internal, 0, 0, 4, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 4, 11 }, 0 }, 980 { "as_t", 0, CXH, (Cxtype_t*)"number", 0, 0, 0, 0, 0, 0, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 2, 5 }, 0, 0, &as_generic[0] }, 987 { "ipv4addr_t", "A dotted quad ipv4 address.", CXH, (Cxtype_t*)"number", 0, addrv4_external, addrv4_internal, 0, 0, 4, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 4, 16 }, &match_prefixv4 }, 989 { "ipaddr_t", 0, CXH, (Cxtype_t*)"number", 0, addr_external, addr_internal, 0, 0, 0, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 4, 16 }, &match_prefix, 0, &addr_generic[0] }, 990 { "ipv4prefix_t", "/length appended to an ipv4addr_t prefix.", CXH, (Cxtype_t*)"number", 0, prefixv4_external, prefixv4_internal, 0, 0, 5, 0, { "The format details string is a \bprintf\b(3) format specification for the integer arguments \aaddress,bits\a; e.g., \b%2$u|%1$08x\b prints the decimal bits followed by the hexadecimal prefix address.", 0, CX_UNSIGNED|CX_INTEGER, 8, 19 }, &match_prefixv4 },
|
/ast/src/cmd/dsslib/num_t/ |
H A D | num_t.c | 562 if (f >= 0 || (format->flags & CX_UNSIGNED)) 588 if (!(format->flags & CX_UNSIGNED)) 1100 else if (format->flags & CX_UNSIGNED) 1124 else if (format->flags & CX_UNSIGNED)
|
/ast/src/cmd/dsslib/flat/ |
H A D | flat.c | 265 #define FW(f,w) (((w)<<4)|((f)&(CX_STRING|CX_INTEGER|CX_UNSIGNED|CX_FLOAT))) 623 case FW(CX_UNSIGNED|CX_INTEGER,1): 626 case FW(CX_UNSIGNED|CX_INTEGER,2): 629 case FW(CX_UNSIGNED|CX_INTEGER,4): 633 case FW(CX_UNSIGNED|CX_INTEGER,8): 1599 flat->format->flags &= ~(CX_STRING|CX_BUFFER|CX_UNSIGNED|CX_INTEGER); 1600 else if (flat->format->flags & CX_UNSIGNED) 1603 flat->format->flags |= CX_UNSIGNED|CX_INTEGER; 3053 format->flags |= type->format.flags & (CX_BINARY|CX_UNSIGNED|CX_INTEGER|CX_FLOAT|CX_STRING|CX_BUFFER); 3090 *s++ = (format->flags & CX_UNSIGNED) [all...] |
/ast/src/cmd/dsslib/xml/ |
H A D | xml.c | 1041 xml->lastfield->format.flags &= ~(CX_STRING|CX_BUFFER|CX_UNSIGNED|CX_INTEGER); 1042 else if (xml->lastfield->format.flags & CX_UNSIGNED) 1045 xml->lastfield->format.flags |= CX_UNSIGNED|CX_INTEGER;
|
/ast/src/cmd/dsslib/validate/ |
H A D | validate.c | 92 sfprintf(op, (format->flags & CX_UNSIGNED) ? "%llu" : "%lld", (Cxinteger_t)n);
|
/ast/src/cmd/dsslib/bgp/ |
H A D | bgp.c | 544 { "bgp_t", "BGP route data.", { { 0 }, CX_REFERENCED }, (Cxtype_t*)"number", 0, 0, 0, 0, 0, 0, 0, { 0, 0, CX_UNSIGNED|CX_INTEGER, 4 }, 0, &bgp_member },
|