The R Project SVN R

Rev

Rev 67837 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 67837 Rev 67838
Line 1... Line 1...
1
/* Compatibility wrapper for R */
1
/* Compatibility wrapper for R */
2
 
-
 
3
#include <stdio.h>
2
#include <stdio.h>
4
#include <stdlib.h>
3
#include <stdlib.h>
5
#include <stdarg.h>
4
#include <stdarg.h>
6
int trio_printf(const char *format, ...);
5
int trio_printf(const char *format, ...);
7
int trio_vprintf(const char *format, va_list args);
6
int trio_vprintf(const char *format, va_list args);
Line 60... Line 59...
60
int vfprintf(FILE *file, const char *format, va_list args)
59
int vfprintf(FILE *file, const char *format, va_list args)
61
{
60
{
62
    return trio_vfprintf(file, format, args);
61
    return trio_vfprintf(file, format, args);
63
}
62
}
64
 
63
 
-
 
64
/* The test below excludes both 32 and 64 bit Windows */
65
#ifndef Win32
65
#ifndef _WIN32 
66
/* These are needed as MinGW's stdio.h has inline snprintf and vnsprintf.
66
/* These are needed as MinGW's stdio.h has inline snprintf and vnsprintf.
67
   Include the trioremap.h header file to get the replacements */
67
   Include the trioremap.h header file to get the replacements */
68
int snprintf(char *buffer, size_t max, const char *format, ...)
68
int snprintf(char *buffer, size_t max, const char *format, ...)
69
{
69
{
70
    int res;
70
    int res;