⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s.ii

📁 initial working phase of the design of said editor, featuring multicasting, advanced linux keyboard
💻 II
📖 第 1 页 / 共 4 页
字号:
# 1 "s.cc"# 1 "program.h" 1 # 1 "kbd.h" 1# 1 "kbd_tty.h" 1class kbd_tty{  protected:   void* defaults;   public:   int handle;   void* settings;   int oldkbmode;   kbd_tty();   kbd_tty( int );   ~kbd_tty();   void kbd_reset();   void chvt( int );   void leds( int snc );};# 4 "kbd.h" 2# 1 "term.h" 1# 1 "note.h" 1# 1 "script.h" 1# 1 "atom.h" 1 class context;# 1 "type.h" 1typedef unsigned char byte;typedef unsigned short word;typedef unsigned long dword;typedef void(* void_func)( ... );typedef struct{   unsigned long offset32;   unsigned short selector;}  seg_ptr;# 7 "atom.h" 2class atom{  public:   atom* parent;   context* cx;   dword id_mask;    ~atom();   atom( atom& );   atom( atom* );   atom* cxtoptr( char* );   char* ptrtocx( atom* );     char* namecx();  };# 4 "script.h" 2# 1 "line.h" 1# 1 "buffer.h" 1 class buffer{  public:   char* text;   ~buffer();   buffer();   buffer( int );   buffer( buffer* );    };# 4 "line.h" 2typedef unsigned int u_int;typedef unsigned char u_char; class line : public atom, public buffer{  public:   line* last;   line* next;   int length;   int size;   u_int owner;   u_int rwx;   u_char color;       virtual ~line();     line( atom* a );   line( line* here );   void resize( int _size );   void del( int, int );   void ins( int, int );   void del( int );   void ins( int );   void ins( int, char );   void split( int );   void merge( int );};# 5 "script.h" 2class script : public atom{  public:   line* top;   line* bot;   script* last;   script* next;   ~script();   script( atom* a );   script( atom* a, line* content );   void del( line* );   line* ins( line* );   void close( line* );   int load( char* );   void save( char* );};class line_s : public line{  public:   script* scr;    virtual ~line_s();   line_s();   line_s( line* here );};# 4 "note.h" 2class note{  public:   script* s;   note* last,* next;   int cols, rows;   int x, y;   ~note();   note();    void clear();   void repos( int, int );   void repos_up();   void repos_down();   void repos_left();   void repos_right();   void erase( int, int, int );   char write( register char, int, int );   char* write( register char*, int, int );   char write_hex( register char ); };# 4 "term.h" 2class term : public note{  public:    u_int* cursors;   u_int cursor_total;   int rows;     int digits;   int ascii_buffer[ 3 ];     note* area[ 10 ];   term* last,* next,* repl;   bool asc_hex;   bool mousekeys;   bool shiftlock;   bool exiting;   ~term();   term();   term( void* );   u_int add_cursor();   void del_cursor( u_int which );   void for_each_cursor_below( u_int, void(term::* x)( u_int ) );   void for_each_cursor_right( u_int row, u_int col,      void(term::* x)( u_int, u_int ) );   void term::for_each_cursor_here( u_int row, u_int x,      void(term::* x)( u_int, u_int ) );   void for_each_cursor( void(term::* x)( u_int ) );   void set_each_line( line* x );   void dec_orig( u_int cursor );   void dec_row( u_int cursor );   void inc_row( u_int cursor );   void dec_col( u_int cursor, u_int col );   void inc_col( u_int cursor, u_int col );   void cursor_lbs( u_int cursor, u_int col );   void cursor_cr( u_int cursor, u_int col );   void home_cursor( u_int cursor );   void ctrlalt( u_int cursor, register char );   void altlock( u_int cursor, register char );   void ctrlpunc( u_int cursor, register char );   void ctrlmath( u_int cursor, register char );   void altund( u_int cursor );   void altmny( u_int cursor );   void altexc( u_int cursor );   void fire( u_int cursor, bool );   void accel( u_int cursor, bool );   void meta( u_int cursor, bool );   void meta_ctrlesc( u_int cursor );   void meta_altesc( u_int cursor );   void meta_ctrlaltshift( u_int cursor );   void meta_altarrow( u_int cursor, int );   void meta_althome( u_int cursor );   void meta_altend( u_int cursor );   void meta_altpgup( u_int cursor );   void meta_altpgdn( u_int cursor );   void meta_altfunc( u_int cursor, int );   void meta_altnum( u_int cursor, int );   void meta_ctrlnum( u_int cursor, int );   void hash( u_int cursor, register char );   char ascii_eval_hex( u_int cursor );   char ascii_eval( u_int cursor );   void ascii( u_int cursor, int digit, bool adding );   void ascii_hex( u_int cursor, int digit );   void select( u_int cursor, bool );   void lock( u_int cursor, int );       void pan( u_int cursor, int, bool );   void mousekey( u_int cursor, char );     void submit( u_int cursor );   void full_screen( u_int cursor );   void run( u_int cursor );   void cell_new( u_int cursor );     void cell_del( u_int cursor );   void frame_new( u_int cursor );   void hide( u_int cursor );   void frame_del( u_int cursor );   void ht_back( u_int cursor );   void item( u_int cursor, bool );     void task( u_int cursor, bool );   void taskset( u_int cursor, bool );       void highlight( u_int cursor, int );   void indent( u_int cursor, bool );     void skip( u_int cursor, int );     void frame( u_int cursor, int );     void top( u_int cursor );   void bot( u_int cursor );   void paste( u_int cursor );   void copy( u_int cursor );   void exchange( u_int cursor );   void cut( u_int cursor );   void cut_append( u_int cursor );   void vol( u_int cursor, bool );     void res_change( u_int cursor, bool );   void longer( u_int cursor );   void shorter( u_int cursor );   void wider( u_int cursor );   void narrower( u_int cursor );   void snapshot( u_int cursor );   void snap_copy( u_int cursor );   void sysrq( u_int cursor );   void reveal( u_int cursor );   void exit( u_int cursor );   void core_dump( u_int cursor );   void beep();   void boot( u_int cursor );   void redraw();   void debug();    void update_to_top( u_int cursor, line* brand   , line* old_bot, line* new_bot, line* top, u_int it );   line* term::find_top( u_int cursor, u_int& x );   void collapse( u_int cursor );   void expand( u_int cursor );   void bs( u_int cursor );   void ht( u_int cursor );   void cr( u_int cursor );   int del_line_s( line_s* top );   void del_line( u_int cursor );   void setcol( u_int cursor );   void func( u_int cursor, register int, register int );   void arrow( u_int cursor, register int );   void ins( u_int cursor );   void del( u_int cursor );   void home( u_int cursor );   void end( u_int cursor );   void pgup( u_int cursor );   void pgdn( u_int cursor );   void pause( u_int cursor );   void esc( u_int cursor );   void prtsc( u_int cursor );   void cbreak( u_int cursor );   char ctrl( u_int cursor, register char );   char hex( u_int cursor, register char );   char pipe( u_int cursor, register char );}; # 5 "kbd.h" 2# 1 "queue.h" 1# 1 "/usr/include/sys/time.h" 1 3 # 1 "/usr/include/features.h" 1 3       # 142 "/usr/include/features.h" 3   # 212 "/usr/include/features.h" 3       # 1 "/usr/include/sys/cdefs.h" 1 3      # 65 "/usr/include/sys/cdefs.h" 3                   # 295 "/usr/include/features.h" 2 3   # 1 "/usr/include/gnu/stubs.h" 1 3 # 318 "/usr/include/features.h" 2 3# 22 "/usr/include/sys/time.h" 2 3# 1 "/usr/include/bits/types.h" 1 3  # 1 "/usr/include/bits/wordsize.h" 1 3 # 28 "/usr/include/bits/types.h" 2 3# 1 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 1 3 # 19 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3   # 61 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3     # 131 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3  typedef unsigned int size_t;  # 271 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3# 283 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3  # 317 "/usr/lib/gcc-lib/i386-linux/2.95.4/include/stddef.h" 3 # 31 "/usr/include/bits/types.h" 2 3 typedef unsigned char __u_char;typedef unsigned short int __u_short;typedef unsigned int __u_int;typedef unsigned long int __u_long; typedef signed char __int8_t;typedef unsigned char __uint8_t;typedef signed short int __int16_t;typedef unsigned short int __uint16_t;typedef signed int __int32_t;typedef unsigned int __uint32_t;__extension__ typedef signed long long int __int64_t;__extension__ typedef unsigned long long int __uint64_t; __extension__ typedef long long int __quad_t;__extension__ typedef unsigned long long int __u_quad_t;# 70 "/usr/include/bits/types.h" 3 # 128 "/usr/include/bits/types.h" 3# 1 "/usr/include/bits/typesizes.h" 1 3   # 129 "/usr/include/bits/types.h" 2 3 __extension__ typedef  unsigned long long int   __dev_t;	 __extension__ typedef  unsigned int   __uid_t;	 __extension__ typedef  unsigned int   __gid_t;	 __extension__ typedef  unsigned long int   __ino_t;	 __extension__ typedef  unsigned long long int   __ino64_t;	 __extension__ typedef  unsigned int   __mode_t;	 __extension__ typedef  unsigned int   __nlink_t;	 __extension__ typedef  long int   __off_t;	 __extension__ typedef  long long int   __off64_t;	 __extension__ typedef  int   __pid_t;	 __extension__ typedef  struct { int __val[2]; }  __fsid_t;	 __extension__ typedef  long int   __clock_t;	 __extension__ typedef  unsigned long int   __rlim_t;	 __extension__ typedef  unsigned long long int   __rlim64_t;	 __extension__ typedef  unsigned int   __id_t;		 __extension__ typedef  long int   __time_t;	 __extension__ typedef  unsigned int   __useconds_t;  __extension__ typedef  long int   __suseconds_t;  __extension__ typedef  int   __daddr_t;	 __extension__ typedef  long int   __swblk_t;	 __extension__ typedef  int   __key_t;	  __extension__ typedef  int   __clockid_t; __extension__ typedef  int   __timer_t; __extension__ typedef  long int   __blksize_t;  __extension__ typedef  long int   __blkcnt_t;__extension__ typedef  long long int   __blkcnt64_t; __extension__ typedef  unsigned long int   __fsblkcnt_t;__extension__ typedef  unsigned long long int   __fsblkcnt64_t; __extension__ typedef  unsigned long int   __fsfilcnt_t;__extension__ typedef  unsigned long long int   __fsfilcnt64_t;__extension__ typedef  int   __ssize_t;   typedef __off64_t __loff_t;	 typedef __quad_t *__qaddr_t;typedef char *__caddr_t; __extension__ typedef  int  __intptr_t; __extension__ typedef  unsigned int  __socklen_t;# 24 "/usr/include/sys/time.h" 2 3# 1 "/usr/include/time.h" 1 3  # 51 "/usr/include/time.h" 3# 66 "/usr/include/time.h" 3  typedef __time_t time_t;  # 94 "/usr/include/time.h" 3# 106 "/usr/include/time.h" 3# 124 "/usr/include/time.h" 3# 415 "/usr/include/time.h" 3# 26 "/usr/include/sys/time.h" 2 3# 1 "/usr/include/bits/time.h" 1 3  # 59 "/usr/include/bits/time.h" 3 struct timeval  {    __time_t tv_sec;		     __suseconds_t tv_usec;	   };# 28 "/usr/include/sys/time.h" 2 3# 1 "/usr/include/sys/select.h" 1 3    # 1 "/usr/include/bits/select.h" 1 3 # 36 "/usr/include/bits/select.h" 3# 56 "/usr/include/bits/select.h" 3# 72 "/usr/include/bits/select.h" 3# 31 "/usr/include/sys/select.h" 2 3 # 1 "/usr/include/bits/sigset.h" 1 3 typedef int __sig_atomic_t; typedef struct  {    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int))) ];  } __sigset_t; # 125 "/usr/include/bits/sigset.h" 3# 34 "/usr/include/sys/select.h" 2 3typedef __sigset_t sigset_t; # 1 "/usr/include/time.h" 1 3  # 51 "/usr/include/time.h" 3# 66 "/usr/include/time.h" 3# 82 "/usr/include/time.h" 3# 94 "/usr/include/time.h" 3# 106 "/usr/include/time.h" 3 struct timespec  {    __time_t tv_sec;		     long int tv_nsec;		   };# 415 "/usr/include/time.h" 3# 44 "/usr/include/sys/select.h" 2 3# 1 "/usr/include/bits/time.h" 1 3  # 59 "/usr/include/bits/time.h" 3# 74 "/usr/include/bits/time.h" 3# 46 "/usr/include/sys/select.h" 2 3typedef __suseconds_t suseconds_t; typedef long int __fd_mask;   typedef struct  {         __fd_mask __fds_bits[1024  / (8 * sizeof (__fd_mask)) ];  } fd_set;  typedef __fd_mask fd_mask;  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -