Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/str.c

    r63e27ef r1772e6d  
    109109#include <errno.h>
    110110#include <align.h>
    111 #include <assert.h>
     111#include <debug.h>
    112112#include <macros.h>
    113 #include <mm/slab.h>
    114113
    115114/** Check the condition if wchar_t is signed */
     
    567566{
    568567        /* There must be space for a null terminator in the buffer. */
    569         assert(size > 0);
    570         assert(src != NULL);
     568        ASSERT(size > 0);
    571569       
    572570        size_t src_off = 0;
     
    601599{
    602600        /* There must be space for a null terminator in the buffer. */
    603         assert(size > 0);
     601        ASSERT(size > 0);
    604602       
    605603        size_t src_off = 0;
     
    635633        size_t size = str_size(src) + 1;
    636634        char *dest = malloc(size, 0);
    637         assert(dest);
     635        ASSERT(dest);
    638636       
    639637        str_cpy(dest, size, src);
     
    668666       
    669667        char *dest = malloc(size + 1, 0);
    670         assert(dest);
     668        ASSERT(dest);
    671669       
    672670        str_ncpy(dest, size + 1, src, size);
     
    691689
    692690        /* There must be space for a null terminator in the buffer. */
    693         assert(size > 0);
     691        ASSERT(size > 0);
    694692
    695693        src_idx = 0;
     
    797795    bool *neg, uint64_t *result)
    798796{
    799         assert(endptr != NULL);
    800         assert(neg != NULL);
    801         assert(result != NULL);
     797        ASSERT(endptr != NULL);
     798        ASSERT(neg != NULL);
     799        ASSERT(result != NULL);
    802800       
    803801        *neg = false;
     
    918916    bool strict, uint64_t *result)
    919917{
    920         assert(result != NULL);
     918        ASSERT(result != NULL);
    921919       
    922920        bool neg;
Note: See TracChangeset for help on using the changeset viewer.