The R Project SVN R

Rev

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

Rev 87167 Rev 87474
Line 39... Line 39...
39
 
39
 
40
/* We need display width of a string.
40
/* We need display width of a string.
41
   Used only for row/column names found by GetMatrixDimnames,
41
   Used only for row/column names found by GetMatrixDimnames,
42
   so in native encoding.  (NULL ones from do_prmatrix are skipped.)
42
   so in native encoding.  (NULL ones from do_prmatrix are skipped.)
43
*/
43
*/
44
int Rstrwid(const char *str, int slen, int enc, int quote);  /* from printutils.c */
44
int Rstrwid(const char *str, int slen, cetype_t ienc, int quote); /* from printutils.c */
45
#define strwidth(x) Rstrwid(x, (int) strlen(x), CE_NATIVE, 0)
45
#define strwidth(x) Rstrwid(x, (int) strlen(x), CE_NATIVE, 0)
46
 
46
 
47
/* ceil_DIV(a,b) :=  ceil(a / b)  in _int_ arithmetic : */
47
/* ceil_DIV(a,b) :=  ceil(a / b)  in _int_ arithmetic : */
48
static R_INLINE
48
static R_INLINE
49
int ceil_DIV(int a, int b)
49
int ceil_DIV(int a, int b)