Ignore:
Timestamp:
Feb 20, 2007, 12:24:22 PM (17 years ago)
Author:
Bruno Cornec
Message:

Remove some useless \r in code
Remove center_string usage as it's now broiken for dynamically created strings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/newt-specific.c

    r1184 r1193  
    129129            sync();
    130130            printf
    131                 ("---promptdialogYN---1--- %s\r\n---promptdialogYN---Q--- [yes] [no] ---\r\n--> ",
     131                ("---promptdialogYN---1--- %s\n---promptdialogYN---Q--- [yes] [no] ---\n--> ",
    132132                 prompt);
    133133            mr_getline(&tmp, &n, stdin);
     
    173173        sync();
    174174        printf
    175             ("---promptdialogOKC---1--- %s\r\n---promptdialogOKC---Q--- [OK] [Cancel] ---\r\n--> ",
     175            ("---promptdialogOKC---1--- %s\n---promptdialogOKC---Q--- [OK] [Cancel] ---\n--> ",
    176176             prompt);
    177177        mr_getline(&tmp, &n, stdin);
     
    558558    } else {
    559559        mr_asprintf(&tmp, title);
     560        /* BERLIOS: Doesn't work on allocated chains anymore
    560561        center_string(tmp, 80);
     562        */
    561563        newtPushHelpLine(tmp);
    562564        mr_free(tmp);
    563565    }
     566    /* BERLIOS: Doesn't work on allocated chains anymore
    564567    center_string(g_isoform_header_str, 36);
     568    */
    565569    g_isoform_starttime = get_time();
    566570    if (g_text_mode) {
     
    614618    mr_asprintf(&blurb3, b3);
    615619    mr_asprintf(&b1c, b1);
     620    /* BERLIOS: Doesn't work for allocated chains anymore
    616621    center_string(b1c, 80);
     622    */
    617623    if (max_val <= 0) {
    618624        max_val = 1;
     
    665671    if (g_text_mode) {
    666672        printf
    667             ("---promptpopup---1--- %s\r\n---promptpopup---Q--- [OK] ---\r\n--> ",
     673            ("---promptpopup---1--- %s\n---promptpopup---Q--- [OK] ---\n--> ",
    668674             prompt);
    669675        while (((ch = getchar()) != '\n') && (ch != EOF));
     
    707713    if (g_text_mode) {
    708714        printf
    709             ("---promptstring---1--- %s\r\n---promptstring---2--- %s\r\n---promptstring---Q---\r\n-->  ",
     715            ("---promptstring---1--- %s\n---promptstring---2--- %s\n---promptstring---Q---\n-->  ",
    710716             title, b);
    711717        (void) fgets(output, maxsize, stdin);
     
    732738    myForm = newtForm(NULL, NULL, 0);
    733739    newtFormAddComponents(myForm, text, type_here, b_1, b_2, NULL);
     740    /* BERLIOS: Doesn't work on allocated chains anymore
    734741    center_string(blurb, 80);
     742    */
    735743    newtPushHelpLine(blurb);
    736744    mr_free(blurb);
     
    814822    myForm = newtForm(NULL, NULL, 0);
    815823    newtFormAddComponents(myForm, text, b_1, b_2, NULL);
     824    /* BERLIOS: Doesn't work on allocated chains anymore
    816825    center_string(prompt, 80);
     826    */
    817827    newtPushHelpLine(prompt);
    818828    mr_free(prompt);
     
    968978                mr_strcat(taskprogress, tmp1);
    969979                mr_free(tmp1);
    970                 printf("---evalcall---1--- %s\r\n",
    971                        g_isoform_header_str);
    972                 printf("---evalcall---2--- %s\r\n", taskprogress);
    973                 printf("---evalcall---E---\r\n");
     980                printf("---evalcall------ %s\n", taskprogress);
    974981                mr_free(taskprogress);
    975982            }
     
    10951102        mr_free(taskprogress);
    10961103    } else {
     1104        /* BERLIOS: Doesn't work on allocated chains anymore
    10971105        center_string(blurb1, 54);
     1106        */
     1107        /* BERLIOS: Doesn't work on allocated chains anymore
    10981108        center_string(blurb2, 54);
     1109        */
     1110        /* BERLIOS: Doesn't work on allocated chains anymore
    10991111        center_string(blurb3, 54);
     1112        */
    11001113        newtLabelSetText(g_blurb1, blurb1);
    11011114        newtLabelSetText(g_blurb2, blurb3);
Note: See TracChangeset for help on using the changeset viewer.