Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | # ========== Copyright Header Begin ========================================== |
2 | # | |
3 | # OpenSPARC T2 Processor File: Midas.pm | |
4 | # Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
5 | # 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
6 | # | |
7 | # * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
8 | # | |
9 | # This program is free software; you can redistribute it and/or modify | |
10 | # it under the terms of the GNU General Public License as published by | |
11 | # the Free Software Foundation; version 2 of the License. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 | # | |
22 | # For the avoidance of doubt, and except that if any non-GPL license | |
23 | # choice is available it will apply instead, Sun elects to use only | |
24 | # the General Public License version 2 (GPLv2) at this time for any | |
25 | # software where a choice of GPL license versions is made | |
26 | # available with the language indicating that GPLv2 or any later version | |
27 | # may be used, or where a choice of which version of the GPL is applied is | |
28 | # otherwise unspecified. | |
29 | # | |
30 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
31 | # CA 95054 USA or visit www.sun.com if you need additional information or | |
32 | # have any questions. | |
33 | # | |
34 | # ========== Copyright Header End ============================================ | |
35 | package Midas; | |
36 | ||
37 | use 5.008; | |
38 | use strict; | |
39 | use warnings; | |
40 | ||
41 | use Midas::Interface; | |
42 | use Midas::Error; | |
43 | ||
44 | ||
45 | require Exporter; | |
46 | ||
47 | ||
48 | our @ISA = qw(Exporter); | |
49 | ||
50 | # Items to export into callers namespace by default. Note: do not export | |
51 | # names by default without a very good reason. Use EXPORT_OK instead. | |
52 | # Do not simply export all your public functions/methods/constants. | |
53 | ||
54 | # This allows declaration use Midas ':all'; | |
55 | # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK | |
56 | # will save memory. | |
57 | our %EXPORT_TAGS = ( | |
58 | all => [ @Error_Codes, 'midas' ], | |
59 | errcodes => [ @Error_Codes], | |
60 | ); | |
61 | ||
62 | Exporter::export_ok_tags('all'); | |
63 | our @EXPORT = qw( | |
64 | midas | |
65 | ); | |
66 | ||
67 | our $VERSION = '3.32'; | |
68 | ||
69 | ||
70 | # Preloaded methods go here. | |
71 | ||
72 | 1; | |
73 | __END__ | |
74 | # Below is stub documentation for your module. You'd better edit it! | |
75 | ||
76 | =head1 NAME | |
77 | ||
78 | Midas - Perl extension for building diags | |
79 | ||
80 | =head1 SYNOPSIS | |
81 | ||
82 | use Midas; | |
83 | ||
84 | my $exitcode = midas(@argv); | |
85 | ||
86 | =head1 ABSTRACT | |
87 | ||
88 | This module builds diags from assembly or C. It is intented to be | |
89 | used by the script 'midas'. | |
90 | ||
91 | =head1 DESCRIPTION | |
92 | ||
93 | The normal module interface for midas is the function midas(). It | |
94 | takes the same arguments as the script 'midas' and returns an exit | |
95 | status. | |
96 | ||
97 | The ':errcodes' exporter tag exports the error codes as constants for | |
98 | use in modules that need to interpret midas exit status. | |
99 | ||
100 | The ':all' tag exports midas() and the contents of ':test' and | |
101 | ':errcodes'. | |
102 | ||
103 | =head1 SEE ALSO | |
104 | ||
105 | midas(1), midasformat(1). | |
106 | ||
107 | =head1 AUTHOR | |
108 | ||
109 | ||
110 | =cut |