~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to array.c

  • Committer: Arnold D. Robbins
  • Date: 2010-07-16 11:47:02 UTC
  • Revision ID: git-v1:315bd501ca696bc3e3c938b4604d8dac7a6f512f
Tags: gawk-3.1.5
Move to gawk 3.1.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 */
4
4
 
5
5
/* 
6
 
 * Copyright (C) 1986, 1988, 1989, 1991-2004 the Free Software Foundation, Inc.
 
6
 * Copyright (C) 1986, 1988, 1989, 1991-2005 the Free Software Foundation, Inc.
7
7
 * 
8
8
 * This file is part of GAWK, the GNU implementation of the
9
9
 * AWK Programming Language.
20
20
 * 
21
21
 * You should have received a copy of the GNU General Public License
22
22
 * along with this program; if not, write to the Free Software
23
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
 
23
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
24
24
 */
25
25
 
26
26
/*
435
435
 
436
436
                if (s1_len == s2->stlen) {
437
437
                        if (s1_len == 0         /* "" is a valid index */
438
 
                            || STREQN(s1_str, s2->stptr, s1_len))
 
438
                            || memcmp(s1_str, s2->stptr, s1_len) == 0)
439
439
                                return bucket;
440
440
                }
441
441
        }
609
609
        
610
610
                        if (s1_len == s2->stlen) {
611
611
                                if (s1_len == 0         /* "" is a valid index */
612
 
                                    || STREQN(s1_str, s2->stptr, s1_len))
 
612
                                    || memcmp(s1_str, s2->stptr, s1_len) == 0)
613
613
                                        break;
614
614
                        }
615
615
                }