资源简介
MariaDB是一个增强的MySQL替代品,并且在GPL v2许可证下可用。它主要是由MariaDB community开发的,由MariaDB Foundation主管。
代码片段和文件信息
/* $NetBSD: chared.cv 1.36 2011/10/23 17:37:55 christos Exp $ */
/*-
* Copyright (c) 1992 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ‘‘AS IS‘‘ AND
* ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT
* LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include “config.h“
#if !defined(lint) && !defined(SCCSID)
#if 0
static char sccsid[] = “@(#)chared.c 8.1 (Berkeley) 6/4/93“;
#else
#endif
#endif /* not lint && not SCCSID */
/*
* chared.c: Character editor utilities
*/
#include
#include “el.h“
private void ch__clearmacro (EditLine *);
/* value to leave unused in line buffer */
#define EL_LEAVE 2
/* cv_undo():
* Handle state for the vi undo command
*/
protected void
cv_undo(EditLine *el)
{
c_undo_t *vu = &el->el_chared.c_undo;
c_redo_t *r = &el->el_chared.c_redo;
size_t size;
/* Save entire line for undo */
size = (size_t)(el->el_line.lastchar - el->el_line.buffer);
vu->len = (ssize_t)size;
vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
(void)memcpy(vu->buf el->el_line.buffer size * sizeof(*vu->buf));
/* save command info for redo */
r->count = el->el_state.doingarg ? el->el_state.argument : 0;
r->action = el->el_chared.c_vcmd.action;
r->pos = r->buf;
r->cmd = el->el_state.thiscmd;
r->ch = el->el_state.thisch;
}
/* cv_yank():
* Save yank/delete data for paste
*/
protected void
cv_yank(EditLine *el const Char *ptr int size)
{
c_kill_t *k = &el->el_chared.c_kill;
(void)memcpy(k->buf ptr (size_t)size
相关资源
- SQL Server从入门到精通103837
- 2019年百万条形码数据库sql文件UTF8编码
- idea springboot项目源码-带mysql数据库,
- 《NOSQL数据库入门》高清扫描完整版
- 海泰电子病历系统源码附带mysql数据库
- MySQL 5权威指南中文版(第3版)
- [Oracle11g数据库基础教程第2版][孙风栋
- 欧亚汽修系统源码附带mysql数据库
- 数据库sql2012包含北京、广州、浦东、
- NavicatForSqlServer12中文版附注册机
- SQL经典.[美]Anthony Molinaro(带详细书签
- Myeclipsestruts2实现增删改查+mysql数据库
- SQL Server 2012 T-SQL基础教程
- treeDMS,数据库可视化工具
- 2018版11月 MySQL 8 Cookbook中文版.rar
- 数据库系统设计-课程设计-班级信息管
- Mysql数据库
- MySQL数据库和图形化界面
- 全国五级地址数据库sqlserver
- [最低积分]postgreSQL修炼之道从小工到
- 医药销售管理系统【SQLServer数据库+课
- 基于SSM的音乐播放器管理网站源代码
- MYSQL_Navicat Premium永久破解版
- SqlServer局域网备份工具 备份服务器数
- fbo_ggs_Linux_x64_ora11g_64bit.tar-ogg版本包
- nodejs封装好的mysql数据库模块,带my
- 完整LIS系统(PB源码+ORAClE数据库).
- IP地址数据库含国外IP地址
- logstash5.6.1向es导入oracle数据库数据
- 基于Qt的局域网通信含数据库和视频通
评论
共有 条评论