line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id: Dice.pm,v 1.2 2004-11-06 15:49:27-05 erob Exp $ |
2
|
|
|
|
|
|
|
# Erob::L4Env - |
3
|
|
|
|
|
|
|
# Access L4 primitives with L4Env, Dice compiler. |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# Avoid ambiguities and namespaces collisions |
6
|
|
|
|
|
|
|
# with L4Env et al. |
7
|
|
|
|
|
|
|
package Erob::L4Env; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Stick with 5.0.5 |
10
|
|
|
|
|
|
|
# unless we need features in >= 5.8. |
11
|
1
|
|
|
1
|
|
10568
|
use 5.00005; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
46
|
|
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
106
|
|
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
95
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
$VERSION = "0.01_11"; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
# Preloaded methods go here. |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
1
|
|
sub MkPrivateHeader { |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Generate C header for the given client or server. |
24
|
|
|
|
|
|
|
# We want portable code and the ability to play in L4. -erob |
25
|
|
|
|
|
|
|
# Parameters are: |
26
|
|
|
|
|
|
|
# libio => Generate code for the GenericIO subsystem. |
27
|
|
|
|
|
|
|
# libsomething => Generate code for subsystem SOMETHING. |
28
|
|
|
|
|
|
|
# libssl => Experimental OpenSSL support. |
29
|
|
|
|
|
|
|
# libsdl => Experimental SDL support. |
30
|
|
|
|
|
|
|
# output => "lib_hello_client.h" |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Your code here... |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
1; |
36
|
|
|
|
|
|
|
__END__ |