X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=builtins%2Fbreak.def;h=1025414526802653eed8612d79231e04c345f8fb;hb=refs%2Ftags%2Fdevel-base-dist;hp=e90a32b5b9372c60c5a940f48defa8e3075956cc;hpb=f73dda092b33638d2d5e9c35375f687a607b5403;p=platform%2Fupstream%2Fbash.git diff --git a/builtins/break.def b/builtins/break.def index e90a32b..1025414 100644 --- a/builtins/break.def +++ b/builtins/break.def @@ -1,7 +1,7 @@ This file is break.def, from which is created break.c. It implements the builtins "break" and "continue" in Bash. -Copyright (C) 1987, 1989, 1991 Free Software Foundation, Inc. +Copyright (C) 1987-2002 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -59,7 +59,7 @@ int break_builtin (list) WORD_LIST *list; { - long newbreak; + intmax_t newbreak; if (check_loop_level () == 0) return (EXECUTION_SUCCESS); @@ -68,7 +68,7 @@ break_builtin (list) if (newbreak <= 0) { - builtin_error ("loop count must be > 0"); + sh_erange (list->word->word, "loop count"); breaking = loop_level; return (EXECUTION_FAILURE); } @@ -94,7 +94,7 @@ int continue_builtin (list) WORD_LIST *list; { - long newcont; + intmax_t newcont; if (check_loop_level () == 0) return (EXECUTION_SUCCESS); @@ -103,7 +103,7 @@ continue_builtin (list) if (newcont <= 0) { - builtin_error ("loop count must be > 0"); + sh_erange (list->word->word, "loop count"); breaking = loop_level; return (EXECUTION_FAILURE); }