Rev 77953 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/** R : A Computer Language for Statistical Data Analysis* Copyright (C) 2015-2020 R Core Team** This program is free software; you can redistribute it and/or modify* it under the terms of the GNU General Public License as published by* the Free Software Foundation; either version 2 of the License, or* (at your option) any later version.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU General Public License for more details.** You should have received a copy of the GNU General Public License* along with this program; if not, a copy is available at* https://www.R-project.org/Licenses/*//* Recent MinGW-w64 releases define snprintf and vsnprintf as macrosthat can't be redefined; these are necessary to make our substitutionsof the trio replacements. We need the replacements because msvcrt.dlldoesn't support hex formatting of floating point numbers, and all (?)versions of the MS run-time use three digits in floating pointE formats, e.g. 1.E000. The replacements also allow printing long longintegers via %lld which the MS run-time does not (and "%I64d" is notC99). */#ifndef R_TRIOREMAP_H#define R_TRIOREMAP_Hint trio_snprintf(char *buffer, size_t max, const char *format, ...);int trio_vsnprintf(char *buffer, size_t bufferSize, const char *format,va_list args);#define snprintf trio_snprintf#define vsnprintf trio_vsnprintf#endif /* not R_TRIOREMAP_H */