~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to base/sysimg.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-02-06 17:54:29 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20130206175429-13br5kqpkfjqdmre
Tags: 0.0.0+20130206.git32ff5759-1
* New upstream snapshot.
* debian/copyright: reflect upstream changes
* debian/rules: update get-orig-source to reflect upstream changes
   + Don't ship nginx
   + Adapt for new configure-random target in deps/Makefile
* Enable build of Tk wrapper.
   + debian/control: add build dependency on tk-dev
   + debian/rules: add tk rule to build-arch
* debian/julia.install: install VERSION and COMMIT files
* no-webrepl.patch: new patch
* Refresh other patches
* Add source override for config.status file under deps/random/

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
include = Core.include
7
7
 
8
 
include("export.jl")
 
8
include("exports.jl")
9
9
 
10
10
if false
11
11
    # simple print definitions for debugging. enable these if something
12
12
    # goes wrong during bootstrap before printing code is available.
13
13
    length(a::Array) = arraylen(a)
14
 
    print(x) = print(stdout_stream, x)
15
 
    show(x) = show(stdout_stream, x)
 
14
    print(x) = print(STDOUT, x)
 
15
    show(x) = show(STDOUT, x)
16
16
    write(io, a::Array{Uint8,1}) =
17
17
        ccall(:ios_write, Uint, (Ptr{Void}, Ptr{Void}, Uint),
18
18
              io.ios, a, length(a))
51
51
include("error.jl")
52
52
 
53
53
# core numeric operations & types
 
54
include("promotion.jl")
54
55
include("bool.jl")
55
56
include("number.jl")
56
57
include("int.jl")
57
 
include("promotion.jl")
58
58
include("operators.jl")
59
59
include("pointer.jl")
60
60
 
79
79
# I/O, strings & printing
80
80
include("io.jl")
81
81
include("iostring.jl")
 
82
include("stream.jl")
 
83
include("socket.jl")
 
84
include("fs.jl")
 
85
importall FS
 
86
include("process.jl")
 
87
ccall(:jl_get_uv_hooks, Void, ())
82
88
include("char.jl")
83
89
include("ascii.jl")
84
90
include("utf8.jl")
88
94
include("grisu.jl")
89
95
import Grisu.print_shortest
90
96
include("printf.jl")
91
 
using Printf
 
97
importall Printf
92
98
 
93
99
# concurrency and parallelism
94
100
include("iterator.jl")
95
101
include("task.jl")
96
 
include("process.jl")
97
102
include("serialize.jl")
98
103
include("multi.jl")
99
104
 
102
107
include("osutils.jl")
103
108
include("libc.jl")
104
109
include("env.jl")
105
 
include("errno_h.jl")
 
110
include("errno.jl")
 
111
using Errno
106
112
include("file.jl")
107
113
include("path.jl")
108
114
include("stat.jl")
109
115
 
110
 
# front end
 
116
# front end & code loading
111
117
include("client.jl")
 
118
include("loading.jl")
112
119
 
113
120
# core math functions
114
121
include("intfuncs.jl")
115
122
include("floatfuncs.jl")
116
123
include("math.jl")
117
 
using Math
 
124
importall Math
118
125
 
119
126
# random number generation and statistics
120
127
include("statistics.jl")
121
128
include("librandom.jl")
122
 
include("rng.jl")
123
 
using RNG
 
129
include("random.jl")
 
130
importall Random
124
131
 
125
132
# Combinatorics
126
133
include("sort.jl")
127
 
using Sort
 
134
importall Sort
128
135
include("combinatorics.jl")
129
136
 
130
137
# distributed arrays and memory-mapped arrays
134
141
 
135
142
# utilities - version, timing, help, edit
136
143
include("version.jl")
137
 
include("util.jl")
138
144
include("datafmt.jl")
139
145
include("deepcopy.jl")
 
146
include("util.jl")
 
147
include("test.jl")
140
148
 
141
149
# linear algebra
142
150
include("blas.jl")
151
159
# signal processing
152
160
include("fftw.jl")
153
161
include("dsp.jl")
154
 
using DSP
 
162
importall DSP
 
163
 
 
164
# BigInts and BigFloats
 
165
include("gmp.jl")
 
166
importall GMP
 
167
 
 
168
# deprecated functions
 
169
include("deprecated.jl")
 
170
 
 
171
# git utils & package manager
 
172
include("git.jl")
 
173
include("pkg.jl")
155
174
 
156
175
include = include_from_node1
157
176
 
159
178
compile_hint(pwd, ())
160
179
compile_hint(fdio, (Int32,))
161
180
compile_hint(ProcessGroup, (Int, Array{Any,1}, Array{Any,1}))
162
 
compile_hint(select_read, (FDSet, Float64))
163
181
compile_hint(next, (Dict{Any,Any}, Int))
164
182
compile_hint(start, (Dict{Any,Any},))
165
183
compile_hint(perform_work, ())
175
193
compile_hint(Set, ())
176
194
compile_hint(assign, (Dict{Any,Any}, Bool, Cmd))
177
195
compile_hint(rehash, (Dict{Any,Any}, Int))
178
 
compile_hint(run, (Cmd,))
179
 
compile_hint(spawn, (Cmd,))
180
 
compile_hint(assign, (Dict{Any,Any}, Bool, FileDes))
 
196
#compile_hint(run, (Cmd,))
 
197
#compile_hint(spawn, (Cmd,))
 
198
#compile_hint(assign, (Dict{Any,Any}, Bool, FileDes))
181
199
compile_hint(wait, (Int32,))
182
200
compile_hint(system_error, (Symbol, Bool))
183
201
compile_hint(SystemError, (ASCIIString,))
187
205
compile_hint(min, (Int32, Int32))
188
206
compile_hint(==, (ASCIIString, ASCIIString))
189
207
compile_hint(arg_gen, (ASCIIString,))
190
 
compile_hint(RNG.librandom_init, ())
191
 
compile_hint(RNG.srand, (ASCIIString, Int))
 
208
compile_hint(Random.librandom_init, ())
 
209
compile_hint(Random.srand, (ASCIIString, Int))
 
210
compile_hint(Random.srand, (Uint64,))
192
211
compile_hint(open, (ASCIIString, Bool, Bool, Bool, Bool))
193
 
compile_hint(RNG.srand, (Uint64,))
194
212
compile_hint(done, (IntSet, Int64))
195
213
compile_hint(next, (IntSet, Int64))
196
214
compile_hint(ht_keyindex, (Dict{Any,Any}, Int32))
197
215
compile_hint(perform_work, (WorkItem,))
198
216
compile_hint(notify_done, (WorkItem,))
199
217
compile_hint(work_result, (WorkItem,))
200
 
compile_hint(del_fd_handler, (Int32,))
201
 
compile_hint(enqueue, (Array{WorkItem,1}, WorkItem))
 
218
compile_hint(unshift!, (Array{WorkItem,1}, WorkItem))
202
219
compile_hint(enq_work, (WorkItem,))
203
 
compile_hint(pop, (Array{WorkItem,1},))
 
220
compile_hint(pop!, (Array{WorkItem,1},))
204
221
compile_hint(string, (Int,))
205
222
compile_hint(parse_int, (Type{Int}, ASCIIString, Int))
206
223
compile_hint(repeat, (ASCIIString, Int))
207
224
compile_hint(KeyError, (Int,))
208
225
compile_hint(show, (Float64,))
209
226
compile_hint(match, (Regex, ASCIIString))
210
 
compile_hint(strlen, (ASCIIString,))
 
227
compile_hint(length, (ASCIIString,))
211
228
compile_hint(alignment, (Float64,))
212
229
compile_hint(repl_callback, (Expr, Int))
213
230
compile_hint(istaskdone, (Task,))
214
 
compile_hint(make_stdout_stream, ())
215
 
compile_hint(make_stdin_stream, ())
216
 
compile_hint(make_stderr_stream, ())
217
231
compile_hint(int, (Uint64,))
218
232
compile_hint(copy, (Bool,))
219
233
compile_hint(bool, (Bool,))
228
242
compile_hint(isequal, (Symbol, Symbol))
229
243
compile_hint(isequal, (Bool, Bool))
230
244
compile_hint(WaitFor, (Symbol, RemoteRef))
231
 
compile_hint(answer_color, ())
232
245
compile_hint(get, (EnvHash, ASCIIString, ASCIIString))
233
246
compile_hint(notify_empty, (WorkItem,))
234
247
compile_hint(rr2id, (RemoteRef,))
300
313
 
301
314
using Base
302
315
 
303
 
let JL_PRIVATE_LIBDIR = getenv("JL_PRIVATE_LIBDIR")
 
316
let JL_PRIVATE_LIBDIR = try getenv("JL_PRIVATE_LIBDIR") catch e "lib/julia" end
304
317
# create system image file
305
318
ccall(:jl_save_system_image, Void, (Ptr{Uint8},),
306
319
      "$JULIA_HOME/../$JL_PRIVATE_LIBDIR/sys.ji")