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

📄 buffer.cc

📁 initial working phase of the design of said editor, featuring multicasting, advanced linux keyboard
💻 CC
字号:
#include "buffer.h"#include <stdlib.h>#include <unistd.h>buffer::~buffer(){//   delete text; // moved to term.cc due to line type replacement strategy//   free( text );}buffer::buffer(){// text = ( char* )NULL; -- do nothing -- this could be called twice!// this is called once now, but would be twice upon line::line( int );// more recently, it isn't called at all.}buffer::buffer( int s ){   text = new char[ s ];  /*   if( (//      text = ( char* )malloc( s )      ) == NULL );// {}  */}buffer::buffer( buffer* here ): text( here -> text ){}/*void buffer::resize( int size ){//   text = ( char* )realloc( text, size );}*/

⌨️ 快捷键说明

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