Fossil

Check-in [2f187c2f22]
Login

Check-in [2f187c2f22]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the "all" command on mac, broken by the penultimate check-in.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2f187c2f222dd9f92583c87b81282a18482832c5
User & Date: drh 2012-11-29 18:39:06.124
Context
2012-11-29
18:46
Modify the test-echo command to also show the name of the executable. ... (check-in: 5ed566f805 user: drh tags: trunk)
18:39
Fix the "all" command on mac, broken by the penultimate check-in. ... (check-in: 2f187c2f22 user: drh tags: trunk)
18:31
Fix harmless compiler warnings on windows. ... (check-in: 9eb2df37ef user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/main.c.
493
494
495
496
497
498
499

500
501
502
503
504
505
506
#if defined(_WIN32) && !defined(__MINGW32__)
  parse_windows_command_line(&g.argc, &g.argv);
  GetModuleFileNameW(NULL, buf, MAX_PATH);
  g.nameOfExe = fossil_filename_to_utf8(buf);
  for(i=0; i<g.argc; i++) g.argv[i] = fossil_filename_to_utf8(g.argv[i]);
#elif defined(__APPLE__)
  for(i=0; i<g.argc; i++) g.argv[i] = fossil_filename_to_utf8(g.argv[i]);

#else
  g.nameOfExe = g.argv[0];
#endif
  for(i=1; i<g.argc-1; i++){
    z = g.argv[i];
    if( z[0]!='-' ) continue;
    z++;







>







493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
#if defined(_WIN32) && !defined(__MINGW32__)
  parse_windows_command_line(&g.argc, &g.argv);
  GetModuleFileNameW(NULL, buf, MAX_PATH);
  g.nameOfExe = fossil_filename_to_utf8(buf);
  for(i=0; i<g.argc; i++) g.argv[i] = fossil_filename_to_utf8(g.argv[i]);
#elif defined(__APPLE__)
  for(i=0; i<g.argc; i++) g.argv[i] = fossil_filename_to_utf8(g.argv[i]);
  g.nameOfExe = g.argv[0];
#else
  g.nameOfExe = g.argv[0];
#endif
  for(i=1; i<g.argc-1; i++){
    z = g.argv[i];
    if( z[0]!='-' ) continue;
    z++;