Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details
23
 * Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details
24
 *
25
 * Copyright (C) 1999 Massimiliano Giorgi
26
 *
27
 * This program is free software; you can redistribute it and/or modify
28
 * it under the terms of the GNU General Public License as published by
29
 * the Free Software Foundation; either version 2 of the License, or
30
 * (at your option) any later version.
31
 *
32
 * This program is distributed in the hope that it will be useful,
33
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
34
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
35
 * GNU General Public License for more details.
36
 *
37
 * You should have received a copy of the GNU General Public License
38
 * along with this program; if not, write to the Free Software
39
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
40
 *
41
 */
42
 
43
/*
44
 * CVS :        $Id: stdarg.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
45
 *
46
 * File:        $File$
47
 * Revision:    $Revision: 1.1.1.1 $
48
 * Last update: $Date: 2002-03-29 14:12:51 $
49
 */
50
 
51
#ifndef _FS_STDARG_H
52
#define _FS_STDARG_H
53
 
54
/* must be defined
55
 *  va_list
56
 *  va_arg()
57
 *  va_end()
58
 *  va-start()
59
 */
60
 
61
/*
62
 
63
typedef void *va_list;  
64
 
65
#define va_rounded_size(T)  \
66
  (((sizeof (T) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))
67
 
68
#define va_arg(ap, T) \
69
    (ap = (va_list) ((char *) (ap) + va_rounded_size (T)),      \
70
     *((T *) (void *) ((char *) (ap) - va_rounded_size (T))))
71
 
72
#define va_end(ap)
73
 
74
#define va_start(ap, last_arg) \
75
 (ap = ((va_list) __builtin_next_arg (last_arg)))
76
*/
77
 
78
#include <stdarg.h>
79
#endif
80