Skip to content

Commit 838ba19

Browse files
committed
cs.h whitespace fix
1 parent 57a8a2d commit 838ba19

File tree

1 file changed

+1
-4
lines changed
  • src/engine/interface

1 file changed

+1
-4
lines changed

src/engine/interface/cs.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ enum CubeScriptCodes
8686
Ret_Float = Value_Float<<Code_Ret,
8787
};
8888

89-
9089
struct stringslice final
9190
{
9291
const char *str;
@@ -98,7 +97,6 @@ struct stringslice final
9897
const char *end() const { return &str[len]; }
9998
};
10099

101-
102100
inline char *copystring(char *d, const stringslice &s, size_t len)
103101
{
104102
size_t slen = min(size_t(s.len), len-1);
@@ -129,11 +127,9 @@ inline double parsenumber(const char *s)
129127
|| (*end!='x' && *end!='X') ? static_cast<double>(val) : static_cast<double>(parseint(s));
130128
}
131129

132-
133130
inline void intformat(char *buf, int v, int len = 20) { nformatstring(buf, len, "%d", v); }
134131
inline void floatformat(char *buf, float v, int len = 20) { nformatstring(buf, len, v==static_cast<int>(v) ? "%.1f" : "%.7g", v); }
135132

136-
137133
extern const char *intstr(int v);
138134

139135
inline const char *getstr(const identval &v, int type)
@@ -160,6 +156,7 @@ inline const char *getstr(const identval &v, int type)
160156
}
161157
}
162158
}
159+
163160
inline const char *tagval::getstr() const
164161
{
165162
return ::getstr(*this, type);

0 commit comments

Comments
 (0)