File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -912,6 +912,8 @@ class SSLClient : public Client {
912
912
};
913
913
#endif
914
914
915
+ // ----------------------------------------------------------------------------
916
+
915
917
/*
916
918
* Implementation
917
919
*/
@@ -4435,6 +4437,8 @@ inline bool SSLClient::check_host_name(const char *pattern,
4435
4437
}
4436
4438
#endif
4437
4439
4440
+ // ----------------------------------------------------------------------------
4441
+
4438
4442
} // namespace httplib
4439
4443
4440
4444
#endif // CPPHTTPLIB_HTTPLIB_H
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ border = '// ----------------------------------------------------------------------------'
4
+
5
+ with open ('httplib.h' ) as f :
6
+ lines = f .readlines ()
7
+ inImplementation = False
8
+ os .makedirs ('out' , exist_ok = True )
9
+ with open ('out/httplib.h' , 'w' ) as fh :
10
+ with open ('out/httplib.cc' , 'w' ) as fc :
11
+ fc .write ('#include "httplib.h"\n ' )
12
+ fc .write ('namespace httplib {\n ' )
13
+ for line in lines :
14
+ isBorderLine = border in line
15
+ if isBorderLine :
16
+ inImplementation = not inImplementation
17
+ else :
18
+ if inImplementation :
19
+ fc .write (line .replace ('inline ' , '' ))
20
+ pass
21
+ else :
22
+ fh .write (line )
23
+ pass
24
+ fc .write ('} // namespace httplib\n ' )
You can’t perform that action at this time.
0 commit comments