Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git] / builtins / break.def
index d72f9e3..d6f8598 100644 (file)
@@ -27,8 +27,14 @@ $SHORT_DOC break [n]
 Exit from within a FOR, WHILE or UNTIL loop.  If N is specified,
 break N levels.
 $END
+#include <config.h>
+
+#if defined (HAVE_UNISTD_H)
+#include <unistd.h>
+#endif
 
 #include "../shell.h"
+#include "common.h"
 
 extern char *this_command_name;
 
@@ -45,6 +51,7 @@ int continuing = 0;
 
 /* Set up to break x levels, where x defaults to 1, but can be specified
    as the first argument. */
+int
 break_builtin (list)
      WORD_LIST *list;
 {
@@ -75,6 +82,7 @@ $END
 
 /* Set up to continue x levels, where x defaults to 1, but can be specified
    as the first argument. */
+int
 continue_builtin (list)
      WORD_LIST *list;
 {
@@ -103,7 +111,7 @@ check_loop_level ()
 {
 #if defined (BREAK_COMPLAINS)
   if (!loop_level)
-    builtin_error ("Only meaningful in a `for', `while', or `until' loop");
+    builtin_error ("only meaningful in a `for', `while', or `until' loop");
 #endif /* BREAK_COMPLAINS */
 
   return (loop_level);