Skip to content

Commit

Permalink
eclipse.c: improved program argument comment vs count consistency.
Browse files Browse the repository at this point in the history
- Fixed comment to match implementation.
- Align comment/count lines to make it easier to keep them consistent.
- Fixed source code indentation
  • Loading branch information
dhendriks authored and HannesWell committed Jul 22, 2024
1 parent dca5149 commit 8268539
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ static int _run(int argc, _TCHAR* argv[], _TCHAR* vmArgs[])
}
}
} else {
if (debug) {
if (debug) {
if (!suppressErrors)
displayMessage( title, shareMsg );
else
Expand Down Expand Up @@ -1103,12 +1103,15 @@ static void getVMCommand( int launchMode, int argc, _TCHAR* argv[], _TCHAR **vmA
(*vmArgv)[dst] = NULL;

/* Program arguments */
/* OS <os> + WS <ws> + ARCH <arch> + LAUNCHER <launcher> + NAME <officialName> +
* + LIBRARY <library> + SHOWSPLASH <cmd> + EXITDATA <cmd> + STARTUP <jar> + OVERRIDE/APPEND + argv[] + VM + <vm> +
* VMARGS + vmArg + requiredVMargs
/* OS <os> + WS <ws> + ARCH <arch> + SHOWSPLASH <cmd> + LAUNCHER <program> + NAME <officialName>
* + LIBRARY <eclipseLibrary> + STARTUP <jarFile> + PROTECT <protectMode> + APPEND/OVERRIDE
* + EXITDATA <sharedId> + argv[] + VM <jniLib/javaVM> + VMARGS + vmArg[] + eeVMarg[] + reqVMarg[]
* + NULL)
*/
totalProgArgs = 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 1 + argc + 2 + 1 + nVMarg + nEEargs + nReqVMarg + 1;
totalProgArgs = 2 + 2 + 2 + 2 + 2 + 2
+ 2 + 2 + 2 + 1
+ 2 + argc + 2 + 1 + nVMarg + nEEargs + nReqVMarg
+ 1;
*progArgv = malloc( totalProgArgs * sizeof( _TCHAR* ) );
dst = 0;

Expand Down

0 comments on commit 8268539

Please sign in to comment.