mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 10:12:38 +02:00
commit bash-20141003 snapshot
This commit is contained in:
+6
-1
@@ -51,6 +51,7 @@ extern int printf __P((const char *, ...)); /* Yuck. Double yuck. */
|
||||
#endif
|
||||
|
||||
extern int indirection_level;
|
||||
extern int posixly_correct;
|
||||
|
||||
static int indentation;
|
||||
static int indentation_amount = 4;
|
||||
@@ -1275,7 +1276,11 @@ print_function_def (func)
|
||||
REDIRECT *func_redirects;
|
||||
|
||||
func_redirects = NULL;
|
||||
cprintf ("function %s () \n", func->name->word);
|
||||
/* When in posix mode, print functions as posix specifies them. */
|
||||
if (posixly_correct == 0)
|
||||
cprintf ("function %s () \n", func->name->word);
|
||||
else
|
||||
cprintf ("%s () \n", func->name->word);
|
||||
add_unwind_protect (reset_locals, 0);
|
||||
|
||||
indent (indentation);
|
||||
|
||||
Reference in New Issue
Block a user