[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bashline.c: accidental commented-out code?

From: Timothy A. McDaniel
Subject: bashline.c: accidental commented-out code?
Date: Sat, 21 Jul 2001 20:02:51 -0500 (CDT)

Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: aix4.3.3.0
Compiler: xlc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' 
-DCONF_OSTYPE='aix4.3.3.0' -DCONF_MACHTYPE='powerpc-ibm-aix4.3.3.0' 
-DCONF_VENDOR='ibm' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/usr/local/include -g
uname output: AIX bdstbt14 3 4 00012A5F4C00
Machine Type: powerpc-ibm-aix4.3.3.0

Bash Version: 2.05
Patch Level: 0
Release Status: release

    xlc  -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"powerpc"' 
-DCONF_OSTYPE='"aix4.3.3.0"' -DCONF_MACHTYPE='"powerpc-ibm-aix4.3.3.0"' 
-DCONF_VENDOR='"ibm"' -DSHELL -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/usr/local/include -g -c bashline.c
    "bashline.c", line 901.12: 1506-342 (W) "/*" detected in comment.

Yes, the comment on lines 897-8 is not terminated there!  What looks
like two lines of valid code are commented out.

    "bashline.c", line 904.50: 1506-280 (E) Function argument assignment 
between types "char*(*)(const char*,int)" and "char*(*)()" is not allowed.

The line is
          matches = rl_completion_matches (text, prog_complete_return);
and char 50 is the start of prog_complete_return.

    "bashline.c", line 1995.32: 1506-068 (E) Operation between types 
"char*(*)(const char*,int)" and "char*(*)()" is not allowed.

The line is
  rl_completion_entry_function = history_completion_generator;

    Compile on AIX 4.3.3.

    Maybe the second two messages are specific to AIX and no developer had
    access ... but surely some developer should have tried defining 
    PROGRAMMABLE_COMPLETION and noticed a warning about a nested

reply via email to

[Prev in Thread] Current Thread [Next in Thread]