Skip to content

Calling overloaded C++ operators from Rust #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include <ginac/ginac.h>


GiNaC::symbol* wrap_symbol_construct(const char *cptr);
void wrap_symbol_destruct(GiNaC::symbol *ptr);

GiNaC::ex* wrap_ex_construct(const char *cptr);
GiNaC::ex* wrap_ex_construct_copy(const GiNaC::ex *cptr);
GiNaC::ex* wrap_ex_construct_float(const double f);
GiNaC::ex* wrap_ex_construct_integer(const int i);
GiNaC::ex* wrap_ex_construct_power(const GiNaC::ex *base, const GiNaC::ex *expon);
void wrap_ex_destruct(GiNaC::ex *ptr);
void wrap_add_assign(GiNaC::ex *left, const GiNaC::ex *right);
void wrap_mul_assign(GiNaC::ex *left, const GiNaC::ex *right);
// GiNaC::ex* wrap_add(const GiNaC::ex *left, const GiNaC::ex *right);
// GiNaC::ex* wrap_mul(const GiNaC::ex *left, const GiNaC::ex *right);
bool wrap_equal(const GiNaC::ex *left, const GiNaC::ex *right);

void wrap_debugsymbol(GiNaC::symbol *ptr);

void wrap_testfunc();
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/* Copyright (C) 1992-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

The GNU C Library 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */

#ifndef _ALLOCA_H
#define _ALLOCA_H 1

#include <features.h>

#define __need_size_t
#include <stddef.h>

__BEGIN_DECLS

/* Remove any previous definitions. */
#undef alloca

/* Allocate a block that will be freed when the calling function exits. */
extern void *alloca (size_t __size) __THROW;

#ifdef __GNUC__
# define alloca(size) __builtin_alloca (size)
#endif /* GCC. */

__END_DECLS

#endif /* alloca.h */
Binary file not shown.
Loading