Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15965 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed May 2, 2013
1 parent 2d14922 commit da09856
Show file tree
Hide file tree
Showing 25 changed files with 33,536 additions and 33,536 deletions.
2 changes: 1 addition & 1 deletion Examples/VanDerPol.mo
@@ -1,6 +1,6 @@
// Van der Pol model

model VanDerPol "Van der Pol oscillator model"
model VanDerPol "Van der Pol oscillator model"
Real x(start = 1);
Real y(start = 1);
parameter Real lambda = 0.3;
Expand Down
6 changes: 3 additions & 3 deletions Examples/bubblesort.mo
Expand Up @@ -11,9 +11,9 @@ algorithm
for j in 1:size(x,1) loop

if y[i] > y[j] then
t := y[i];
y[i] := y[j];
y[j] := t;
t := y[i];
y[i] := y[j];
y[j] := t;
end if;
end for;
end for;
Expand Down
36 changes: 18 additions & 18 deletions tools/OMCMonitor/OMCMonitor.c
Expand Up @@ -267,7 +267,7 @@ BOOL GetSystemOSVersion(LPDWORD dwVersion)
else if (osvi.dwMajorVersion == 6) { /* Windows 7 and Vista! */
*dwVersion = OS_VERSION_WINNT;
}
else {
else {
return FALSE;
}
break;
Expand Down Expand Up @@ -868,7 +868,7 @@ BOOL IsServiceRunning(LPCSTR szServiceName, LPCSTR szComputerName,
SC_HANDLE schSCManager;
SERVICE_STATUS schSStatus;

return TRUE;
return TRUE;

if (g_dwOSVersion == OS_VERSION_WIN9X)
{
Expand Down Expand Up @@ -942,7 +942,7 @@ BOOL FindRunningServices(void)
BOOL GetOMCServicesStatus()
{
am_ClearServicesSt();
populateProcesses();
populateProcesses();
FindRunningServices();
return TRUE;
}
Expand Down Expand Up @@ -1687,11 +1687,11 @@ TCHAR* getProcessName( DWORD processID )

// Print the process name and identifier.

/*
/*
_tprintf( TEXT("%s (PID: %u)\n"), szProcessName, processID );
*/
*/
CloseHandle( hProcess );
return _strdup(szProcessName);
return _strdup(szProcessName);
}

void populateProcesses(void)
Expand All @@ -1711,17 +1711,17 @@ void populateProcesses(void)
// Print the name and process identifier for each process.

for ( i = 0; i < cProcesses; i++ )
{
{
TCHAR* szPName = getProcessName( aProcesses[i] );
if (stricmp(szPName, "omc.exe") == 0)
{
g_stServices[j].dwPid = aProcesses[i];
g_stServices[j].szComputerName = _strdup(g_stComputers[0].szComputerName);
g_stServices[j].szDisplayName = _strdup(szPName);
g_stServices[j].szDescription = _strdup(szPName);
g_stServices[j].szImagePath = _strdup(szPName);
g_stServices[j].szServiceName = _strdup(szPName);
j++;
}
}
if (stricmp(szPName, "omc.exe") == 0)
{
g_stServices[j].dwPid = aProcesses[i];
g_stServices[j].szComputerName = _strdup(g_stComputers[0].szComputerName);
g_stServices[j].szDisplayName = _strdup(szPName);
g_stServices[j].szDescription = _strdup(szPName);
g_stServices[j].szImagePath = _strdup(szPName);
g_stServices[j].szServiceName = _strdup(szPName);
j++;
}
}
}

0 comments on commit da09856

Please sign in to comment.