bug-cflow
[Top][All Lists]
Advanced

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

[Bug-cflow] Prototype Parameter Confused with Subroutine Name


From: Daniel F. Gleeson
Subject: [Bug-cflow] Prototype Parameter Confused with Subroutine Name
Date: Fri, 7 Oct 2005 13:01:00 -0500 (CDT)
User-agent: SquirrelMail/1.4.3a-9.EL3

version : cflow-0.2.3


============================================================================
/* try.c */


extern int abc(char *message3);


int     try()
{
        char    dmys[20];
        char    mess[500];


        message2(1,mess,dmys);

        message(1,mess,dmys);
}

==================================================================

A prototype with a variable name in the parameter list
get confused with a function of the same name.

i.e. if message3 is message the message() is not recognized by cflow.
i.e. if message3 is message2 the message2() is not recognized by cflow.


=====================================================================
$ cflow try.c
try() <int try () at try.c:7>:
    message2()
    message()

Correct Output.


Change message3 to message and then...
$ cflow try.c
try() <int try () at try.c:7>:
    message2()

Incorrect Output.

Dan Gleeson
American Liberator Technologies

Attachment: config.log
Description: Text Data


reply via email to

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