summaryrefslogtreecommitdiffstats
path: root/contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp
diff options
context:
space:
mode:
authorisiv <[email protected]>2022-02-10 16:47:54 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:54 +0300
commitf20e3f1949626df2ef9d81d7618ec367b0c34f6b (patch)
tree36465c9262a386743fc483efb848be6d76c5ac04 /contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp
parent7a839432184dcd989efaeccf678e4238d71bd9b0 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp')
-rw-r--r--contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp b/contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp
index 140b1a5f673..55985cb0619 100644
--- a/contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp
+++ b/contrib/libs/antlr3_cpp_runtime/include/antlr3filestream.hpp
@@ -1,5 +1,5 @@
-#ifndef _ANTLR3_FILESTREAM_HPP
-#define _ANTLR3_FILESTREAM_HPP
+#ifndef _ANTLR3_FILESTREAM_HPP
+#define _ANTLR3_FILESTREAM_HPP
// [The "BSD licence"]
// Copyright (c) 2005-2009 Gokulakannan Somasundaram, ElectronDB
@@ -29,41 +29,41 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-namespace antlr3 {
+namespace antlr3 {
template<class ImplTraits>
class FileUtils
{
public:
- /** \brief Open an operating system file and return the descriptor
- * We just use the common open() and related functions here.
- * Later we might find better ways on systems
- * such as Windows and OpenVMS for instance. But the idea is to read the
- * while file at once anyway, so it may be irrelevant.
- */
- static ANTLR_FDSC AntlrFopen(const ANTLR_UINT8* filename, const char * mode);
+ /** \brief Open an operating system file and return the descriptor
+ * We just use the common open() and related functions here.
+ * Later we might find better ways on systems
+ * such as Windows and OpenVMS for instance. But the idea is to read the
+ * while file at once anyway, so it may be irrelevant.
+ */
+ static ANTLR_FDSC AntlrFopen(const ANTLR_UINT8* filename, const char * mode);
- /** \brief Close an operating system file and free any handles
- * etc.
- */
- static void AntlrFclose (ANTLR_FDSC fd);
+ /** \brief Close an operating system file and free any handles
+ * etc.
+ */
+ static void AntlrFclose (ANTLR_FDSC fd);
- static ANTLR_UINT32 AntlrFsize(const ANTLR_UINT8* filename);
- template<typename InputStreamType>
- static ANTLR_UINT32 AntlrRead8Bit(InputStreamType* input, const ANTLR_UINT8* fileName);
- static ANTLR_UINT32 AntlrFread(ANTLR_FDSC fdsc, ANTLR_UINT32 count, void* data);
+ static ANTLR_UINT32 AntlrFsize(const ANTLR_UINT8* filename);
+ template<typename InputStreamType>
+ static ANTLR_UINT32 AntlrRead8Bit(InputStreamType* input, const ANTLR_UINT8* fileName);
+ static ANTLR_UINT32 AntlrFread(ANTLR_FDSC fdsc, ANTLR_UINT32 count, void* data);
};
class ParseFileAbsentException : public std::exception
{
virtual const char* what() const noexcept
- {
- return " Parse File not Present";
- }
+ {
+ return " Parse File not Present";
+ }
};
-}
+}
#include "antlr3filestream.inl"