Skip to content

Commit 4e5927c

Browse files
committed
Added static and inline to outputting.hpp
1 parent 450f00e commit 4e5927c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/outputting.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <unistd.h>
1515
#endif
1616

17-
int get_terminal_width(void){
17+
inline static int get_terminal_width(void){
1818
#ifdef _WIN32
1919
CONSOLE_SCREEN_BUFFER_INFO csbi;
2020
int columns;
@@ -41,7 +41,7 @@ int get_terminal_width(void){
4141
// End credit
4242

4343

44-
void output(std::string scramble, float avg)
44+
inline void output(std::string scramble, float avg)
4545
{
4646
// avg must be > 0 otherwise I will not output it.
4747

@@ -96,7 +96,7 @@ void output(std::string scramble, float avg)
9696
}
9797

9898
// Prompting
99-
float getTime()
99+
inline float getTime()
100100
{
101101
std::string inputtedTime;
102102
std::string correct;
@@ -128,7 +128,7 @@ float getTime()
128128
}
129129
}
130130

131-
std::string getPenalty()
131+
inline std::string getPenalty()
132132
{
133133
std::string penalty;
134134

@@ -150,7 +150,7 @@ std::string getPenalty()
150150
}
151151
}
152152

153-
void outputHelp()
153+
inline void outputHelp()
154154
{
155155
std::cout << "How to use CLI_Timer.\nCLI_Timer (cube type) [-b] | [-f(mc))] [--count{number}] [--no_enter] | [c] | [-s{session name}] | [--no_prompt] | [--no_avg] \
156156
\n\nArgument (cube type) means an NxN of (2)x2 (3)x3 to (7)x7 or (S)kewb, (P)yraminx, (M)egaminx, (C)lock or s(Q)uare-1.\
@@ -172,9 +172,10 @@ void outputHelp()
172172
\n\nLICENCES: Main: MIT licences.\nSquare-1 code: GNU General Public License v3.0 (repo: <https://github.com/thewca/tnoodle-lib>)";
173173
}
174174

175-
void outputVersion()
175+
inline void outputVersion()
176176
{
177177
std::cout << "CLI_Timer version: 1.14\n\n";
178178
std::cout << "Scramble outputs ⅓ of the screen + avg to right" << std::endl;
179179
std::cout << "Moved the outputting code to another file." << std::endl;
180+
std::cout << "Added static and inline to outputting.hpp" << std::endl;
180181
}

0 commit comments

Comments
 (0)