mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-23 19:53:47 +00:00
Updated project files, and fixed compiler warnings
This commit is contained in:
@@ -170,7 +170,8 @@ duk_ret_t ILibDuktape_ChildProcess_waitExit(duk_context *ctx)
|
||||
}
|
||||
|
||||
duk_push_this(ctx); // [spawnedProcess]
|
||||
char *_target = Duktape_GetStringPropertyValue(ctx, -1, "_target", NULL);
|
||||
//char *_target = Duktape_GetStringPropertyValue(ctx, -1, "_target", NULL);
|
||||
|
||||
if (!ILibChain_IsLinkAlive(Duktape_GetPointerProperty(ctx, -1, ILibDuktape_ChildProcess_Manager)))
|
||||
{
|
||||
return(ILibDuktape_Error(ctx, "Cannot waitExit() because JS Engine is exiting"));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
Copyright 2006 - 2018 Intel Corporation
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __DUKTAPEHECI__
|
||||
#define __DUKTAPEHECI__
|
||||
|
||||
#include "duktape.h"
|
||||
|
||||
void ILibDuktape_HECI_Init(duk_context *ctx);
|
||||
|
||||
|
||||
#endif
|
||||
File diff suppressed because one or more lines are too long
@@ -72,7 +72,6 @@ limitations under the License.
|
||||
#include "ILibDuktape_SHA256.h"
|
||||
#include "ILibDuktape_EncryptionStream.h"
|
||||
#include "ILibDuktape_ChildProcess.h"
|
||||
#include "ILibDuktape_HECI.h"
|
||||
#include "ILibDuktape_Debugger.h"
|
||||
#include "ILibDuktape_Commit.h"
|
||||
|
||||
@@ -2377,9 +2376,6 @@ duk_context *ILibDuktape_ScriptContainer_InitializeJavaScriptEngineEx3(duk_conte
|
||||
if ((securityFlags & SCRIPT_ENGINE_NO_PROCESS_SPAWNING) == 0)
|
||||
{
|
||||
ILibDuktape_ChildProcess_Init(ctx);
|
||||
#ifndef _NOHECI
|
||||
ILibDuktape_HECI_Init(ctx);
|
||||
#endif
|
||||
}
|
||||
if ((securityFlags & SCRIPT_ENGINE_NO_FILE_SYSTEM_ACCESS) == 0) { ILibDuktape_fs_init(ctx); }
|
||||
|
||||
|
||||
@@ -473,7 +473,6 @@ duk_ret_t ILibDuktape_fs_write_writeset_sink(duk_context *ctx)
|
||||
}
|
||||
duk_ret_t ILibDuktape_fs_write(duk_context *ctx)
|
||||
{
|
||||
int top = duk_get_top(ctx);
|
||||
int fd = (int)duk_require_int(ctx, 0);
|
||||
duk_size_t bufferLen;
|
||||
char *buffer = Duktape_GetBuffer(ctx, 1, &bufferLen);
|
||||
@@ -1419,7 +1418,6 @@ duk_ret_t ILibDuktape_fs_watcher_finalizer(duk_context *ctx)
|
||||
void ILibDuktape_fs_notifyDispatcher_QueryEx(ILibHashtable sender, void *Key1, char* Key2, int Key2Len, void *Data, void *user)
|
||||
{
|
||||
ILibDuktape_fs_watcherData *data = (ILibDuktape_fs_watcherData*)Data;
|
||||
int fd = (int)(uintptr_t)Key1;
|
||||
duk_push_heapptr(data->ctx, user); // [array]
|
||||
duk_push_heapptr(data->ctx, data->object); // [array][watcher]
|
||||
duk_get_prop_string(data->ctx, -1, FS_WATCH_PATH); // [array][watcher][path]
|
||||
|
||||
Reference in New Issue
Block a user