The R Project SVN R

Rev

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

Rev 42307 Rev 44027
Line 37... Line 37...
37
#include "Defn.h"
37
#include "Defn.h"
38
#include "Print.h"
38
#include "Print.h"
39
 
39
 
40
#include <stdlib.h> /* for div() */
40
#include <stdlib.h> /* for div() */
41
 
41
 
-
 
42
/* FIXME: sort out encodings */
42
/* We need display width of a string */
43
/* We need display width of a string */
43
int Rstrwid(const char *str, int slen, int quote);  /* from printutils.c */
44
int Rstrwid(const char *str, int slen, int enc, int quote);  /* from printutils.c */
44
#define strwidth(x) Rstrwid(x, strlen(x), 0)
45
#define strwidth(x) Rstrwid(x, strlen(x), CE_NATIVE, 0)
45
 
46
 
46
/* ceil_DIV(a,b) :=  ceil(a / b)  in _int_ arithmetic : */
47
/* ceil_DIV(a,b) :=  ceil(a / b)  in _int_ arithmetic : */
47
static R_INLINE
48
static R_INLINE
48
int ceil_DIV(int a, int b)
49
int ceil_DIV(int a, int b)
49
{
50
{