The R Project SVN R

Rev

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

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