089db47df6
2007-07-23 Christopher D. Rickett <crickett@lanl.gov> Tobias Burnus <burnus@net-b.de> PR fortran/32600 * trans-expr.c (gfc_conv_function_call): Handle c_funloc. * trans-types.c: Add pfunc_type_node. (gfc_init_types,gfc_typenode_for_spec): Use it. * resolve.c (gfc_iso_c_func_interface): Fix whitespace and improve error message. 2007-07-23 Christopher D. Rickett <crickett@lanl.gov> PR fortran/32600 * intrinsics/iso_c_binding.c (c_funloc): Remove. * intrinsics/iso_c_binding.h: Remove c_funloc. * gfortran.map: Ditto. 2007-07-23 Christopher D. Rickett <crickett@lanl.gov> PR fortran/32600 * gfortran.dg/c_funloc_tests_5.f03: New. * gfortran.dg/c_funloc_tests_5.f04: New. * gfortran.dg/c_funloc_tests_4_driver.c: New. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r126835
68 lines
2.2 KiB
C
68 lines
2.2 KiB
C
/* Copyright (C) 2007 Free Software Foundation, Inc.
|
|
Contributed by Christopher Rickett.
|
|
|
|
This file is part of the GNU Fortran 95 runtime library (libgfortran).
|
|
|
|
Libgfortran is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
In addition to the permissions in the GNU General Public License, the
|
|
Free Software Foundation gives you unlimited permission to link the
|
|
compiled version of this file into combinations with other programs,
|
|
and to distribute those combinations without any restriction coming
|
|
from the use of this file. (The General Public License restrictions
|
|
do apply in other respects; for example, they cover modification of
|
|
the file, and distribution when not linked into a combine
|
|
executable.)
|
|
|
|
Libgfortran is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with Libgfortran; see the file COPYING. If not, write to
|
|
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
|
Boston, MA 02110-1301, USA. */
|
|
|
|
|
|
/* Declarations for ISO_C_BINDING library helper functions. */
|
|
|
|
#ifndef GFOR_ISO_C_BINDING_H
|
|
#define GFOR_ISO_C_BINDING_H
|
|
|
|
#include "libgfortran.h"
|
|
|
|
typedef struct c_ptr
|
|
{
|
|
void *c_address;
|
|
}
|
|
c_ptr_t;
|
|
|
|
typedef struct c_funptr
|
|
{
|
|
void *c_address;
|
|
}
|
|
c_funptr_t;
|
|
|
|
#define ISO_C_BINDING_PREFIX(a) __iso_c_binding_##a
|
|
|
|
void ISO_C_BINDING_PREFIX(c_f_pointer)(void *, gfc_array_void *,
|
|
const array_t *, int, int);
|
|
|
|
/* The second param here may change, once procedure pointers are
|
|
implemented. */
|
|
void ISO_C_BINDING_PREFIX(c_f_procpointer) (void *, gfc_array_void *);
|
|
|
|
GFC_LOGICAL_4 ISO_C_BINDING_PREFIX(c_associated_1) (void *);
|
|
GFC_LOGICAL_4 ISO_C_BINDING_PREFIX(c_associated_2) (void *, void *);
|
|
|
|
void ISO_C_BINDING_PREFIX(c_f_pointer_u0) (void *, gfc_array_void *,
|
|
const array_t *);
|
|
void ISO_C_BINDING_PREFIX(c_f_pointer_d0) (void *, gfc_array_void *,
|
|
const array_t *);
|
|
|
|
#endif
|