src/share/back/SDE.c
Print this page
rev 9508 : 8037825: Fix warnings and enable "warnings as errors" in serviceability native libraries
Reviewed-by:
@@ -46,12 +46,10 @@
#define INIT_SIZE_STRATUM 3
#define BASE_STRATUM_NAME "Java"
#define null NULL
-#define true JNI_TRUE
-#define false JNI_FALSE
#define String char *
#define private static
typedef struct {
int fileId;
@@ -145,11 +143,11 @@
stratumIndex = 0;
currentFileId = 0;
defaultStratumId = null;
defaultStratumIndex = -1;
baseStratumIndex = -2; /* so as not to match -1 above */
- sourceMapIsValid = false;
+ sourceMapIsValid = JNI_FALSE;
if (getSourceDebugExtension(clazz, &sourceDebugExtension) ==
JVMTI_ERROR_NONE) {
sdePos = sourceDebugExtension;
if (setjmp(jmp_buf_env) == 0) {
@@ -665,11 +663,11 @@
}
ignoreLine(); /* flush the rest */
jplsFilename = readLine();
defaultStratumId = readLine();
createJavaStratum();
- while (true) {
+ while (1) {
if (sdeRead() != '*') {
syntax("expected '*'");
}
switch (sdeRead()) {
case 'S':
@@ -682,11 +680,11 @@
lineSection();
break;
case 'E':
/* set end points */
storeStratum("*terminator*");
- sourceMapIsValid = true;
+ sourceMapIsValid = JNI_TRUE;
return;
default:
ignoreSection();
}
}