pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:1: - /* + /* -*- mode: c; encoding: utf-8; -*-   || 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.   */      #include "global.h"   #include "stralloc.h"   #include "module_support.h"   #include "interpret.h"   #include "svalue.h"
pike.git/src/cpp.cmod:99:   };         struct cpp;   struct define;   typedef void (*magic_define_fun)(struct cpp *,    struct define *,    struct define_argument *,    struct string_builder *);    -  +    struct define   {    struct hash_entry link; /* must be first */    magic_define_fun magic;    int args;    ptrdiff_t num_parts;    short inside; /* 1 - Don't expand. 2 - In use. */    short varargs;    struct pike_string *first;    struct define_part parts[1];
pike.git/src/cpp.cmod:886:    *! @tt{#ifdef MY_DEF@}.    *!    *! @seealso    *! @[#if], @[#ifdef], @[constant()]    */   static void check_defined(struct cpp *this,    struct define *UNUSED(def),    struct define_argument *args,    struct string_builder *tmp)   { -  struct pike_string *s = NULL; -  PCHARP x = MKPCHARP(args[0].arg.ptr,args[0].arg.shift); -  s = binary_findstring_pcharp( x, args[0].len ); +  struct pike_string *s = binary_findstring_wide( args[0].arg.ptr, +  args[0].arg.shift, +  args[0].len );       if(s && FIND_DEFINE(s))    string_builder_binary_strcat(tmp, " 1 ", 3);    else    string_builder_binary_strcat(tmp, " 0 ", 3);   }      static int do_safe_index_call(struct cpp *this, struct pike_string *s)   {    int res;