various syntax errors and such (not fixed: comp/require.t#22 coredump
Gurusamy Sarathy [Tue, 1 Aug 2000 04:24:24 +0000 (04:24 +0000)]
on Windows)

p4raw-id: //depot/perl@6476

t/pragma/utf8.t
utf8.c
win32/win32.c

index 03f7a35..d1546fe 100755 (executable)
@@ -10,7 +10,7 @@ BEGIN {
     }
 }
 
-print "1..67\n";
+print "1..66\n";
 
 my $test = 1;
 
diff --git a/utf8.c b/utf8.c
index 6a99d9d..e86c49f 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -333,7 +333,7 @@ Perl_utf16_to_utf8(pTHX_ U8* p, U8* d, I32 bytelen, I32 *newlen)
     U8* dstart = d;
 
     if (bytelen & 1)
-       Perl_croak("panic: utf16_to_utf8: odd bytelen");
+       Perl_croak(aTHX_ "panic: utf16_to_utf8: odd bytelen");
 
     pend = p + bytelen;
 
index 3c3d1e5..6856884 100644 (file)
@@ -1666,20 +1666,19 @@ win32_waitpid(int pid, int *status, int flags)
        long child = find_pid(pid);
        if (child >= 0) {
            HANDLE hProcess = w32_child_handles[child];
-                DWORD timeout=(flags&WNOHANG)?0:INFINITE;
-                DWORD waitcode = WaitForSingleObject(hProcess, timeout);
-                if (waitcode == WAIT_TIMEOUT) {
-                {
-                       return 0;
-                }
-                else if (waitcode != WAIT_FAILED) {
-                    if (GetExitCodeProcess(hProcess, &waitcode)) {
-                        *status = (int)((waitcode & 0xff) << 8);
-                        retval = (int)w32_child_pids[child];
-                        remove_dead_process(child);
-                        return retval;
-                    }
+           DWORD timeout = (flags & WNOHANG) ? 0 : INFINITE;
+           DWORD waitcode = WaitForSingleObject(hProcess, timeout);
+           if (waitcode == WAIT_TIMEOUT) {
+               return 0;
+           }
+           else if (waitcode != WAIT_FAILED) {
+                if (GetExitCodeProcess(hProcess, &waitcode)) {
+                    *status = (int)((waitcode & 0xff) << 8);
+                    retval = (int)w32_child_pids[child];
+                    remove_dead_process(child);
+                    return retval;
                 }
+           }
            else
                errno = ECHILD;
        }