~ubuntu-branches/ubuntu/intrepid/ecl/intrepid

« back to all changes in this revision

Viewing changes to src/gmp/tal-notreent.c

  • Committer: Bazaar Package Importer
  • Author(s): Peter Van Eynde
  • Date: 2007-04-09 11:51:51 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070409115151-ql8cr0kalzx1jmla
Tags: 0.9i-20070324-2
Upload to unstable. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Stack allocation routines.  This is intended for machines without support
2
2
   for the `alloca' function.
3
3
 
4
 
Copyright 1996, 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
 
4
Copyright 1996, 1997, 1999, 2000, 2001, 2006 Free Software Foundation, Inc.
5
5
 
6
6
This file is part of the GNU MP Library.
7
7
 
17
17
 
18
18
You should have received a copy of the GNU Lesser General Public License
19
19
along with the GNU MP Library; see the file COPYING.LIB.  If not, write to
20
 
the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
21
 
MA 02111-1307, USA. */
 
20
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
21
MA 02110-1301, USA. */
22
22
 
23
23
#include "gmp.h"
24
24
#include "gmp-impl.h"
98
98
   __gmp_tmp_free can later be used to reclaim all subsequently allocated
99
99
   storage.  */
100
100
void
101
 
__gmp_tmp_mark (tmp_marker *mark)
 
101
__gmp_tmp_mark (struct tmp_marker *mark)
102
102
{
103
103
  mark->which_chunk = current;
104
104
  mark->alloc_point = current->alloc_point;
106
106
 
107
107
/* Free everything allocated since <mark> was assigned by __gmp_tmp_mark */
108
108
void
109
 
__gmp_tmp_free (tmp_marker *mark)
 
109
__gmp_tmp_free (struct tmp_marker *mark)
110
110
{
111
111
  while (mark->which_chunk != current)
112
112
    {