Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 241585 Details for
Bug 331377
dev-lang/ocaml-3.10.2 arguments passed to linker in wrong order
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
The C wrapper
wrapper.c (text/plain), 606 bytes, created by
Christopher Head
on 2010-08-06 00:42:21 UTC
(
hide
)
Description:
The C wrapper
Filename:
MIME Type:
Creator:
Christopher Head
Created:
2010-08-06 00:42:21 UTC
Size:
606 bytes
patch
obsolete
>#include <caml/alloc.h> >#include <caml/memory.h> >#include <caml/mlvalues.h> >#include <string.h> >#include <zlib.h> > >CAMLprim value caml_wrapper_compress(value input) { > CAMLparam1(input); > CAMLlocal1(result); > unsigned long input_length = caml_string_length(input); > unsigned long bound = compressBound(input_length); > unsigned char buffer[bound]; > unsigned long output_length = sizeof(buffer); > compress(buffer, &output_length, (const unsigned char *) String_val(input), input_length); > result = caml_alloc_string(output_length); > memcpy(String_val(result), buffer, output_length); > CAMLreturn(result); >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 331377
:
241583
| 241585 |
241587