Skip to content
Snippets Groups Projects
Commit dde8a1fa authored by rswindell's avatar rswindell
Browse files

Apparently jsexec hasn't been building for Win32 since October: no, msvc10

doesn't have stdbool.h.
Somehow the nightly build didn't detect this failure.
parent a9b8f0f7
Branches
Tags
No related merge requests found
......@@ -9,7 +9,6 @@
#include <link_list.h>
#include <dirwrap.h>
#include <jsdbgapi.h>
#include <stdbool.h>
#include <xpprintf.h>
struct breakpoint {
......@@ -141,15 +140,15 @@ void setup_debugger(void)
listInit(&debuggers,LINK_LIST_MUTEX);
}
bool init_debugger(JSRuntime *rt, JSContext *cx,void (*puts)(const char *), char *(*getline)(void))
BOOL init_debugger(JSRuntime *rt, JSContext *cx,void (*puts)(const char *), char *(*getline)(void))
{
struct debugger *dbg;
if(get_debugger(cx))
return false;
return FALSE;
dbg=malloc(sizeof(struct debugger));
if(!dbg)
return false;
return FALSE;
dbg->cx=cx;
dbg->puts=puts;
dbg->getline=getline;
......@@ -158,7 +157,7 @@ bool init_debugger(JSRuntime *rt, JSContext *cx,void (*puts)(const char *), char
JS_SetThrowHook(rt, throw_handler, NULL);
JS_SetNewScriptHook(rt, newscript_handler, NULL);
JS_SetDestroyScriptHook(rt, killscript_handler, NULL);
return true;
return TRUE;
}
void end_debugger(JSRuntime *rt, JSContext *cx)
......
......@@ -2,7 +2,6 @@
#define JSDEBUG_H
#include <jsapi.h>
#include <stdbool.h>
enum debug_action {
DEBUG_CONTINUE,
......@@ -10,7 +9,7 @@ enum debug_action {
};
void setup_debugger(void);
bool init_debugger(JSRuntime *rt, JSContext *cx,void (*puts)(const char *), char *(*getline)(void));
BOOL init_debugger(JSRuntime *rt, JSContext *cx,void (*puts)(const char *), char *(*getline)(void));
enum debug_action debug_prompt(JSContext *cx, JSObject *script);
void end_debugger(JSRuntime *rt, JSContext *cx);
......
......@@ -150,6 +150,7 @@
</ProjectReference>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="jsdebug.c" />
<ClCompile Include="js_conio.c">
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">%(PreprocessorDefinitions)</PreprocessorDefinitions>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment