My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 21 attachment: hxcpp_runtime.patch (1.2 KB)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -rc ./libs/std/Socket.cpp ../../../hxcpp_my/2,05,1/runtime/libs/std/Socket.cpp
*** ./libs/std/Socket.cpp 2010-03-22 10:19:30.000000000 +0300
--- ../../../hxcpp_my/2,05,1/runtime/libs/std/Socket.cpp 2010-03-18 22:56:16.000000000 +0300
***************
*** 208,214 ****
int p,l,dlen;
val_check_kind(o,k_socket);
val_check(data,buffer);
! buffer buf = val_to_buffer(data);
val_check(pos,int);
val_check(len,int);
p = val_int(pos);
--- 208,214 ----
int p,l,dlen;
val_check_kind(o,k_socket);
val_check(data,buffer);
! buffer buf = val_to_buffer(data);
val_check(pos,int);
val_check(len,int);
p = val_int(pos);
***************
*** 244,254 ****
}
gc_exit_blocking();
if( ret == 0 )
! return alloc_null();
return alloc_int(cc);
}

-
/**
socket_write : 'socket -> string -> void
<doc>Send the whole content of a string over a connected socket.</doc>
--- 244,253 ----
}
gc_exit_blocking();
if( ret == 0 )
! val_throw(alloc_string("Connection closed"));
return alloc_int(cc);
}

/**
socket_write : 'socket -> string -> void
<doc>Send the whole content of a string over a connected socket.</doc>
Только в ../../../hxcpp_my/2,05,1/runtime/: obj
Powered by Google Project Hosting