File: Simple.pm

package info (click to toggle)
libinline-perl 0.46-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 620 kB
  • ctags: 122
  • sloc: perl: 3,817; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package Math::Simple;
$VERSION = '1.23';

use base 'Exporter';
@EXPORT_OK = qw(add subtract);
use strict;

use Inline C => 'DATA',
           VERSION => '1.23',
           NAME => 'Math::Simple';

1;

__DATA__
__C__
int add (int x, int y) {
    return x + y;
}

int subtract (int x, int y) {
    return x - y;
}