A
Abhinav
Hi,
I have a piece of code which parses a file using C::Scan, and takes in the
declarations :
use strict;
use warnings;
use C::Scan;
my $c = new C::Scan 'filename' => $name;
my $fdec = $c->get('fdecls');
I am able to get the declarations in $fdec, but I also get the following
warnings:
In file included from :1:
sample_main.oc:4:8: macro names must be identifiers
sample_main.oc:4:15: s.h: No such file or directory
sample_main.oc:8:20: adcore.h: No such file or directory
sample_main.oc:12:20: adxstf.h: No such file or directory
I basically am interested *only* in the *prototypes* of the functions.[1]
How can I remove the warnings given below ? I tried looking through Scan.pm
and Data/Flow.pm, but without success.
Thanks
Abhinav
[1] : $fdec contains info for functions with only prototypes, as well as
definitions. I need only the prototypes. I am currently checking if the
result matches with m/[)]\s*[;]\s*$/ to get what I need. Anyway to do it
through C::Scan itself?
I have a piece of code which parses a file using C::Scan, and takes in the
declarations :
use strict;
use warnings;
use C::Scan;
my $c = new C::Scan 'filename' => $name;
my $fdec = $c->get('fdecls');
I am able to get the declarations in $fdec, but I also get the following
warnings:
In file included from :1:
sample_main.oc:4:8: macro names must be identifiers
sample_main.oc:4:15: s.h: No such file or directory
sample_main.oc:8:20: adcore.h: No such file or directory
sample_main.oc:12:20: adxstf.h: No such file or directory
I basically am interested *only* in the *prototypes* of the functions.[1]
How can I remove the warnings given below ? I tried looking through Scan.pm
and Data/Flow.pm, but without success.
Thanks
Abhinav
[1] : $fdec contains info for functions with only prototypes, as well as
definitions. I need only the prototypes. I am currently checking if the
result matches with m/[)]\s*[;]\s*$/ to get what I need. Anyway to do it
through C::Scan itself?