Mild const-correctness improvements.
Only touch a few things, the main focus is to improve code readability. https://git.suckless.org/st/commit/4536f46cfff50c66a115755def0155d8e246b02f.html
This commit is contained in:
parent
29b20b54c5
commit
763e9f15b3
3 changed files with 28 additions and 26 deletions
4
st.h
4
st.h
|
|
@ -303,7 +303,7 @@ void tmoveto(int x, int y);
|
|||
#endif // VIM_BROWSE_PATCH
|
||||
void tsetdirtattr(int);
|
||||
void ttyhangup(void);
|
||||
int ttynew(char *, char *, char *, char **);
|
||||
int ttynew(const char *, char *, const char *, char **);
|
||||
size_t ttyread(void);
|
||||
void ttyresize(int, int);
|
||||
void ttywrite(const char *, size_t, int);
|
||||
|
|
@ -321,7 +321,7 @@ size_t utf8encode(Rune, char *);
|
|||
|
||||
void *xmalloc(size_t);
|
||||
void *xrealloc(void *, size_t);
|
||||
char *xstrdup(char *);
|
||||
char *xstrdup(const char *);
|
||||
#if BOXDRAW_PATCH
|
||||
int isboxdraw(Rune);
|
||||
ushort boxdrawindex(const Glyph *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue