Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jens Gustedt
P99 - macros and functions for C99
Commits
74f36f13
Commit
74f36f13
authored
Feb 14, 2011
by
Jens Gustedt
Browse files
add pcc to the compilers that are not supported
in fact that compiler just explodes with P99
parent
f94fc702
Changes
26
Expand all
Hide whitespace changes
Inline
Side-by-side
p99/p99.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_args.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 Jens Gustedt, INRIA, France
*/
/* (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 */
...
...
p99/p99_block.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 Jens Gustedt, INRIA, France
*/
/* (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 */
...
...
@@ -65,11 +65,11 @@ P99_IF_EQ_2(P99_NARG(__VA_ARGS__)) \
/* Declare @a NAME to be a pointer to a static variable of type @a
* TYPE for the depending block. */
#define P00_BLK_DECL_STATIC(TYPE, NAME, ...)
\
P00_BLK_BEFORE(TYPE* NAME = 0)
\
#define P00_BLK_DECL_STATIC(TYPE, NAME, ...) \
P00_BLK_BEFORE(TYPE* NAME = 0) \
P99_PREFER( \
static TYPE P99_PASTE2(p00_static_, NAME) = P00_ROBUST(__VA_ARGS__);
\
NAME = &P99_PASTE2(p00_static_, NAME);
\
static TYPE P99_PASTE2(p00_static_, NAME) = P00_ROBUST(__VA_ARGS__); \
NAME = &P99_PASTE2(p00_static_, NAME); \
goto P99_FILEID(p00_label_, NAME); ) P99_FILEID(p00_label_, NAME):
...
...
p99/p99_c99.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_c99_default.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_choice.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_classification.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_compiler.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
@@ -49,6 +49,18 @@
P99_STRINGIFY(__GNUC_MINOR__) "." \
P99_STRINGIFY(__GNUC_PATCHLEVEL__)
#elif P99_COMPILER & P99_COMPILER_PCC
# undef P99_COMPILER_VERSION
# define P99_COMPILER_VERSION \
"pcc " \
P99_STRINGIFY(__PCC__) \
P99_STRINGIFY(__PCC_MINOR__) \
P99_STRINGIFY(__PCC_MINORMINOR__) \
"; gnu " \
P99_STRINGIFY(__GNUC__) "." \
P99_STRINGIFY(__GNUC_MINOR__) "." \
P99_STRINGIFY(__GNUC_PATCHLEVEL__)
#elif P99_COMPILER & P99_COMPILER_OPEN64
# undef P99_COMPILER_VERSION
# define P99_COMPILER_VERSION \
...
...
@@ -133,6 +145,8 @@ signed p00_trailing_comma_in_initializer__(void) {
# ifndef __GNUC__
# define P00_NO_HAVE_TGMATH
# endif
#elif P99_COMPILER & P99_COMPILER_PCC
# error "The P99 preprocessor files can't work with the pcc compiler, yet"
#elif P99_COMPILER & P99_COMPILER_CLANG
# define p99_inline __attribute__((always_inline)) inline
/* clang can't nail a variable to a register, yet */
...
...
p99/p99_defarg.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_double.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_enum.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_for.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
@@ -314,8 +314,8 @@ P00_DOCUMENT_NUMBER_ARGUMENT(P99_ALENS, 1)
** double dotproductFunc(P99_AARG(double const, A, 1),
** P99_AARG(double const, B, 1));
**
** #define dotproduct(VA, VB) \
** dotproductFunc(P99_ACALL(VA, 1, double const), \
** #define dotproduct(VA, VB)
\
** dotproductFunc(P99_ACALL(VA, 1, double const),
\
** P99_ACALL(VB, 1, double const))
** .
** double Ar[5];
...
...
p99/p99_generated.h
View file @
74f36f13
This diff is collapsed.
Click to expand it.
p99/p99_id.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 Jens Gustedt, INRIA, France
*/
/* (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 */
...
...
p99/p99_if.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_int.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_list.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_logical.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_map.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
p99/p99_new.h
View file @
74f36f13
/* This may look like nonsense, but it really is -*-
C -*-
*/
/* 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 */
...
...
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment