mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
ee9d3a36ab
It's a fairly high-level wrapper for TextBuffer in that it implements file ops (load/save), searching, navigation, and formatting (simple line-oriented with tab stops (currently at 4 spaces)).
23 lines
526 B
C
23 lines
526 B
C
#ifndef __qwaq_h
|
|
#define __qwaq_h
|
|
|
|
#include "QF/darray.h"
|
|
#include "QF/progs.h"
|
|
#include "QF/sys.h"
|
|
|
|
typedef struct qwaq_thread_s {
|
|
pthread_t thread_id;
|
|
int return_code;
|
|
struct DARRAY_TYPE (const char *) args;
|
|
sys_printf_t sys_printf;
|
|
progs_t *pr;
|
|
func_t main_func;
|
|
void *data;
|
|
} qwaq_thread_t;
|
|
|
|
void BI_Init (progs_t *pr);
|
|
void QWAQ_EditBuffer_Init (progs_t *pr);
|
|
extern struct cbuf_s *qwaq_cbuf;
|
|
qwaq_thread_t *create_thread (void *(*thread_func) (qwaq_thread_t *), void *);
|
|
|
|
#endif//__qwaq_h
|