ncplane_cursor_yx() takes const first argument

pull/406/head
nick black 4 years ago
parent bdd7f9422a
commit ba90c70a47
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -800,7 +800,7 @@ memory.
int ncplane_cursor_move_yx(struct ncplane* n, int y, int x);
// Get the current position of the cursor within n. y and/or x may be NULL.
void ncplane_cursor_yx(struct ncplane* n, int* restrict y, int* restrict x);
void ncplane_cursor_yx(const struct ncplane* n, int* restrict y, int* restrict x);
// Replace the cell at the specified coordinates with the provided cell 'c',
// and advance the cursor by the width of the cell (but not past the end of the

@ -52,9 +52,7 @@ notcurses_ncplane - operations on notcurses planes
**static inline int ncplane_dim_x(const struct ncplane* n);**
**int ncplane_cursor_move_yx(struct ncplane* n, int y, int x);**
**void ncplane_cursor_yx(struct ncplane* n, int* restrict y, int* restrict x);**
**void ncplane_cursor_yx(const struct ncplane* n, int* restrict y, int* restrict x);**
**void ncplane_translate(const struct ncplane* src, const struct ncplane* dst, int* restrict y, int* restrict x);**

@ -79,9 +79,6 @@ ncplane_printf_aligned(struct ncplane* n, int y, ncalign_e align, const char* fo
**int ncplane_cursor_move_yx(struct ncplane* n, int y, int x);**
**void ncplane_cursor_yx(const struct ncplane* n, int* restrict y,
int* restrict x);**
# DESCRIPTION
These functions write EGCs (Extended Grapheme Clusters) to the specified

@ -604,7 +604,7 @@ ncplane_align(const struct ncplane* n, ncalign_e align, int c){
API int ncplane_cursor_move_yx(struct ncplane* n, int y, int x);
// Get the current position of the cursor within n. y and/or x may be NULL.
API void ncplane_cursor_yx(struct ncplane* n, int* RESTRICT y, int* RESTRICT x);
API void ncplane_cursor_yx(const struct ncplane* n, int* RESTRICT y, int* RESTRICT x);
// Replace the cell at the specified coordinates with the provided cell 'c',
// and advance the cursor by the width of the cell (but not past the end of the

@ -1311,7 +1311,7 @@ int ncplane_cursor_move_yx(ncplane* n, int y, int x){
return ncplane_cursor_move_yx_locked(n, y, x);
}
void ncplane_cursor_yx(ncplane* n, int* y, int* x){
void ncplane_cursor_yx(const ncplane* n, int* y, int* x){
if(y){
*y = n->y;
}

Loading…
Cancel
Save