| Line 1... |
Line 1... |
| 1 |
/*
|
1 |
/*
|
| 2 |
* R : A Computer Language for Statistical Data Analysis
|
2 |
* R : A Computer Language for Statistical Data Analysis
|
| 3 |
* Copyright (C) 2015 R Core Team
|
3 |
* Copyright (C) 2015-2020 R Core Team
|
| 4 |
*
|
4 |
*
|
| 5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
| 6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
| 7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
| 8 |
* (at your option) any later version.
|
8 |
* (at your option) any later version.
|
| Line 20... |
Line 20... |
| 20 |
/* Recent MinGW-w64 releases define snprintf and vsnprintf as macros
|
20 |
/* Recent MinGW-w64 releases define snprintf and vsnprintf as macros
|
| 21 |
that can't be redefined; these are necessary to make our substitutions
|
21 |
that can't be redefined; these are necessary to make our substitutions
|
| 22 |
of the trio replacements. We need the replacements because msvcrt.dll
|
22 |
of the trio replacements. We need the replacements because msvcrt.dll
|
| 23 |
doesn't support hex formatting of floating point numbers, and all (?)
|
23 |
doesn't support hex formatting of floating point numbers, and all (?)
|
| 24 |
versions of the MS run-time use three digits in floating point
|
24 |
versions of the MS run-time use three digits in floating point
|
| 25 |
E formats, e.g. 1.E000. */
|
25 |
E formats, e.g. 1.E000. The replacements also allow printing long long
|
| - |
|
26 |
integers via %lld which the MS run-time does not (and "%I64d" is not
|
| - |
|
27 |
C99). */
|
| 26 |
|
28 |
|
| 27 |
#ifndef R_TRIOREMAP_H
|
29 |
#ifndef R_TRIOREMAP_H
|
| 28 |
#define R_TRIOREMAP_H
|
30 |
#define R_TRIOREMAP_H
|
| 29 |
|
31 |
|
| 30 |
int trio_snprintf(char *buffer, size_t max, const char *format, ...);
|
32 |
int trio_snprintf(char *buffer, size_t max, const char *format, ...);
|