Changeset 230 in svn for trunk/processor/head.m4


Ignore:
Timestamp:
2006-10-10T02:31:50+02:00 (9 years ago)
Author:
Xuefer
Message:

processor: dprint upgrade, added --enable-xcache-dprint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/head.m4

    r220 r230  
    7777};
    7878/* }}} */
    79 #ifdef XCACHE_HAVE_DPRINT
     79#ifdef HAVE_XCACHE_DPRINT
    8080static void xc_dprint_indent(int indent) /* {{{ */
    8181{
     
    8585    }
    8686}
    87 #endif
    88 /* }}} */
     87/* }}} */
     88static void xc_dprint_str_len(const char *str, int len) /* {{{ */
     89{
     90    const unsigned char *p = str;
     91    int i;
     92    for (i = 0; i < len; i ++) {
     93        if (p[i] < 32 || p[i] == 127) {
     94            fprintf(stderr, "\\%03o", (unsigned int) p[i]);
     95        }
     96        else {
     97            fputc(p[i], stderr);
     98        }
     99    }
     100}
     101/* }}} */
     102#endif
    89103/* {{{ xc_zstrlen_char */
    90104static inline int xc_zstrlen_char(zstr s)
     
    402416/* }}} */
    403417/* export: void xc_dprint(xc_entry_t *src, int indent TSRMLS_DC); :export {{{ */
    404 #ifdef XCACHE_HAVE_DPRINT
     418#ifdef HAVE_XCACHE_DPRINT
    405419void xc_dprint(xc_entry_t *src, int indent TSRMLS_DC) {
    406420    IFDPRINT(`INDENT()`'fprintf(stderr, "xc_entry_t:src");')
Note: See TracChangeset for help on using the changeset viewer.