@@ -626,10 +626,10 @@ void ResetStdio() {
626
626
#endif // __POSIX__
627
627
}
628
628
629
- ExitCode ProcessGlobalArgsInternal (std::vector<std::string>* args,
630
- std::vector<std::string>* exec_args,
631
- std::vector<std::string>* errors,
632
- OptionEnvvarSettings settings) {
629
+ static ExitCode ProcessGlobalArgsInternal (std::vector<std::string>* args,
630
+ std::vector<std::string>* exec_args,
631
+ std::vector<std::string>* errors,
632
+ OptionEnvvarSettings settings) {
633
633
// Parse a few arguments which are specific to Node.
634
634
std::vector<std::string> v8_args;
635
635
@@ -717,7 +717,7 @@ static std::atomic_bool init_called{false};
717
717
718
718
// TODO(addaleax): Turn this into a wrapper around InitializeOncePerProcess()
719
719
// (with the corresponding additional flags set), then eventually remove this.
720
- ExitCode InitializeNodeWithArgsInternal (
720
+ static ExitCode InitializeNodeWithArgsInternal (
721
721
std::vector<std::string>* argv,
722
722
std::vector<std::string>* exec_argv,
723
723
std::vector<std::string>* errors,
@@ -839,10 +839,10 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
839
839
InitializeNodeWithArgsInternal (argv, exec_argv, errors, flags));
840
840
}
841
841
842
- std::unique_ptr<InitializationResultImpl> InitializeOncePerProcessInternal (
843
- const std::vector<std::string>& args,
844
- ProcessInitializationFlags::Flags flags =
845
- ProcessInitializationFlags::kNoFlags ) {
842
+ static std::unique_ptr<InitializationResultImpl>
843
+ InitializeOncePerProcessInternal ( const std::vector<std::string>& args,
844
+ ProcessInitializationFlags::Flags flags =
845
+ ProcessInitializationFlags::kNoFlags ) {
846
846
auto result = std::make_unique<InitializationResultImpl>();
847
847
result->args_ = args;
848
848
@@ -1165,7 +1165,7 @@ ExitCode LoadSnapshotDataAndRun(const SnapshotData** snapshot_data_ptr,
1165
1165
return exit_code;
1166
1166
}
1167
1167
1168
- ExitCode StartInternal (int argc, char ** argv) {
1168
+ static ExitCode StartInternal (int argc, char ** argv) {
1169
1169
CHECK_GT (argc, 0 );
1170
1170
1171
1171
// Hack around with the argv pointer. Used for process.title = "blah".
0 commit comments