[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compile error if DPAREN_ARITHMETIC not enabled
From: |
jaakko . hyvatti |
Subject: |
Compile error if DPAREN_ARITHMETIC not enabled |
Date: |
Sun, 8 Jun 2003 09:40:11 +0300 |
Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2
uname output: Linux mansikka 2.4.20 #2 ti helmi 25 10:09:07 EET 2003 i686
unknown
Machine Type: i686-pc-linux-gnu
Bash Version: 2.05b
Patch Level: 0
Release Status: release
Description:
If any of COND_COMMAND, DPAREN_ARITHMETIC or ARITH_FOR_COMMAND
are not enabled in configuration, compilation of execute_cmd.c
fails.
Repeat-By:
./configure --disable-dparen-arithmetic
make
Fix:
--- execute_cmd.c.~1~ Mon Mar 18 18:24:22 2002
+++ execute_cmd.c Sun Jun 8 06:03:36 2003
@@ -286,14 +286,19 @@
{
if (currently_executing_command->type == cm_simple)
return currently_executing_command->value.Simple->line;
- else if (currently_executing_command->type == cm_cond)
+#if defined (COND_COMMAND)
+ if (currently_executing_command->type == cm_cond)
return currently_executing_command->value.Cond->line;
- else if (currently_executing_command->type == cm_arith)
+#endif
+#if defined (DPAREN_ARITHMETIC)
+ if (currently_executing_command->type == cm_arith)
return currently_executing_command->value.Arith->line;
- else if (currently_executing_command->type == cm_arith_for)
+#endif
+#if defined (ARITH_FOR_COMMAND)
+ if (currently_executing_command->type == cm_arith_for)
return currently_executing_command->value.ArithFor->line;
- else
- return line_number;
+#endif
+ return line_number;
}
else if (running_trap)
return trap_line_number;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Compile error if DPAREN_ARITHMETIC not enabled,
jaakko . hyvatti <=