Browse Source

* Cosmetic fixes.

tags/v0.99.beta14
Sam Hocevar sam 18 years ago
parent
commit
02ccf6ec3b
6 changed files with 24 additions and 23 deletions
  1. +2
    -0
      caca/caca.h
  2. +8
    -1
      caca/caca_internals.h
  3. +0
    -4
      caca/event.c
  4. +0
    -5
      caca/graphics.c
  5. +2
    -1
      cucul/char.c
  6. +12
    -12
      cucul/cucul_internals.h

+ 2
- 0
caca/caca.h View File

@@ -100,6 +100,8 @@
#ifndef __CACA_H__ #ifndef __CACA_H__
#define __CACA_H__ #define __CACA_H__


#define CACA_API_VERSION_1

#include <cucul.h> #include <cucul.h>


#ifdef __cplusplus #ifdef __cplusplus


+ 8
- 1
caca/caca_internals.h View File

@@ -152,8 +152,15 @@ struct caca_context
} events; } events;
}; };


/* Timer functions */
/* Internal timer functions */
extern void _caca_sleep(unsigned int); extern void _caca_sleep(unsigned int);
extern unsigned int _caca_getticks(struct caca_timer *); extern unsigned int _caca_getticks(struct caca_timer *);


/* Internal event functions */
extern void _caca_handle_resize(caca_t *);
#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO)
extern void _push_event(caca_t *, unsigned int);
extern unsigned int _pop_event(caca_t *);
#endif

#endif /* __CACA_INTERNALS_H__ */ #endif /* __CACA_INTERNALS_H__ */

+ 0
- 4
caca/event.c View File

@@ -26,10 +26,6 @@


static unsigned int _get_next_event(caca_t *); static unsigned int _get_next_event(caca_t *);
static unsigned int _lowlevel_event(caca_t *); static unsigned int _lowlevel_event(caca_t *);
#if defined(USE_SLANG) || defined(USE_NCURSES) || defined(USE_CONIO)
void _push_event(caca_t *, unsigned int);
unsigned int _pop_event(caca_t *);
#endif


#if !defined(_DOXYGEN_SKIP_ME) #if !defined(_DOXYGEN_SKIP_ME)
/* If no new key was pressed after AUTOREPEAT_THRESHOLD usec, assume the /* If no new key was pressed after AUTOREPEAT_THRESHOLD usec, assume the


+ 0
- 5
caca/graphics.c View File

@@ -24,11 +24,6 @@
#include "cucul.h" #include "cucul.h"
#include "cucul_internals.h" #include "cucul_internals.h"


/*
* Local functions
*/
void _caca_handle_resize(caca_t *kk);

/** \brief Set the window title. /** \brief Set the window title.
* *
* If libcaca runs in a window, try to change its title. This works with * If libcaca runs in a window, try to change its title. This works with


+ 2
- 1
cucul/char.c View File

@@ -47,7 +47,8 @@
* \param fgcolor The requested foreground colour. * \param fgcolor The requested foreground colour.
* \param bgcolor The requested background colour. * \param bgcolor The requested background colour.
*/ */
void cucul_set_color(cucul_t *qq, enum cucul_color fgcolor, enum cucul_color bgcolor)
void cucul_set_color(cucul_t *qq, enum cucul_color fgcolor,
enum cucul_color bgcolor)
{ {
if(fgcolor < 0 || fgcolor > 15 || bgcolor < 0 || bgcolor > 15) if(fgcolor < 0 || fgcolor > 15 || bgcolor < 0 || bgcolor > 15)
return; return;


+ 12
- 12
cucul/cucul_internals.h View File

@@ -52,21 +52,21 @@ struct cucul_context
/* Initialisation functions */ /* Initialisation functions */
extern int _cucul_init_bitmap(void); extern int _cucul_init_bitmap(void);
extern int _cucul_end_bitmap(void); extern int _cucul_end_bitmap(void);
void _cucul_set_size(cucul_t *qq, unsigned int width, unsigned int height);
extern void _cucul_set_size(cucul_t *, unsigned int, unsigned int);


/* Charset functions */ /* Charset functions */
unsigned int _cucul_strlen_utf8(char const *s);
char const *_cucul_skip_utf8(char const *s, unsigned int x);
uint32_t _cucul_utf8_to_utf32(char const *s);
uint8_t _cucul_utf32_to_cp437(uint32_t c);
uint32_t _cucul_cp437_to_utf32(uint8_t c);
extern unsigned int _cucul_strlen_utf8(char const *);
extern char const *_cucul_skip_utf8(char const *, unsigned int);
extern uint32_t _cucul_utf8_to_utf32(char const *);
extern uint8_t _cucul_utf32_to_cp437(uint32_t);
extern uint32_t _cucul_cp437_to_utf32(uint8_t);


/* Export functions */ /* Export functions */
void _cucul_get_ansi(cucul_t *qq, struct cucul_buffer *ex);
void _cucul_get_html(cucul_t *qq, struct cucul_buffer *ex);
void _cucul_get_html3(cucul_t *qq, struct cucul_buffer *ex);
void _cucul_get_irc(cucul_t *qq, struct cucul_buffer *ex);
void _cucul_get_ps(cucul_t *qq, struct cucul_buffer *ex);
void _cucul_get_svg(cucul_t *qq, struct cucul_buffer *ex);
extern void _cucul_get_ansi(cucul_t *, struct cucul_export *);
extern void _cucul_get_html(cucul_t *, struct cucul_export *);
extern void _cucul_get_html3(cucul_t *, struct cucul_export *);
extern void _cucul_get_irc(cucul_t *, struct cucul_export *);
extern void _cucul_get_ps(cucul_t *, struct cucul_export *);
extern void _cucul_get_svg(cucul_t *, struct cucul_export *);


#endif /* __CUCUL_INTERNALS_H__ */ #endif /* __CUCUL_INTERNALS_H__ */

Loading…
Cancel
Save