From 7c96b16179792a044ded6ade1b74cdb1c0b870a5 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Fri, 3 Feb 2017 23:16:28 -0600 Subject: use std:: prefix and remove some unused functions --- tools/scaninc/asm_file.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/scaninc/asm_file.cpp') diff --git a/tools/scaninc/asm_file.cpp b/tools/scaninc/asm_file.cpp index 143c70242..c3d140bb1 100644 --- a/tools/scaninc/asm_file.cpp +++ b/tools/scaninc/asm_file.cpp @@ -27,23 +27,23 @@ AsmFile::AsmFile(std::string path) { m_path = path; - FILE *fp = fopen(path.c_str(), "rb"); + FILE *fp = std::fopen(path.c_str(), "rb"); if (fp == NULL) FATAL_ERROR("Failed to open \"%s\" for reading.\n", path.c_str()); - fseek(fp, 0, SEEK_END); + std::fseek(fp, 0, SEEK_END); - m_size = ftell(fp); + m_size = std::ftell(fp); m_buffer = new char[m_size]; - rewind(fp); + std::rewind(fp); - if (fread(m_buffer, m_size, 1, fp) != 1) + if (std::fread(m_buffer, m_size, 1, fp) != 1) FATAL_ERROR("Failed to read \"%s\".\n", path.c_str()); - fclose(fp); + std::fclose(fp); m_pos = 0; m_lineNum = 1; -- cgit v1.2.3