Annotation of researchv9/jerq/src/lib/jj/confirm.c, revision 1.1.1.1

1.1       root        1: #include       <jerq.h>
                      2: 
                      3: static Texture tc[3] ={
                      4:        /* button 1 */
                      5:        0x000E, 0x071F, 0x0317, 0x736F, 0xFBCE, 0xDB8C, 0xDBC0, 0xFB6C,
                      6:        0x77FC, 0x0000, 0x0400, 0x0C00, 0x9929, 0xF0C6, 0x60C6, 0x4129,
                      7:        /* button 2 */
                      8:        0x000E, 0x0E3E, 0x062E, 0xE6DE, 0xF79C, 0xB718, 0xB780, 0xF6D8,
                      9:        0xEFF8, 0x0000, 0x0040, 0x00C0, 0x2992, 0xCF0C, 0xC60C, 0x2412,
                     10:        /* button 3 */
                     11:        0x000E, 0x071F, 0x0317, 0x736F, 0xFBCE, 0xDB8C, 0xDBC0, 0xFB6C,
                     12:        0x77FC, 0x0000, 0x0001, 0x0003, 0x94A6, 0x633C, 0x6318, 0x9490,
                     13: };
                     14: 
                     15: confirm(but)   /* get confirmation from button but */
                     16:        int but;
                     17: {
                     18:        Texture *ot;
                     19:        int ret;
                     20: 
                     21:        while(button123());
                     22:        ot = cursswitch(&tc[but-1]);
                     23:        while(!button123());
                     24:        ret = button(but);
                     25:        while(button123());
                     26:        (void)cursswitch(ot);
                     27:        return(ret);
                     28: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.