ruby-tls 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ext/tls/page.h CHANGED
@@ -1,62 +1,61 @@
1
- /*****************************************************************************
2
-
3
- $Id$
4
-
5
- File: page.h
6
- Date: 30Apr06
7
-
8
- Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
9
- Gmail: blackhedd
10
-
11
- This program is free software; you can redistribute it and/or modify
12
- it under the terms of either: 1) the GNU General Public License
13
- as published by the Free Software Foundation; either version 2 of the
14
- License, or (at your option) any later version; or 2) Ruby's License.
15
-
16
- See the file COPYING for complete licensing information.
17
-
18
- *****************************************************************************/
19
-
20
-
21
- #ifndef __PageManager__H_
22
- #define __PageManager__H_
23
-
24
-
25
- #include <deque>
26
- #include <stdexcept>
27
- #include <assert.h>
28
-
29
- #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
30
- #include <windows.h>
31
- #endif
32
-
33
- using namespace std;
34
-
35
-
36
- /**************
37
- class PageList
38
- **************/
39
-
40
- class PageList
41
- {
42
- struct Page {
43
- Page (const char *b, size_t s): Buffer(b), Size(s) {}
44
- const char *Buffer;
45
- size_t Size;
46
- };
47
-
48
- public:
49
- PageList();
50
- virtual ~PageList();
51
-
52
- void Push (const char*, int);
53
- bool HasPages();
54
- void Front (const char**, int*);
55
- void PopFront();
56
-
57
- private:
58
- deque<Page> Pages;
59
- };
60
-
61
-
62
- #endif // __PageManager__H_
1
+ /*****************************************************************************
2
+
3
+ $Id$
4
+
5
+ File: page.h
6
+ Date: 30Apr06
7
+
8
+ Copyright (C) 2006-07 by Francis Cianfrocca. All Rights Reserved.
9
+ Gmail: blackhedd
10
+
11
+ This program is free software; you can redistribute it and/or modify
12
+ it under the terms of either: 1) the GNU General Public License
13
+ as published by the Free Software Foundation; either version 2 of the
14
+ License, or (at your option) any later version; or 2) Ruby's License.
15
+
16
+ See the file COPYING for complete licensing information.
17
+
18
+ *****************************************************************************/
19
+
20
+
21
+ #ifndef __PageManager__H_
22
+ #define __PageManager__H_
23
+
24
+
25
+ #include <deque>
26
+ #include <stdexcept>
27
+ #include <assert.h>
28
+ #include <stdlib.h>
29
+ #include <string.h>
30
+
31
+
32
+ using namespace std;
33
+
34
+
35
+ /**************
36
+ class PageList
37
+ **************/
38
+
39
+ class PageList
40
+ {
41
+ struct Page {
42
+ Page (const char *b, size_t s): Buffer(b), Size(s) {}
43
+ const char *Buffer;
44
+ size_t Size;
45
+ };
46
+
47
+ public:
48
+ PageList();
49
+ virtual ~PageList();
50
+
51
+ void Push (const char*, int);
52
+ bool HasPages();
53
+ void Front (const char**, int*);
54
+ void PopFront();
55
+
56
+ private:
57
+ deque<Page> Pages;
58
+ };
59
+
60
+
61
+ #endif // __PageManager__H_