From aeb0d4f887a0c18c36b59acc7b5df08e62020c50 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Sun, 11 Oct 2020 21:32:48 +0300 Subject: Removed old homeworks --- homework/81568/c2html/main.cpp | 114 ----------------------------------------- 1 file changed, 114 deletions(-) delete mode 100644 homework/81568/c2html/main.cpp (limited to 'homework/81568/c2html/main.cpp') diff --git a/homework/81568/c2html/main.cpp b/homework/81568/c2html/main.cpp deleted file mode 100644 index d4dbed3..0000000 --- a/homework/81568/c2html/main.cpp +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include - -#include "cyclomatic.h" -#include "html_utils.h" -#include "lexcer.h" - -int main(int argc, char *argv[]) { - - if (argc != 2) { - printf("Usage: %s <*.{c,h} file>\n", argv[0]); - return 1; /* wrong usage */ - } - - auto fpIn = fopen(argv[1], "r"); - if (!fpIn) { - return 2; /* unable to open file or inavlid file */ - } - - auto outputName = HTMLUtils::getOutputFileName(argv[1]); - auto fpOut = fopen(outputName.c_str(), "w"); - if (!fpOut) { - return 2; - } - - - fputs( - "\n" - "\n" - "\n" - " LexCed\n" - " \n" - "\n" - "\n" - "
\n",
-        fpOut
-        );
-  ParCer::outputWithCyclomaticComplexity(fpIn, fpOut);
-  fputs("
\n" - "\n", fpOut); - - printf("Highlighted text written in %s!\n", outputName.c_str()); - - return 0; -} -- cgit v1.3.1-23-gd82d