Ignore:
Timestamp:
Apr 19, 2008, 9:25:47 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Get rid of the last long types in the API.
  • Use size_t and ssize_t where appropriate.
Location:
libcaca/trunk/cxx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/cucul++.cpp

    r2303 r2304  
    2626
    2727
    28 uint32_t Charset::utf8ToUtf32(char const *s, unsigned int *read)
     28uint32_t Charset::utf8ToUtf32(char const *s, size_t *read)
    2929{
    3030    return cucul_utf8_to_utf32(s, read);
    3131}
    32 unsigned int Charset::utf32ToUtf8(char *buf, uint32_t ch)
     32size_t Charset::utf32ToUtf8(char *buf, uint32_t ch)
    3333{
    3434    return cucul_utf32_to_utf8(buf, ch);
  • libcaca/trunk/cxx/cucul++.h

    r2303 r2304  
    3939{
    4040 public:
    41     uint32_t utf8ToUtf32(char const *, unsigned int *);
    42     unsigned int utf32ToUtf8(char *, uint32_t);
     41    uint32_t utf8ToUtf32(char const *, size_t *);
     42    size_t utf32ToUtf8(char *, uint32_t);
    4343    uint8_t utf32ToCp437(uint32_t);
    4444    uint32_t cp437ToUtf32(uint8_t);
Note: See TracChangeset for help on using the changeset viewer.