Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chenb committed Jan 8, 2022
1 parent aefb0df commit a996551
Show file tree
Hide file tree
Showing 469 changed files with 5,548 additions and 2,615 deletions.
Binary file modified .DS_Store
Binary file not shown.
Empty file added .codelite/BacktickCache.txt
Empty file.
10 changes: 10 additions & 0 deletions .codelite/ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
std /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^namespace std { template<typename _Tp> class shared_ptr {$/;" namespace line:1
shared_ptr /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^namespace std { template<typename _Tp> class shared_ptr { $/;" class line:1 namespace:std
operator -> /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^ _Tp* operator->();$/;" prototype line:2 class:std::shared_ptr access:private signature:() returns:_Tp
reset /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^ void reset( Y* ptr );$/;" prototype line:3 class:std::shared_ptr access:private signature:( Y* ptr ) returns:void
reset /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^ void reset( Y* ptr, Deleter d );$/;" prototype line:4 class:std::shared_ptr access:private signature:( Y* ptr, Deleter d ) returns:void
reset /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^ void reset( Y* ptr, Deleter d, Alloc alloc );$/;" prototype line:5 class:std::shared_ptr access:private signature:( Y* ptr, Deleter d, Alloc alloc ) returns:void
get /Users/ac/Library/Application Support/CodeLite/tmp/codelite_templates.hpp /^ _T* get() const;$/;" prototype line:6 class:std::shared_ptr access:private signature:() const
function /Users/ac/Desktop/example/switch_goto/main.c /^int function(void) $/;" function line:3 signature:(void) returns:int
function_1 /Users/ac/Desktop/example/switch_goto/main.c /^int function_1(void) $/;" function line:16 signature:(void) returns:int
main /Users/ac/Desktop/example/switch_goto/main.c /^main(int argc, char **argv)$/;" function line:31 signature:(int argc, char **argv) returns:int
Binary file modified .codelite/example-austin_chen.tags
Binary file not shown.
Binary file added .codelite/example.db
Binary file not shown.
1,276 changes: 188 additions & 1,088 deletions .codelite/example.session

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions .codelite/example.workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"selected_config": "Debug",
"configs": [{
"name": "Debug",
"flags": 0,
"compile_flags": [],
"executable": "",
"arguments": "",
"environment": "",
"compiler": "clang( clang-703.0.31 )",
"remoteFolder": "",
"remoteAccount": "",
"workingDirectory": "",
"debuggerPath": "",
"debuggerCommands": "",
"last_executables": []
}]
}
5 changes: 5 additions & 0 deletions .codelite/example.workspace.austin_chen
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace>
<BuildMatrix SelectedConfiguration="Debug"/>
<WorkspaceParserFlags flags="1"/>
<WorkspaceParserPaths/>
<Environment Name="&lt;Use Defaults&gt;"/>
<PinnedProjects>
<Project Name="cxx11_rvalue"/>
</PinnedProjects>
<WorkspaceParserMacros/>
</Workspace>
4 changes: 2 additions & 2 deletions AVLTree/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/AVLTree
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/AVLTree
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions AVLTree2/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/AVLTree2
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/AVLTree2
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
60 changes: 29 additions & 31 deletions Algorithm/Algorithm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
## Debug
ProjectName :=Algorithm
ConfigurationName :=Debug
WorkspacePath := "E:\data\example"
ProjectPath := "E:\data\example\Algorithm"
WorkspacePath :=/Users/ac/Desktop/example
ProjectPath :=/Users/ac/Desktop/example/Algorithm
IntermediateDirectory :=./Debug
OutDir := $(IntermediateDirectory)
CurrentFileName :=
CurrentFilePath :=
CurrentFileFullPath :=
User :=AustinChen
Date :=01/07/2015
CodeLitePath :="d:\Program Files\CodeLite"
LinkerName :=D:/MinGW-4.8.1/bin/g++.exe
SharedObjectLinkerName :=D:/MinGW-4.8.1/bin/g++.exe -shared -fPIC
User :=austin chen
Date :=18/11/2021
CodeLitePath :="/Users/ac/Library/Application Support/codelite"
LinkerName :=/usr/bin/g++
SharedObjectLinkerName :=/usr/bin/g++ -dynamiclib -fPIC
ObjectSuffix :=.o
DependSuffix :=.o.d
PreprocessSuffix :=.i
Expand All @@ -34,9 +34,7 @@ ArchiveOutputSwitch :=
PreprocessOnlySwitch :=-E
ObjectsFileList :="Algorithm.txt"
PCHCompileFlags :=
MakeDirCommand :=makedir
RcCmpOptions :=
RcCompilerName :=D:/MinGW-4.8.1/bin/windres.exe
MakeDirCommand :=mkdir -p
LinkOptions :=
IncludePath := $(IncludeSwitch). $(IncludeSwitch).
IncludePCH :=
Expand All @@ -49,20 +47,20 @@ LibPath := $(LibraryPathSwitch).
## Common variables
## AR, CXX, CC, AS, CXXFLAGS and CFLAGS can be overriden using an environment variables
##
AR := D:/MinGW-4.8.1/bin/ar.exe rcu
CXX := D:/MinGW-4.8.1/bin/g++.exe
CC := D:/MinGW-4.8.1/bin/gcc.exe
AR := /usr/bin/ar rcu
CXX := /usr/bin/g++
CC := /usr/bin/gcc
CXXFLAGS := -g -O0 -Wall $(Preprocessors)
CFLAGS := -g -O0 -Wall $(Preprocessors)
ASFLAGS :=
AS := D:/MinGW-4.8.1/bin/as.exe
AS := /usr/bin/as


##
## User defined environment variables
##
CodeLiteDir:=d:\Program Files\CodeLite
Objects0=$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IntermediateDirectory)/algorithm.cc$(ObjectSuffix)
CodeLiteDir:=/Applications/codelite.app/Contents/SharedSupport/
Objects0=$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix) $(IntermediateDirectory)/main.cpp$(ObjectSuffix)



Expand All @@ -71,7 +69,7 @@ Objects=$(Objects0)
##
## Main Build Targets
##
.PHONY: all clean PreBuild PrePreBuild PostBuild
.PHONY: all clean PreBuild PrePreBuild PostBuild MakeIntermediateDirs
all: $(OutputFile)

$(OutputFile): $(IntermediateDirectory)/.d $(Objects)
Expand All @@ -80,30 +78,30 @@ $(OutputFile): $(IntermediateDirectory)/.d $(Objects)
@echo $(Objects0) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions)

MakeIntermediateDirs:
@test -d ./Debug || $(MakeDirCommand) ./Debug


$(IntermediateDirectory)/.d:
@$(MakeDirCommand) "./Debug"
@test -d ./Debug || $(MakeDirCommand) ./Debug

PreBuild:


##
## Objects
##
$(IntermediateDirectory)/main.cpp$(ObjectSuffix): main.cpp $(IntermediateDirectory)/main.cpp$(DependSuffix)
$(CXX) $(IncludePCH) $(SourceSwitch) "E:/data/example/Algorithm/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main.cpp$(DependSuffix): main.cpp
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/main.cpp$(DependSuffix) -MM "main.cpp"
$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix): algorithm.cc
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix) -MF$(IntermediateDirectory)/algorithm.cc$(DependSuffix) -MM algorithm.cc
$(CXX) $(IncludePCH) $(SourceSwitch) "/Users/ac/Desktop/example/Algorithm/algorithm.cc" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/algorithm.cc$(PreprocessSuffix): algorithm.cc
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/algorithm.cc$(PreprocessSuffix) algorithm.cc

$(IntermediateDirectory)/main.cpp$(ObjectSuffix): main.cpp
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/main.cpp$(ObjectSuffix) -MF$(IntermediateDirectory)/main.cpp$(DependSuffix) -MM main.cpp
$(CXX) $(IncludePCH) $(SourceSwitch) "/Users/ac/Desktop/example/Algorithm/main.cpp" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/main.cpp$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/main.cpp$(PreprocessSuffix): main.cpp
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.cpp$(PreprocessSuffix) "main.cpp"

$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix): algorithm.cc $(IntermediateDirectory)/algorithm.cc$(DependSuffix)
$(CXX) $(IncludePCH) $(SourceSwitch) "E:/data/example/Algorithm/algorithm.cc" $(CXXFLAGS) $(ObjectSwitch)$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix) $(IncludePath)
$(IntermediateDirectory)/algorithm.cc$(DependSuffix): algorithm.cc
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) -MG -MP -MT$(IntermediateDirectory)/algorithm.cc$(ObjectSuffix) -MF$(IntermediateDirectory)/algorithm.cc$(DependSuffix) -MM "algorithm.cc"

$(IntermediateDirectory)/algorithm.cc$(PreprocessSuffix): algorithm.cc
@$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/algorithm.cc$(PreprocessSuffix) "algorithm.cc"
$(CXX) $(CXXFLAGS) $(IncludePCH) $(IncludePath) $(PreprocessOnlySwitch) $(OutputSwitch) $(IntermediateDirectory)/main.cpp$(PreprocessSuffix) main.cpp


-include $(IntermediateDirectory)/*$(DependSuffix)
Expand Down
2 changes: 1 addition & 1 deletion Algorithm/Algorithm.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./Debug/main.cpp.o ./Debug/algorithm.cc.o
./Debug/algorithm.cc.o ./Debug/main.cpp.o
Binary file added Algorithm/Debug/Algorithm
Binary file not shown.
4 changes: 2 additions & 2 deletions Algorithm/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/Algorithm
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/Algorithm
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BPlus_Tree/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BPlus_Tree
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BPlus_Tree
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BPlus_Tree_2/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BPlus_Tree_2
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BPlus_Tree_2
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BPlus_Tree_3/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BPlus_Tree_3
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BPlus_Tree_3
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BSTree/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BSTree
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BSTree
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions B_Tree/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/B_Tree
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/B_Tree
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BloomFiliter_2/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BloomFiliter_2
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BloomFiliter_2
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BloomFilter/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/BloomFilter
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BloomFilter
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions BullFight/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
-I/Users/ac/Desktop/example/BullFight
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/BullFight
-std=c++0x
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
4 changes: 2 additions & 2 deletions COW/compile_flags.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-I/Users/ac/Desktop/example/COW
-I/usr/local/include
-I/Library/Developer/CommandLineTools/usr/include/c++/v1
-I/Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
-I/Library/Developer/CommandLineTools/usr/include
-I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
-I/Users/ac/Desktop/example/COW
-target
x86_64-apple-darwin19.6.0
x86_64-apple-darwin20.6.0
Loading

0 comments on commit a996551

Please sign in to comment.