From 770526c17acd97e1e85c98bfca98d1d4b69f53f8 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sat, 1 Jan 2005 20:26:27 +0000 Subject: strEQ/strNE of 1 character strings seems better hand inlined, because it generates smaller object code (as well as being faster than a true function call) p4raw-id: //depot/perl@23725 --- util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 5a8ae3be82..e99c6af68d 100644 --- a/util.c +++ b/util.c @@ -1,7 +1,7 @@ /* util.c * * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, - * 2000, 2001, 2002, 2003, 2004, by Larry Wall and others + * 2000, 2001, 2002, 2003, 2004, 2005, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -2045,7 +2045,7 @@ Perl_my_popen(pTHX_ char *cmd, char *mode) register I32 This, that; register Pid_t pid; SV *sv; - I32 doexec = strNE(cmd,"-"); + I32 doexec = !(*cmd == '-' && cmd[1] == '\0'); I32 did_pipes = 0; int pp[2]; -- cgit v1.2.1