git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: a better boot command line parser
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
term.h
diff --git
a/lunaix-os/includes/hal/term.h
b/lunaix-os/includes/hal/term.h
index 00fe32b04a074ebd40a236a11ee26367b3fcd913..84da769beb0d4b4c4c9a805d074f08196822adca 100644
(file)
--- a/
lunaix-os/includes/hal/term.h
+++ b/
lunaix-os/includes/hal/term.h
@@
-11,8
+11,8
@@
struct term;
struct linebuffer
{
struct linebuffer
{
- struct rbuffer
*
next;
- struct rbuffer
*
current;
+ struct rbuffer
*
next;
+ struct rbuffer
*
current;
short sflags;
short sz_hlf;
};
short sflags;
short sz_hlf;
};
@@
-27,16
+27,15
@@
typedef struct rbuffer** lbuf_ref_t;
struct term_lcntl
{
struct term_lcntl
{
- struct llist_header lcntls;
struct term* term;
struct term* term;
-
size_
t (*process_and_put)(struct term*, struct linebuffer*, char);
+
in
t (*process_and_put)(struct term*, struct linebuffer*, char);
};
struct term
{
struct device* dev;
struct device* chdev;
};
struct term
{
struct device* dev;
struct device* chdev;
- struct
llist_header lcntl_stack
;
+ struct
term_lcntl* lcntl
;
struct linebuffer line_out;
struct linebuffer line_in;
pid_t fggrp;
struct linebuffer line_out;
struct linebuffer line_in;
pid_t fggrp;
@@
-70,7
+69,8
@@
struct term_lcntl*
term_get_lcntl(u32_t lcntl_index);
static inline void
term_get_lcntl(u32_t lcntl_index);
static inline void
-line_flip(struct linebuffer* lbf) {
+line_flip(struct linebuffer* lbf)
+{
struct rbuffer* tmp = lbf->current;
lbf->current = lbf->next;
lbf->next = tmp;
struct rbuffer* tmp = lbf->current;
lbf->current = lbf->next;
lbf->next = tmp;