rename _ct_shared.h -> ct_shared.h

This commit is contained in:
Emile Clark-Boman 2025-09-28 00:04:36 +10:00
parent 474b232b3a
commit 7466d19c5e
4 changed files with 21 additions and 17 deletions

View file

@ -1,15 +0,0 @@
#ifndef _CURSETREE__SHARED_H
#define _CURSETREE__SHARED_H
/* Standard success/failure status codes. */
#define OK (0)
#define ERR (1)
/* Initial row and column coordinates. */
#define ROW0 1
#define COL0 1
typedef unsigned short pos;
typedef unsigned char glyph;
#endif /* _CURSETREE__SHARED_H */

19
src/ct_shared.h Normal file
View file

@ -0,0 +1,19 @@
#ifndef CURSETREE_SHARED_H
#define CURSETREE_SHARED_H
/* Standard success/failure status codes.
* NERR is used when positive integers are reserved
* for non-error value return codes on success.
*/
#define OK (0)
#define ERR (1)
#define NERR (-1)
/* Initial row and column coordinates. */
#define ROW0 1
#define COL0 1
typedef unsigned short pos;
typedef unsigned char glyph;
#endif /* CURSETREE_SHARED_H */

View file

@ -1,7 +1,7 @@
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include "_ct_shared.h" #include "ct_shared.h"
#include "surface.h" #include "surface.h"
#define ALLOC_COLS(w) ((glyph *)calloc(w, sizeof(glyph))) #define ALLOC_COLS(w) ((glyph *)calloc(w, sizeof(glyph)))

View file

@ -1,7 +1,7 @@
#ifndef _CURSETREE_SURFACE_H #ifndef _CURSETREE_SURFACE_H
#define _CURSETREE_SURFACE_H #define _CURSETREE_SURFACE_H
#include "_ct_shared.h" #include "ct_shared.h"
typedef struct ct_surface { typedef struct ct_surface {
pos x, y, w, h; pos x, y, w, h;