Print this page
Rich's feedback

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsysdemangle/common/str.c
          +++ new/usr/src/lib/libdemangle/common/str.c
↓ open down ↓ 8 lines elided ↑ open up ↑
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2017 Jason King
  14   14   */
  15   15  #include <sys/debug.h>
  16   16  #include <sys/sysmacros.h>
  17   17  #include <string.h>
  18   18  #include "str.h"
  19      -#include "sysdemangle_int.h"
       19 +#include "demangle_int.h"
  20   20  
  21   21  #define STR_CHUNK_SZ    (64U)
  22   22  
  23   23  /* are we storing a reference vs. a dynamically allocated copy? */
  24   24  #define IS_REF(s) ((s)->str_s != NULL && (s)->str_size == 0)
  25   25  
  26   26  /*
  27   27   * Dynamically resizeable strings, with lazy allocation when initialized
  28   28   * with a constant string value
  29   29   *
↓ open down ↓ 284 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX