pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.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: builtin_functions.c,v 1.476 2005/04/12 09:59:01 mast Exp $ + || $Id: builtin_functions.c,v 1.477 2005/04/21 15:45:06 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.476 2005/04/12 09:59:01 mast Exp $"); + RCSID("$Id: builtin_functions.c,v 1.477 2005/04/21 15:45:06 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:1603:    }      #define GET_CONT_CHAR(in, i, c) do { \    i++; \    if (i >= in->len) \    Pike_error ("utf8_to_string: " \    "Truncated UTF-8 sequence at end of string.\n"); \    c = ((unsigned char *)(in->str))[i]; \    if ((c & 0xc0) != 0x80) \    Pike_error ("utf8_to_string: Expected continuation character " \ -  "at index %d, got 0x%02x.\n", i, c); \ +  "at index %"PRINTPTRDIFFT"d, got 0x%02x.\n", i, c); \    } while (0)      #define UTF8_SEQ_ERROR(prefix, c, i, problem) do { \    Pike_error ("utf8_to_string: UTF-8 sequence beginning with %s0x%02x " \    "at index %"PRINTPTRDIFFT"d %s.\n", prefix, c, i, problem); \    } while (0)       if ((c & 0xe0) == 0xc0) {    /* 11bit */    if (!(c & 0x1e))