Navigation Menu

Skip to content

Commit

Permalink
remove support for deprecated "B" nci signature
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed Apr 23, 2011
1 parent a608e9a commit d818fb5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
1 change: 0 additions & 1 deletion include/parrot/nci.h
Expand Up @@ -31,7 +31,6 @@ typedef enum {
enum_nci_sig_intval,

enum_nci_sig_string,
enum_nci_sig_bufref,

enum_nci_sig_ptr,
enum_nci_sig_pmc,
Expand Down
14 changes: 0 additions & 14 deletions src/nci/libffi.c
Expand Up @@ -277,7 +277,6 @@ nci_to_ffi_type(PARROT_INTERP, nci_sig_elem_t nci_t)
case enum_nci_sig_intval: return &ffi_type_parrot_intval;

case enum_nci_sig_string:
case enum_nci_sig_bufref:
return &ffi_type_pointer;

case enum_nci_sig_ptr:
Expand Down Expand Up @@ -399,14 +398,6 @@ call_ffi_thunk(PARROT_INTERP, ARGMOD(PMC *nci_pmc), ARGMOD(PMC *self))
translation_pointers[i] = pcc_arg[j++].s;
values[i] = &translation_pointers[i];
break;
case enum_nci_sig_bufref:
translation_pointers[i] = STRING_IS_NULL(pcc_arg[j].s) ?
(char *)NULL :
Parrot_str_to_cstring(interp, pcc_arg[j].s);
j++;
middle_man[i] = &translation_pointers[i];
values[i] = &middle_man[i];
break;
case enum_nci_sig_char:
translation_pointers[i] = mem_internal_allocate_zeroed_typed(char);
*(char *)(translation_pointers[i]) = (char)pcc_arg[j++].i;
Expand Down Expand Up @@ -559,11 +550,6 @@ call_ffi_thunk(PARROT_INTERP, ARGMOD(PMC *nci_pmc), ARGMOD(PMC *self))
*/
for (i = 0; i < nci->arity; i++) {
switch (VTABLE_get_integer_keyed_int(interp, nci->signature, i + 1)) {
case enum_nci_sig_bufref:
if (translation_pointers[i]) {
Parrot_str_free_cstring((char*)translation_pointers[i]);
}
break;
case enum_nci_sig_shortref:
VTABLE_set_integer_native(interp,
((pmc_holder_t*)translation_pointers[i])->pmc,
Expand Down
5 changes: 0 additions & 5 deletions src/nci/signatures.c
Expand Up @@ -107,10 +107,6 @@ Parrot_nci_parse_signature(PARROT_INTERP, ARGIN(STRING *sig_str))
e = enum_nci_sig_pmcinv;
break;

case 'B': /* buffer (void**) pass &Buffer_bufstart(SReg) */
e = enum_nci_sig_bufref;
break;

case 'v':
e = enum_nci_sig_void;
break;
Expand Down Expand Up @@ -186,7 +182,6 @@ Parrot_nci_sig_to_pcc(PARROT_INTERP, ARGIN(PMC *sig_pmc), ARGOUT(STRING **params
sig_buf[j++] = 'I';
break;
case enum_nci_sig_string:
case enum_nci_sig_bufref:
sig_buf[j++] = 'S';
break;
case enum_nci_sig_ptr:
Expand Down

0 comments on commit d818fb5

Please sign in to comment.