~ubuntu-branches/ubuntu/natty/mathomatic/natty

« back to all changes in this revision

Viewing changes to main.c

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-05-27 23:29:55 UTC
  • mfrom: (1.1.26 upstream) (3.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20100527232955-xzvvnwdzy8c9mdji
Tags: 15.1.1-1
* New upstream release
* debian/patches/10_fix_makefile.dpatch
  - updated to new upstream code
* debian/patches/30_bts-459093_ftbfs_make_test_time.dpatch
  - updated to new upstream code

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
void
70
70
usage()
71
71
{
72
 
        printf(_("\nMathomatic version %s computer algebra system\n\n"), VERSION);
 
72
        printf(_("\nMathomatic computer algebra system version %s\n\n"), VERSION);
73
73
        printf(_("Usage: %s [ options ] [ input_files ]\n\n"), prog_name);
74
74
        printf(_("Options:\n"));
75
75
        printf(_("  -b            Enable bold color mode.\n"));
85
85
        printf(_("  -w            Wide output mode, sets unlimited width.\n"));
86
86
        printf(_("  -x            Enable HTML/XHTML output mode.\n"));
87
87
        printf(_("\nPlease refer to the Mathomatic man page for more information.\n"));
88
 
        printf(_("The man page is viewed by typing \"man mathomatic\".\n"));
 
88
        printf(_("The man page is viewed by typing \"man mathomatic\" in shell.\n"));
89
89
}
90
90
 
91
91
int
217
217
#endif
218
218
                printf("Mathomatic version %s (www.mathomatic.org)\n", VERSION);
219
219
                printf("Copyright (C) 1987-2010 George Gesslein II.\n");
220
 
                printf(_("%d equation spaces available, %ld Kbytes per equation space.\n"),
 
220
                printf(_("%d equation spaces available, %ld kilobytes per equation space.\n"),
221
221
                    N_EQUATIONS, (long) n_tokens * sizeof(token_type) * 2L / 1000L);
222
222
        }
223
223
#if     !SECURE
274
274
                for (i = optind; i < argc && argv[i]; i++) {
275
275
                        if (strcmp(argv[i], "-") == 0) {
276
276
                                main_io_loop();
277
 
                        } else if (!read_cmd(argv[i])) {
 
277
                        } else if (!read_file(argv[i])) {
278
278
                                fprintf(stderr, _("Read of file \"%s\" failed.\n"), argv[i]);
279
279
                                exit_program(1);
280
280
                        }
433
433
        case 0:
434
434
        case 1:
435
435
                /* wait for graceful abort */
436
 
                printf(_("\nUser interrupt signal received; Three times quits.\n"));
 
436
                printf(_("\nUser interrupt signal received; three times quits Mathomatic.\n"));
437
437
                return;
438
438
        case 2:
439
439
                printf(_("\nPress Control-C once more to quit program.\n"));
440
440
                return;
441
441
        default:
442
442
                /* abruptly quit this program */
443
 
                printf(_("\nRepeatedly interrupted; Quitting...\n"));
 
443
                printf(_("\nRepeatedly interrupted; returning to operating system...\n"));
444
444
                exit_program(1);
445
445
        }
446
446
}