Commit c0cd9bd3 authored by (no author)'s avatar (no author) Committed by Jens Gustedt
Browse files

copyright and whitespace


Signed-off-by: default avatarJens Gustedt <Jens.Gustedt@loria.fr>
parent f1a8de3f
......@@ -10,6 +10,7 @@ p99-latex
p99/ChangeLog
tests/Makefile.inc
tests/test-p99-block
tests/test-p99-c11
tests/test-p99-cases
tests/test-p99-choice
tests/test-p99-classification
......@@ -18,4 +19,5 @@ tests/test-p99-double
tests/test-p99-int
tests/test-p99-ndim
tests/test-p99-pow
tests/test-p99-thread
tests/test-p99-va-arg
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_H_
# define P99_H_
......@@ -152,7 +153,11 @@
** @section credits Credits and Rights
** @subsection author Author and Maintainer
** @author <a href="http://www.loria.fr/~gustedt/">Jens Gustedt</a>
** @date 2010 - 2011
** @date 2010 - 2012
**
** @subsection contributor Contribution
** @author <a href="http://basyl.co.uk/">William Morris</a> proof reading
** @date 2012
**
** @subsection version Version
**
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_ARGS_H_
# define P99_ARGS_H_
......@@ -63,19 +64,19 @@
** The particular cases where X receives @c 0, @c 1 or a
** variable number of arguments should be fine.
**/
#define P99_IS_EMPTY(...) \
P00_ISEMPTY( \
#define P99_IS_EMPTY(...) \
P00_ISEMPTY( \
/* test if there is just one argument, that might be empty */ \
P99_HAS_COMMA(__VA_ARGS__), \
/* test if P99_IS__EQ__ together with the argument \
adds a comma */ \
P99_HAS_COMMA(P00_IS__EQ__ __VA_ARGS__), \
/* test if the argument together with a parenthesis \
adds a comma */ \
P99_HAS_COMMA(__VA_ARGS__ (/*empty*/)), \
/* test if placing it between P99_IS__EQ__ and the \
parenthesis adds a comma */ \
P99_HAS_COMMA(P00_IS__EQ__ __VA_ARGS__ (/*empty*/)) \
P99_HAS_COMMA(__VA_ARGS__), \
/* test if P99_IS__EQ__ together with the argument \
adds a comma */ \
P99_HAS_COMMA(P00_IS__EQ__ __VA_ARGS__), \
/* test if the argument together with a parenthesis \
adds a comma */ \
P99_HAS_COMMA(__VA_ARGS__ (/*empty*/)), \
/* test if placing it between P99_IS__EQ__ and the \
parenthesis adds a comma */ \
P99_HAS_COMMA(P00_IS__EQ__ __VA_ARGS__ (/*empty*/)) \
)
#define P00_ISEMPTY(_0, _1, _2, _3) P99_HAS_COMMA(P99_PASTE5(P00_IS_EMPTY_CASE_, _0, _1, _2, _3))
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2011-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2011-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_ATOMIC_H
#define P99_ATOMIC_H 1
......@@ -1316,16 +1317,16 @@ p99_extension \
p00_ret; \
})
#define atomic_fetch_max(OBJP, OPERAND) \
p99_extension \
({ \
P99_MACRO_PVAR(p00_objp, (OBJP)); \
P99_MACRO_VAR(p00_op, (OPERAND)); \
P99_MACRO_VAR(p00_ret, atomic_load(p00_objp)); \
while (p00_ret <= p00_op) { \
#define atomic_fetch_max(OBJP, OPERAND) \
p99_extension \
({ \
P99_MACRO_PVAR(p00_objp, (OBJP)); \
P99_MACRO_VAR(p00_op, (OPERAND)); \
P99_MACRO_VAR(p00_ret, atomic_load(p00_objp)); \
while (p00_ret <= p00_op) { \
if (atomic_compare_exchange_weak(p00_objp, &p00_ret, p00_op)) break; \
} \
p00_ret; \
} \
p00_ret; \
})
/**
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_ATOMIC_ARM_H
#define P99_ATOMIC_ARM_H 1
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_ATOMIC_X86_H
#define P99_ATOMIC_X86_H 1
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_BLOCK_H_
# define P99_BLOCK_H_
......@@ -73,7 +74,7 @@ P99_PREFER( \
#endif
#define P00_UNWIND_DOCUMENT \
#define P00_UNWIND_DOCUMENT \
/** @warning Utilities that change control flow in an unexpected way may result in the loss of some modifications that are effected on variables. A modern compiler should tell you when you are in such a situation. If it is the case you'd have to declare the variable in question with the @c volatile qualifier. For an explanation see ::P99_UNWIND_PROTECT. **/
/**
......@@ -264,7 +265,7 @@ P00_BLK_END
** @see P99_AVOID
**/
#if p99_has_feature(statement_expression)
# define P99_PREFER(...) /* avoid the dangling else problem */ \
# define P99_PREFER(...) /* avoid the dangling else problem */ \
for (_Bool p00 = 1; p00 && p99_extension ((void)({ __VA_ARGS__ }), 1); p00 = 0)
#else
# define P99_PREFER(...) if (1) { __VA_ARGS__ } else
......@@ -710,7 +711,7 @@ if (0) { \
**/
P00_DOCUMENT_MULTIPLE_ARGUMENT(P99_INVARIANT, 0)
P99_BLOCK_DOCUMENT
#define P99_INVARIANT(EXPR) \
#define P99_INVARIANT(EXPR) \
P99_PROTECTED_BLOCK(assert((EXPR) && "failed at beginning of block"), assert((EXPR) && "failed at end of block"))
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2011 Emmanuel Jeanvoine, INRIA, France */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2011 Emmanuel Jeanvoine, INRIA, France */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_C99_H_
# define P99_C99_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_C99_DEFAULT_H_
# define P99_C99_DEFAULT_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_CHOICE_H_
# define P99_CHOICE_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_CLASSIFICATION_H_
# define P99_CLASSIFICATION_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_CLIB_H
#define P99_CLIB_H 1
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_COMPILER_H
#define P99_COMPILER_H
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_DEFARG_H_
# define P99_DEFARG_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2011 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_DOUBLE_H_
# define P99_DOUBLE_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_ENUM_H_
# define P99_ENUM_H_
......@@ -35,14 +36,14 @@ if (!memcmp(P99_STRINGIFY(C), p00_s, p00_len)) { \
** @brief Declare a simple inline function to return strings
** containing the names of enumeration constants.
**/
#define P99_DECLARE_ENUM_GETNAME(T, ...) \
#define P99_DECLARE_ENUM_GETNAME(T, ...) \
/*! @brief Get a string with the name of constant @a p00_x of type ::T */ \
inline char const* P99_PASTE2(T, _getname)(T p00_x)
/**
** @brief Declare a simple inline function to return the longest
** enumeration constants of type @a T found in a string.
**/
#define P99_DECLARE_ENUM_PARSE(T, ...) \
#define P99_DECLARE_ENUM_PARSE(T, ...) \
/*! @brief Parse a string @a p00_s for the longest matching constant of type ::T */ \
inline T P99_PASTE2(T, _parse)(char const* p00_s)
#else
......@@ -124,20 +125,20 @@ P00_DOCUMENT_IDENTIFIER_ARGUMENT(P99_DECLARE_ENUM, 0)
P00_DOCUMENT_DECLARATION_ARGUMENT(P99_DECLARE_ENUM, 1)
P00_DOCUMENT_DECLARATION_ARGUMENT(P99_DECLARE_ENUM, 2)
P00_DOCUMENT_DECLARATION_ARGUMENT(P99_DECLARE_ENUM, 3)
#define P99_DECLARE_ENUM(T, ...) \
/*! \see T ## _getname for access to the names of the constants as strings */ \
enum T { __VA_ARGS__ , \
/*! upper bound of the @ref T constants */ \
P99_PASTE2(T, _amount), \
/*! the largest @ref T constant */ \
P99_PASTE2(T, _max) = ((size_t)(P99_PASTE2(T, _amount)) - 1u), \
/*! the smallest @ref T constant */ \
P99_PASTE2(T, _min) = 0 \
}; \
/*! \brief Enumeration type @c enum T and @c typedef T. */ \
/*! \see T ## _getname for access to the names of the constants as strings */ \
typedef enum T T; \
P99_DECLARE_ENUM_GETNAME(T, __VA_ARGS__); \
#define P99_DECLARE_ENUM(T, ...) \
/*! \see T ## _getname for access to the names of the constants as strings */ \
enum T { __VA_ARGS__ , \
/*! upper bound of the @ref T constants */ \
P99_PASTE2(T, _amount), \
/*! the largest @ref T constant */ \
P99_PASTE2(T, _max) = ((size_t)(P99_PASTE2(T, _amount)) - 1u), \
/*! the smallest @ref T constant */ \
P99_PASTE2(T, _min) = 0 \
}; \
/*! \brief Enumeration type @c enum T and @c typedef T. */ \
/*! \see T ## _getname for access to the names of the constants as strings */ \
typedef enum T T; \
P99_DECLARE_ENUM_GETNAME(T, __VA_ARGS__); \
P99_DECLARE_ENUM_PARSE(T, __VA_ARGS__)
#else
P00_DOCUMENT_IDENTIFIER_ARGUMENT(P99_DECLARE_ENUM, 0)
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except for parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* the authors and copyright holders for this work are as follows: */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* (C) copyright 2012 William Morris */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
#ifndef P99_FOR_H_
# define P99_FOR_H_
......
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */
/* Except of parts copied from previous work and as explicitly stated below, */
/* the author and copyright holder for this work is */
/* (C) copyright 2010-2012 Jens Gustedt, INRIA, France */
/* */
/* This file is free software; it is part of the P99 project. */
/* You can redistribute it and/or modify it under the terms of the QPL as */
/* given in the file LICENSE. It is distributed without any warranty; */
/* without even the implied warranty of merchantability or fitness for a */
/* particular purpose. */
/* */
/* This may look like nonsense, but it really is -*- mode: C -*- */
/* */