K&R tile.h: conversion to ANSI
K&R obsolete syntax removal for C23 compatibility series
This commit is contained in:
parent
e8ad7c9ac8
commit
d082c67b03
24
tiles/tile.h
24
tiles/tile.h
|
|
@ -194,16 +194,16 @@ PlaneSetHint_inline(Plane *pl, Tile *ti)
|
||||||
* ever needed by modules other than the tile module.
|
* ever needed by modules other than the tile module.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern Plane *TiNewPlane(Tile *);
|
extern Plane *TiNewPlane(Tile *tile);
|
||||||
extern void TiFreePlane(Plane *);
|
extern void TiFreePlane(Plane *plane);
|
||||||
extern void TiToRect(Tile *, Rect *);
|
extern void TiToRect(Tile *tile, Rect *rect);
|
||||||
extern Tile *TiSplitX(Tile *, int);
|
extern Tile *TiSplitX(Tile *tile, int x);
|
||||||
extern Tile *TiSplitY(Tile *, int);
|
extern Tile *TiSplitY(Tile *tile, int y);
|
||||||
extern Tile *TiSplitX_Left(Tile *, int);
|
extern Tile *TiSplitX_Left(Tile *tile, int x);
|
||||||
extern Tile *TiSplitY_Bottom(Tile *, int);
|
extern Tile *TiSplitY_Bottom(Tile *tile, int y);
|
||||||
extern void TiJoinX(Tile *, Tile *, Plane *);
|
extern void TiJoinX(Tile *tile1, Tile *tile2, Plane *plane);
|
||||||
extern void TiJoinY(Tile *, Tile *, Plane *);
|
extern void TiJoinY(Tile *tile1, Tile *tile2, Plane *plane);
|
||||||
extern Tile *TiSrPoint(Tile *, Plane *, Point *);
|
extern Tile *TiSrPoint(Tile *hint, Plane *plane, Point *point);
|
||||||
|
|
||||||
#define TiBottom(tp) (BOTTOM(tp))
|
#define TiBottom(tp) (BOTTOM(tp))
|
||||||
#define TiLeft(tp) (LEFT(tp))
|
#define TiLeft(tp) (LEFT(tp))
|
||||||
|
|
@ -264,8 +264,8 @@ extern Tile *TiSrPoint(Tile *, Plane *, Point *);
|
||||||
#define TiSetClientINT(tp,cd) ((tp)->ti_client = INT2CD((cd)))
|
#define TiSetClientINT(tp,cd) ((tp)->ti_client = INT2CD((cd)))
|
||||||
#define TiSetClientPTR(tp,cd) ((tp)->ti_client = PTR2CD((cd)))
|
#define TiSetClientPTR(tp,cd) ((tp)->ti_client = PTR2CD((cd)))
|
||||||
|
|
||||||
Tile *TiAlloc(void);
|
extern Tile *TiAlloc(void);
|
||||||
void TiFree(Tile *);
|
extern void TiFree(Tile *tile);
|
||||||
|
|
||||||
#define EnclosePoint(tile,point) ((LEFT(tile) <= (point)->p_x ) && \
|
#define EnclosePoint(tile,point) ((LEFT(tile) <= (point)->p_x ) && \
|
||||||
((point)->p_x < RIGHT(tile)) && \
|
((point)->p_x < RIGHT(tile)) && \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue