diff --git a/ChatScript-7.3/BINARIES/ChatScript b/ChatScript-7.3/BINARIES/ChatScript deleted file mode 100644 index de88720..0000000 Binary files a/ChatScript-7.3/BINARIES/ChatScript and /dev/null differ diff --git a/ChatScript-7.3/BINARIES/ChatScript.a b/ChatScript-7.3/BINARIES/libChatScript.a similarity index 99% rename from ChatScript-7.3/BINARIES/ChatScript.a rename to ChatScript-7.3/BINARIES/libChatScript.a index 846457c..72a03db 100644 Binary files a/ChatScript-7.3/BINARIES/ChatScript.a and b/ChatScript-7.3/BINARIES/libChatScript.a differ diff --git a/ChatScript-7.3/SRC/Makefile_lib b/ChatScript-7.3/SRC/Makefile_lib index 1ac8bff..241817e 100644 --- a/ChatScript-7.3/SRC/Makefile_lib +++ b/ChatScript-7.3/SRC/Makefile_lib @@ -2,7 +2,7 @@ cs: DEFINES+= -DDISCARDSERVER=1 -DDISCARDPOSTGRES=1 -DDISCARDMONGO=1 -DDISCARDM cs: PGLOAD= -pthread cs: INCLUDEDIRS=-Ievserver -I../privatecode/Jieba/include/ -I../privatecode/Jieba/deps/ cs: all -cs: LIBS=../BINARIES/ChatScript.a +cs: LIBS=../BINARIES/libChatScript.a cs: CFLAGS=-c -std=c++11 -Wall -funsigned-char -Wno-write-strings -Wno-char-subscripts -Wno-strict-aliasing diff --git a/ChatScript-7.3/Usage/Dialog.cpp b/ChatScript-7.3/Usage/Dialog.cpp new file mode 100644 index 0000000..de9ecf1 --- /dev/null +++ b/ChatScript-7.3/Usage/Dialog.cpp @@ -0,0 +1,11 @@ +// https://www.chatbots.org/ai_zone/viewthread/1552/P15/ + +main(int argc, char** argv) +{ + int i; + + printf("argc = %d\n", argc); + + for (i = 0; i < argc; i++) + printf("argv[%d] = \"%s\"\n", i, argv); +} \ No newline at end of file diff --git a/ChatScript-7.3/Usage/Makefile b/ChatScript-7.3/Usage/Makefile new file mode 100644 index 0000000..e69de29