Branch: Tag:

2016-08-20

2016-08-20 11:08:25 by Martin Nilsson <nilsson@fastmail.com>

binary_findstring_pcharp had one user, so simplify the arguments for both sides.

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.
106:    struct define_argument *,    struct string_builder *);    -  +    struct define   {    struct hash_entry link; /* must be first */
893:    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);