diff options
author | arphaman <arphaman@gmail.com> | 2013-07-12 16:37:13 +0100 |
---|---|---|
committer | arphaman <arphaman@gmail.com> | 2013-07-12 16:37:13 +0100 |
commit | 2dac284ac70786befe1907dfde11dbd95c3d6805 (patch) | |
tree | 2ed82278cd8c667e2da810d8681f022f464c1ee4 | |
parent | f2eba4267c595d6f74e576c9f2319eda38346658 (diff) | |
download | libflangrt-2dac284ac70786befe1907dfde11dbd95c3d6805.tar.gz |
added stop stmt
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/Core/Core.h | 17 | ||||
-rw-r--r-- | include/Libflang.h | 16 | ||||
-rw-r--r-- | lib/Core/Core.cpp | 6 |
4 files changed, 41 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2770e61..6a27bd2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,8 @@ macro(add_libflang_library name) list(APPEND libflang_libraries ${name}) endmacro(add_libflang_library) +include_directories(include) + add_subdirectory(include) add_subdirectory(lib) diff --git a/include/Core/Core.h b/include/Core/Core.h index e69de29..c03cbd4 100644 --- a/include/Core/Core.h +++ b/include/Core/Core.h @@ -0,0 +1,17 @@ +//===--- Core.h - Core library --------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBFLANG_CORE_H +#define LLVM_LIBFLANG_CORE_H + +#include "Libflang.h" + +LIBFLANG_ABI void libflang_stop(); + +#endif diff --git a/include/Libflang.h b/include/Libflang.h new file mode 100644 index 0000000..c931ec2 --- /dev/null +++ b/include/Libflang.h @@ -0,0 +1,16 @@ +//===--- Libflang.h - ------------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBFLANG_H +#define LLVM_LIBFLANG_H + +#define LIBFLANG_ABI extern "C" + +#endif + diff --git a/lib/Core/Core.cpp b/lib/Core/Core.cpp index e69de29..73d5c08 100644 --- a/lib/Core/Core.cpp +++ b/lib/Core/Core.cpp @@ -0,0 +1,6 @@ +#include <cstdlib> +#include "Core/Core.h" + +LIBFLANG_ABI void libflang_stop() { + exit(0); +} |