Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* |
michael@0 | 2 | Copyright (c) 1999 Samphan Raruenrom <samphan@thai.com> |
michael@0 | 3 | Permission to use, copy, modify, distribute and sell this software |
michael@0 | 4 | and its documentation for any purpose is hereby granted without fee, |
michael@0 | 5 | provided that the above copyright notice appear in all copies and |
michael@0 | 6 | that both that copyright notice and this permission notice appear |
michael@0 | 7 | in supporting documentation. Samphan Raruenrom makes no |
michael@0 | 8 | representations about the suitability of this software for any |
michael@0 | 9 | purpose. It is provided "as is" without express or implied warranty. |
michael@0 | 10 | */ |
michael@0 | 11 | #ifndef __RULEBRK_H__ |
michael@0 | 12 | #define __RULEBRK_H__ |
michael@0 | 13 | #include "th_char.h" |
michael@0 | 14 | |
michael@0 | 15 | #ifdef __cplusplus |
michael@0 | 16 | extern "C" { |
michael@0 | 17 | #endif |
michael@0 | 18 | |
michael@0 | 19 | int TrbWordBreakPos(const th_char *pstr, int left, |
michael@0 | 20 | const th_char *rstr, int right); |
michael@0 | 21 | int TrbFollowing(const th_char *begin, int length, int offset); |
michael@0 | 22 | |
michael@0 | 23 | #ifdef __cplusplus |
michael@0 | 24 | } |
michael@0 | 25 | #endif |
michael@0 | 26 | #endif |