Changeset 1cf26ab in mainline
- Timestamp:
- 2016-05-14T06:44:37Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 362654a
- Parents:
- 1023758
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/main/kinit.c
r1023758 r1cf26ab 240 240 name = "<unknown>"; 241 241 242 ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);242 STATIC_ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN); 243 243 str_cpy(namebuf, TASK_NAME_BUFLEN, INIT_PREFIX); 244 244 str_cpy(namebuf + INIT_PREFIX_LEN, -
uspace/app/sbi/src/bigint.c
r1023758 r1cf26ab 379 379 printf("Convert bigint to string.\n"); 380 380 #endif 381 assert(BIGINT_BASE >= 10);381 static_assert(BIGINT_BASE >= 10); 382 382 383 383 /* Compute number of characters. */ -
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
r1023758 r1cf26ab 65 65 static inline hcca_t * hcca_get(void) 66 66 { 67 assert(sizeof(hcca_t) == 256);67 static_assert(sizeof(hcca_t) == 256); 68 68 hcca_t *hcca = memalign(256, sizeof(hcca_t)); 69 69 if (hcca) -
uspace/drv/bus/usb/uhci/uhci_batch.c
r1023758 r1cf26ab 87 87 uhci_transfer_batch_t * uhci_transfer_batch_get(usb_transfer_batch_t *usb_batch) 88 88 { 89 assert((sizeof(td_t) % 16) == 0);89 static_assert((sizeof(td_t) % 16) == 0); 90 90 #define CHECK_NULL_DISPOSE_RETURN(ptr, message...) \ 91 91 if (ptr == NULL) { \ -
uspace/lib/c/generic/double_to_str.c
r1023758 r1cf26ab 505 505 { 506 506 /* The whole computation assumes 64bit significand. */ 507 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));507 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 508 508 509 509 if (ieee_val.is_special) { … … 753 753 { 754 754 /* The whole computation assumes 64bit significand. */ 755 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));755 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 756 756 757 757 if (ieee_val.is_special) { -
uspace/lib/c/generic/ieee_double.c
r1023758 r1cf26ab 45 45 const int exponent_bias = 1075; 46 46 47 assert(sizeof(val) == sizeof(uint64_t));47 static_assert(sizeof(val) == sizeof(uint64_t)); 48 48 49 49 union { -
uspace/lib/c/include/assert.h
r1023758 r1cf26ab 37 37 #define LIBC_ASSERT_H_ 38 38 39 #define static_assert(expr) _Static_assert(expr, "") 40 39 41 /** Debugging assert macro 40 42 * -
uspace/lib/posix/source/fnmatch.c
r1023758 r1cf26ab 640 640 #define nomatch(s1, s2, flags) assert(posix_fnmatch(s1, s2, flags) == FNM_NOMATCH) 641 641 642 assert(FNM_PATHNAME == FNM_FILE_NAME);642 static_assert(FNM_PATHNAME == FNM_FILE_NAME); 643 643 match("", "", 0); 644 644 match("*", "hello", 0); -
uspace/lib/usbdev/include/usb/dev/request.h
r1023758 r1cf26ab 109 109 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 110 110 111 int assert[(sizeof(usb_device_request_setup_packet_t) == 8) ? 1: -1];112 113 111 int usb_control_request_set(usb_pipe_t *, 114 112 usb_request_type_t, usb_request_recipient_t, uint8_t, -
uspace/lib/usbdev/src/pipesinit.c
r1023758 r1cf26ab 340 340 { 341 341 assert(pipe); 342 assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);342 static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE); 343 343 344 344 if ((pipe->direction != USB_DIRECTION_BOTH) || -
uspace/lib/usbdev/src/request.c
r1023758 r1cf26ab 39 39 40 40 #define MAX_DATA_LENGTH ((size_t)(0xFFFF)) 41 42 static_assert(sizeof(usb_device_request_setup_packet_t) == 8); 41 43 42 44 /** Generic wrapper for SET requests using standard control request format. -
uspace/srv/net/inetsrv/pdu.c
r1023758 r1cf26ab 224 224 return EINVAL; 225 225 226 assert(sizeof(ip6_header_t) % 8 == 0);226 static_assert(sizeof(ip6_header_t) % 8 == 0); 227 227 assert(hdr_size % 8 == 0); 228 228 assert(offs % FRAG_OFFS_UNIT == 0);
Note:
See TracChangeset
for help on using the changeset viewer.