pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: stralloc.c,v 1.228 2008/06/30 22:13:28 marcus Exp $ + || $Id: stralloc.c,v 1.229 2008/07/16 00:33:28 mast Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "dynamic_buffer.h"   #include "pike_macros.h"   #include "pike_memory.h"   #include "pike_error.h"   #include "gc.h"
pike.git/src/stralloc.c:221: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("Wrong STRX macro used!\n");    return a;   }   #endif      #define CONVERT(FROM,TO) \    void PIKE_CONCAT4(convert_,FROM,_to_,TO) (PIKE_CONCAT(p_wchar,TO) *to, \    const PIKE_CONCAT(p_wchar,FROM) *from, \    ptrdiff_t len) \    { \ -  while(--len>=0) *(to++)=*(from++); \ +  while(--len>=0) *(to++)= (PIKE_CONCAT (p_wchar, TO)) *(from++); \    } \    INT32 PIKE_CONCAT4(compare_,FROM,_to_,TO) (const PIKE_CONCAT(p_wchar,TO) *to, \    const PIKE_CONCAT(p_wchar,FROM) *from, \    ptrdiff_t len) \    { \    int tmp; \    while(--len>=0) \    if((tmp=*(to++)-*(from++))) \    return tmp; \    return 0; \