bc66e673fa
# Conflicts: # include/builtins.h # include/data.h # include/editor_op.h # include/file_io.h # include/input.h # include/row_op.h # install.sh # main.c # meson.build # src/builtins.c # src/editor_op.c # src/file_io.c # src/init.c # src/input.c # src/output.c # src/row_op.c
27 lines
751 B
C
27 lines
751 B
C
#ifndef ROW_OP_H_
|
|
#define ROW_OP_H_
|
|
|
|
#include "data.h"
|
|
#include "define.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <time.h>
|
|
#include <unistd.h>
|
|
|
|
void bufferInsertRow(struct buffer_t *buffer, int at, char *s, size_t len);
|
|
int editorRowCxToByte(const row_t *row, int cursor_x);
|
|
|
|
int editorRowCharCount(row_t *row);
|
|
|
|
void bufferDelRow(struct buffer_t *buffer, int at);
|
|
void editorRowInsertBytes(row_t *row, int at, const char *src, int len);
|
|
|
|
void editorRowDelByte(row_t *row, int at, int n);
|
|
void bufferRowInsertChar(struct buffer_t *buffer, frow *row, int at, int c);
|
|
|
|
void bufferRowAppendString(struct buffer_t *buffer, frow *row, char *s, size_t len);
|
|
|
|
void bufferRowDelchar(struct buffer_t *buffer, frow *row, int at);
|
|
|
|
#endif // ROW_OP_H_
|