OSDN Git Service

test
authorttwilb <someone@example.com>
Sun, 24 Feb 2013 03:25:44 +0000 (12:25 +0900)
committerttwilb <someone@example.com>
Sun, 24 Feb 2013 03:25:44 +0000 (12:25 +0900)
Namespace.cpp [new file with mode: 0644]
Stream.cpp [new file with mode: 0644]
cmdline.c [new file with mode: 0644]
common.h [new file with mode: 0644]
common_cpp.h [new file with mode: 0644]
main.c [new file with mode: 0644]
toplev.c [new file with mode: 0644]
toplev_cpp.cpp [new file with mode: 0644]

diff --git a/Namespace.cpp b/Namespace.cpp
new file mode 100644 (file)
index 0000000..a06f796
--- /dev/null
@@ -0,0 +1,17 @@
+#include "common_cpp.h"
+
+/*** class Namespace ***/
+
+Namespace::Namespace(string path)
+{
+}
+
+
+Namespace::~Namespace(void)
+{
+}
+
+
+/*** class NamespaceManager ***/
+
+
diff --git a/Stream.cpp b/Stream.cpp
new file mode 100644 (file)
index 0000000..d27c9ec
--- /dev/null
@@ -0,0 +1,24 @@
+#include "common_cpp.h"
+
+/*** class Stream ***/
+
+Stream::Stream(void)
+{
+}
+
+Stream::~Stream(void)
+{
+}
+
+
+/*** class TextFileStream ***/
+
+int TextFileStream::Load(string fname)
+{
+       fileName = fname;
+       return 0;
+}
+
+TextFileStream::~TextFileStream(void)
+{
+}
diff --git a/cmdline.c b/cmdline.c
new file mode 100644 (file)
index 0000000..013d03d
--- /dev/null
+++ b/cmdline.c
@@ -0,0 +1,12 @@
+#include "common.h"
+
+/*
+* cmdline.c    --glent interactive user interface
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+
diff --git a/common.h b/common.h
new file mode 100644 (file)
index 0000000..2c78a31
--- /dev/null
+++ b/common.h
@@ -0,0 +1,27 @@
+/*
+* common.h     --glent main header file
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+#include <stdio.h>
+#include <string.h>
+
+
+/*** toplev.c ***/
+
+int toplev_main(int argc, const char** argv);
+
+
+/*** toplev_cpp.cpp ***/
+
+/* disable object mangling */
+#ifdef __cplusplus
+extern "C" int toplev_main_cpp(int argc, const char** argv);
+#else
+extern int toplev_main_cpp(int argc, const char** argv);
+#endif
+
diff --git a/common_cpp.h b/common_cpp.h
new file mode 100644 (file)
index 0000000..ccaded5
--- /dev/null
@@ -0,0 +1,57 @@
+
+extern"C"
+{
+       #include "common.h"
+}
+
+/*
+* common_cpp.h --glent main header for C++
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+
+#include <iostream>
+#include <string>
+
+using namespace std;
+
+
+/*** Stream.cpp ***/
+
+class Stream
+{
+public:
+       Stream(void);
+       ~Stream(void);
+
+       
+
+};
+
+class TextFileStream : public Stream
+{
+public:
+       TextFileStream(void);
+       ~TextFileStream(void);
+
+       int TextFileStream::Load(string fname);
+
+private:
+       string fileName;
+
+       
+};
+
+
+/*** Namespace.cpp ***/
+
+class Namespace
+{
+public:
+       Namespace(void);
+       ~Namespace(void);
+};
diff --git a/main.c b/main.c
new file mode 100644 (file)
index 0000000..85e4cc2
--- /dev/null
+++ b/main.c
@@ -0,0 +1,24 @@
+#include "common.h"
+
+/*
+* main.c       --program entry point
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+/*
+* We define main() to call toplev_main(), which is defined in toplev.c.
+* We do this in a separate file in order to allow the language front-end
+* to define a different main(), if it so desires.  
+*/
+
+int main(int argc, char** argv)
+{
+       /* the main statement in this glent system below */
+
+       return
+       toplev_main(argc, (const char **) argv);
+}
diff --git a/toplev.c b/toplev.c
new file mode 100644 (file)
index 0000000..d089af7
--- /dev/null
+++ b/toplev.c
@@ -0,0 +1,16 @@
+#include "common.h"
+
+/*
+* toplev.c     --glent entry point
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+int toplev_main(int argc, const char** argv)
+{
+       return 
+       toplev_main_cpp(argc, (const char **) argv);
+}
diff --git a/toplev_cpp.cpp b/toplev_cpp.cpp
new file mode 100644 (file)
index 0000000..231348d
--- /dev/null
@@ -0,0 +1,16 @@
+#include "common_cpp.h"
+
+/*
+* toplev_cpp.cpp       --glent entry point
+* 
+* Copyright(C) 2013(Heisei 25) ttwilb All rights reserved.
+* 
+* This source code is released on the BSD licensing.
+* 
+*/
+
+int toplev_main_cpp(int argc, const char** argv)
+{
+       
+       return 0;
+}