92 |
void css_strtolower(char *buf, int buf_size); |
void css_strtolower(char *buf, int buf_size); |
93 |
|
|
94 |
void get_str(const char **pp, char *buf, int buf_size, const char *stop); |
void get_str(const char **pp, char *buf, int buf_size, const char *stop); |
95 |
int compose_keys(int *keys, int *nb_keys); |
int compose_keys(unsigned int *keys, int *nb_keys); |
96 |
int strtokey(const char **pp); |
int strtokey(const char **pp); |
97 |
int strtokeys(const char *keystr, unsigned int *keys, int max_keys); |
int strtokeys(const char *keystr, unsigned int *keys, int max_keys); |
98 |
void keytostr(char *buf, int buf_size, int key); |
void keytostr(char *buf, int buf_size, int key); |
99 |
int css_define_color(const char *name, const char *value); |
int css_define_color(const char *name, const char *value); |
100 |
int css_get_color(int *color_ptr, const char *p); |
int css_get_color(unsigned int *color_ptr, const char *p); |
101 |
int css_get_font_family(const char *str); |
int css_get_font_family(const char *str); |
102 |
void css_union_rect(CSSRect *a, CSSRect *b); |
void css_union_rect(CSSRect *a, CSSRect *b); |
103 |
static inline int css_is_null_rect(CSSRect *a) |
static inline int css_is_null_rect(CSSRect *a) |
271 |
{ |
{ |
272 |
const unsigned char *p; |
const unsigned char *p; |
273 |
int c; |
int c; |
274 |
p = *pp; |
p = *(const unsigned char **)pp; |
275 |
c = *p; |
c = *p; |
276 |
c = s->table[c]; |
c = s->table[c]; |
277 |
if (c == ESCAPE_CHAR) { |
if (c == ESCAPE_CHAR) { |
278 |
c = s->decode_func(s, (const unsigned char **)pp); |
c = s->decode_func(s, (const unsigned char **)pp); |
279 |
} else { |
} else { |
280 |
p++; |
p++; |
281 |
*pp = p; |
*(const unsigned char **)pp = p; |
282 |
} |
} |
283 |
return c; |
return c; |
284 |
} |
} |
555 |
extern EditBuffer *trace_buffer; |
extern EditBuffer *trace_buffer; |
556 |
|
|
557 |
void eb_init(void); |
void eb_init(void); |
558 |
int eb_read(EditBuffer *b, int offset, u8 *buf, int size); |
int eb_read(EditBuffer *b, int offset, void *buf, int size); |
559 |
void eb_write(EditBuffer *b, int offset, u8 *buf, int size); |
void eb_write(EditBuffer *b, int offset, void *buf, int size); |
560 |
void eb_insert_buffer(EditBuffer *dest, int dest_offset, |
void eb_insert_buffer(EditBuffer *dest, int dest_offset, |
561 |
EditBuffer *src, int src_offset, |
EditBuffer *src, int src_offset, |
562 |
int size); |
int size); |
563 |
void eb_insert(EditBuffer *b, int offset, const u8 *buf, int size); |
void eb_insert(EditBuffer *b, int offset, const void *buf, int size); |
564 |
void eb_delete(EditBuffer *b, int offset, int size); |
void eb_delete(EditBuffer *b, int offset, int size); |
565 |
void log_reset(EditBuffer *b); |
void log_reset(EditBuffer *b); |
566 |
EditBuffer *eb_new(const char *name, int flags); |
EditBuffer *eb_new(const char *name, int flags); |
781 |
struct DisplayState; |
struct DisplayState; |
782 |
|
|
783 |
typedef struct ModeProbeData { |
typedef struct ModeProbeData { |
784 |
unsigned char *filename; |
char *filename; |
785 |
unsigned char *buf; |
unsigned char *buf; |
786 |
int buf_size; |
int buf_size; |
787 |
int mode; /* unix mode */ |
int mode; /* unix mode */ |