File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 3
3
#include " xalloc.h"
4
4
5
5
// string(char)
6
- using xr_string = std::basic_string<char , std::char_traits<char >, xalloc<char >>;
6
+ typedef std::basic_string<char , std::char_traits<char >, xalloc<char >> xr_string ;
7
7
8
8
inline void xr_strlwr (xr_string& src)
9
9
{
Original file line number Diff line number Diff line change 96
96
// stl ext
97
97
struct XRCORE_API xr_rtoken
98
98
{
99
- xr_string name;
99
+ shared_str name;
100
100
int id;
101
101
102
- xr_rtoken (const pcstr _nm, const int _id)
102
+ xr_rtoken (pcstr _nm, int _id)
103
103
{
104
104
name = _nm;
105
105
id = _id;
106
106
}
107
107
108
- void rename (const pcstr _nm) { name = _nm; }
109
- bool equal (const pcstr _nm) const
110
- {
111
- return name.compare (_nm) == 0 ;
112
- }
108
+ void rename (pcstr _nm) { name = _nm; }
109
+ bool equal (pcstr _nm) const { return (0 == xr_strcmp (*name, _nm)); }
113
110
};
114
111
115
112
#pragma pack(push, 1)
You can’t perform that action at this time.
0 commit comments