webengine/osswebengine/WebKitTools/Scripts/num-cpus
author William Roberts <williamr@symbian.org>
Fri, 23 Jul 2010 12:08:17 +0100
branchGCC_SURGE
changeset 89 184e728497f3
parent 0 dd21522fd290
permissions -rw-r--r--
GCC won't allow "IMPORT" on the definition of a function, in this case an inline function - added to bug 2962 The error message is "function 'void KJS::DebuggerImp::abort()' definition is marked dllimport"

#!/usr/bin/perl

use strict;
use warnings;

use Win32API::Registry 0.21 qw( :ALL );


my $key;
my $i = 0;
while (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\$i", 0, KEY_READ, $key)) {
    $i++;
    RegCloseKey($key);
}

print "$i\n";