Explorar el Código

* Cosmetic fixes.

tags/v0.99.beta14
Sam Hocevar sam hace 18 años
padre
commit
02ccf6ec3b
Se han modificado 6 ficheros con 24 adiciones y 23 borrados
  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 Ver fichero

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

#define CACA_API_VERSION_1

#include <cucul.h>

#ifdef __cplusplus


+ 8
- 1
caca/caca_internals.h Ver fichero

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

/* Timer functions */
/* Internal timer functions */
extern void _caca_sleep(unsigned int);
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__ */

+ 0
- 4
caca/event.c Ver fichero

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

static unsigned int _get_next_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 no new key was pressed after AUTOREPEAT_THRESHOLD usec, assume the


+ 0
- 5
caca/graphics.c Ver fichero

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

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

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


+ 2
- 1
cucul/char.c Ver fichero

@@ -47,7 +47,8 @@
* \param fgcolor The requested foreground 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)
return;


+ 12
- 12
cucul/cucul_internals.h Ver fichero

@@ -52,21 +52,21 @@ struct cucul_context
/* Initialisation functions */
extern int _cucul_init_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 */
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 */
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__ */

Cargando…
Cancelar
Guardar