~ubuntu-branches/ubuntu/trusty/erlang/trusty

« back to all changes in this revision

Viewing changes to lib/dialyzer/test/options1_tests_SUITE_data/src/compiler/v3_kernel.hrl

  • Committer: Bazaar Package Importer
  • Author(s): Clint Byrum
  • Date: 2011-05-05 15:48:43 UTC
  • mfrom: (3.5.13 sid)
  • Revision ID: james.westby@ubuntu.com-20110505154843-0om6ekzg6m7ugj27
Tags: 1:14.b.2-dfsg-3ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop libwxgtk2.8-dev build dependency. Wx isn't in main, and not
    supposed to.
  - Drop erlang-wx binary.
  - Drop erlang-wx dependency from -megaco, -common-test, and -reltool, they
    do not really need wx. Also drop it from -debugger; the GUI needs wx,
    but it apparently has CLI bits as well, and is also needed by -megaco,
    so let's keep the package for now.
  - debian/patches/series: Do what I meant, and enable build-options.patch
    instead.
* Additional changes:
  - Drop erlang-wx from -et
* Dropped Changes:
  - patches/pcre-crash.patch: CVE-2008-2371: outer level option with
    alternatives caused crash. (Applied Upstream)
  - fix for ssl certificate verification in newSSL: 
    ssl_cacertfile_fix.patch (Applied Upstream)
  - debian/patches/series: Enable native.patch again, to get stripped beam
    files and reduce the package size again. (build-options is what
    actually accomplished this)
  - Remove build-options.patch on advice from upstream and because it caused
    odd build failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%% ``The contents of this file are subject to the Erlang Public License,
 
2
%% Version 1.1, (the "License"); you may not use this file except in
 
3
%% compliance with the License. You should have received a copy of the
 
4
%% Erlang Public License along with this software. If not, it can be
 
5
%% retrieved via the world wide web at http://www.erlang.org/.
 
6
%% 
 
7
%% Software distributed under the License is distributed on an "AS IS"
 
8
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
 
9
%% the License for the specific language governing rights and limitations
 
10
%% under the License.
 
11
%% 
 
12
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
 
13
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
 
14
%% AB. All Rights Reserved.''
 
15
%% 
 
16
%%     $Id: v3_kernel.hrl,v 1.1 2008/12/17 09:53:43 mikpe Exp $
 
17
%%
 
18
 
 
19
%% Purpose : Kernel Erlang as records.
 
20
 
 
21
%% It would be nice to incorporate some generic functions as well but
 
22
%% this could make including this file difficult.
 
23
%% N.B. the annotation field is ALWAYS the first field!
 
24
 
 
25
%% Kernel annotation record.
 
26
-record(k, {us,                                 %Used variables
 
27
            ns,                                 %New variables
 
28
            a}).                                %Core annotation
 
29
 
 
30
%% Literals
 
31
%% NO CHARACTERS YET.
 
32
%%-record(k_char, {anno=[],val}).
 
33
-record(k_int, {anno=[],val}).
 
34
-record(k_float, {anno=[],val}).
 
35
-record(k_atom, {anno=[],val}).
 
36
-record(k_string, {anno=[],val}).
 
37
-record(k_nil, {anno=[]}).
 
38
 
 
39
-record(k_tuple, {anno=[],es}).
 
40
-record(k_cons, {anno=[],hd,tl}).
 
41
-record(k_binary, {anno=[],segs}).
 
42
-record(k_bin_seg, {anno=[],size,unit,type,flags,seg,next}).
 
43
-record(k_bin_end, {anno=[]}).
 
44
-record(k_var, {anno=[],name}).
 
45
 
 
46
-record(k_local, {anno=[],name,arity}).
 
47
-record(k_remote, {anno=[],mod,name,arity}).
 
48
-record(k_internal, {anno=[],name,arity}).
 
49
 
 
50
-record(k_mdef, {anno=[],name,exports,attributes,body}).
 
51
-record(k_fdef, {anno=[],func,arity,vars,body}).
 
52
 
 
53
-record(k_seq, {anno=[],arg,body}).
 
54
-record(k_put, {anno=[],arg,ret=[]}).
 
55
-record(k_bif, {anno=[],op,args,ret=[]}).
 
56
-record(k_test, {anno=[],op,args}).
 
57
-record(k_call, {anno=[],op,args,ret=[]}).
 
58
-record(k_enter, {anno=[],op,args}).
 
59
-record(k_receive, {anno=[],var,body,timeout,action,ret=[]}).
 
60
-record(k_receive_accept, {anno=[]}).
 
61
-record(k_receive_next, {anno=[]}).
 
62
-record(k_try, {anno=[],arg,vars,body,evars,handler,ret=[]}).
 
63
-record(k_catch, {anno=[],body,ret=[]}).
 
64
 
 
65
-record(k_match, {anno=[],vars,body,ret=[]}).
 
66
-record(k_alt, {anno=[],first,then}).
 
67
-record(k_select, {anno=[],var,types}).
 
68
-record(k_type_clause, {anno=[],type,values}).
 
69
-record(k_val_clause, {anno=[],val,body}).
 
70
-record(k_guard, {anno=[],clauses}).
 
71
-record(k_guard_clause, {anno=[],guard,body}).
 
72
 
 
73
-record(k_break, {anno=[],args=[]}).
 
74
-record(k_return, {anno=[],args=[]}).
 
75
 
 
76
%%k_get_anno(Thing) -> element(2, Thing).
 
77
%%k_set_anno(Thing, Anno) -> setelement(2, Thing, Anno).