view gen_Stub.pl @ 1:9a4279c88aa7 default tip

copy from xv6 repository
author anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 06 Mar 2020 14:59:59 +0900
parents
children
line wrap: on
line source

#!/usr/bin/env perl
use strict;
use warnings;

use FindBin;
use lib "$FindBin::Bin/lib";
use Gears::Util;
use Gears::Stub;

use Getopt::Std;
use File::Spec;

use DDP {deparse => 1};

my $target_cbc_file = shift;
my $stubManager = Gears::Stub->new(file_name => File::Spec->rel2abs($target_cbc_file));

my $interface_w_impl = $stubManager->findInterfacewImpl(File::Spec->rel2abs($target_cbc_file));