~ubuntu-branches/ubuntu/trusty/emscripten/trusty-proposed

« back to all changes in this revision

Viewing changes to system/include/libc/alloca.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20140119141240-jg1l42cc158j59tn
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* libc/include/alloca.h - Allocate memory on stack */
2
 
 
3
 
/* Written 2000 by Werner Almesberger */
4
 
/* Rearranged for general inclusion by stdlib.h.
5
 
   2001, Corinna Vinschen <vinschen@redhat.com> */
6
 
 
7
 
#ifndef _NEWLIB_ALLOCA_H
8
 
#define _NEWLIB_ALLOCA_H
9
 
 
10
 
#include "_ansi.h"
11
 
#include <sys/reent.h>
12
 
 
13
 
#undef alloca
 
1
#ifndef _ALLOCA_H
 
2
#define _ALLOCA_H
 
3
 
 
4
#ifdef __cplusplus
 
5
extern "C" {
 
6
#endif
 
7
 
 
8
#define __NEED_size_t
 
9
#include <bits/alltypes.h>
 
10
 
 
11
void *alloca(size_t);
14
12
 
15
13
#ifdef __GNUC__
16
 
#define alloca(size) __builtin_alloca(size)
17
 
#else
18
 
void * _EXFUN(alloca,(size_t));
 
14
#define alloca __builtin_alloca
 
15
#endif
 
16
 
 
17
#ifdef __cplusplus
 
18
}
19
19
#endif
20
20
 
21
21
#endif