Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

dirstate.cpp: move ntohl() into dirstate as private

Changeset 97388276e8cf

Parent 98c4f12faa6e

by Adrian Buehlmann

Changes to one file · Browse files at 97388276e8cf Showing diff from parent 98c4f12faa6e Diff from another changeset...

 
86
87
88
 
 
 
 
 
 
 
 
 
89
90
91
 
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
 
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
 
120
121
122
 
 
 
 
 
 
 
 
 
123
124
125
@@ -86,6 +86,15 @@
    static std::auto_ptr<dirstate> read(const char *path);   void add(const direntry& e) { entries.push_back(e); } + +private: + static uint32_t ntohl(uint32_t x) + { + return ((x & 0x000000ffUL) << 24) | + ((x & 0x0000ff00UL) << 8) | + ((x & 0x00ff0000UL) >> 8) | + ((x & 0xff000000UL) >> 24); + }  };     @@ -111,15 +120,6 @@
 dirstatecache* dirstatecache::_cache = 0;     -static uint32_t ntohl(uint32_t x) -{ - return ((x & 0x000000ffUL) << 24) | - ((x & 0x0000ff00UL) << 8) | - ((x & 0x00ff0000UL) >> 8) | - ((x & 0xff000000UL) >> 24); -} - -  std::auto_ptr<dirstate> dirstate::read(const char *path)  {   direntry e;