This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FYI: libffi usage & ARM build fix


>>>>> "Robert" == Robert Schuster <theBohemian@gmx.net> writes:

Robert> +  ffi_closure *closure = (ffi_closure *) _Jv_Malloc( sizeof( ffi_closure ));

In our coding style, there are no spaces after '(' or before ')'.
Please fix this, it is everywhere in your patch.

Robert> +  if (ffi_prep_cif (
Robert> +        cif, FFI_DEFAULT_ABI, 1, &ffi_type_void, arg_types) == FFI_OK
Robert> +      && (ffi_prep_closure (
Robert> +            closure, cif, _Jv_ThrowNoClassDefFoundErrorTrampoline,
Robert> +            class_name) == FFI_OK))

These lines are split incorrectly.  Splitting happens after a ',',
not after a '('.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]