Annotation of 43BSDTahoe/cci/libM/expd.awk, revision 1.1.1.1

1.1       root        1: cat $* | sed -e "s/\(.*\)\(........\)/0x\1, 0x\2/" | awk '
                      2:        BEGIN {
                      3:                printf "struct doubleword {\n"
                      4:                printf "\tunsigned lw0,\n"
                      5:                printf "\t         lw1;\n"
                      6:                printf "};\n\n"
                      7:        }
                      8:        {
                      9:        if (NR == 1) {
                     10:                printf "struct doubleword _ep0[12] = {\n"
                     11:                printf "\t0x40800000, 0x00000000,\n"
                     12:                printf "\t%s,\n", $0
                     13:        } else if (NR == 11) {
                     14:                printf "\t%s\n", $0
                     15:                printf "};\n\n"
                     16:                printf "struct doubleword _ep1[128] = {\n"
                     17:                printf "\t0x40800000, 0x00000000,\n"
                     18:        } else if (NR == 138) {
                     19:                printf "\t%s\n", $0
                     20:                printf "};\n\n"
                     21:                printf "struct doubleword _ep2[256] = {\n"
                     22:                printf "\t0x40800000, 0x00000000,\n"
                     23:        } else if (NR == 393) {
                     24:                printf "\t%s\n", $0
                     25:                printf "};\n\n"
                     26:                printf "struct doubleword _ep3[256] = {\n"
                     27:                printf "\t0x40800000, 0x00000000,\n"
                     28:        } else if (NR == 648) {
                     29:                printf "\t%s\n", $0
                     30:                printf "};\n\n"
                     31:                printf "struct doubleword _ep4[256] = {\n"
                     32:                printf "\t0x40800000, 0x00000000,\n"
                     33:        } else if (NR == 903) {
                     34:                printf "\t%s\n", $0
                     35:                printf "};\n\n"
                     36:                printf "struct doubleword _en0[12] = {\n"
                     37:                printf "\t0x40800000, 0x00000000,\n"
                     38:        } else if (NR == 914) {
                     39:                printf "\t%s\n", $0
                     40:                printf "};\n\n"
                     41:                printf "struct doubleword _en1[128] = {\n"
                     42:                printf "\t0x40800000, 0x00000000,\n"
                     43:        } else if (NR == 1041) {
                     44:                printf "\t%s\n", $0
                     45:                printf "};\n\n"
                     46:                printf "struct doubleword _en2[256] = {\n"
                     47:                printf "\t0x40800000, 0x00000000,\n"
                     48:        } else if (NR == 1296) {
                     49:                printf "\t%s\n", $0
                     50:                printf "};\n\n"
                     51:                printf "struct doubleword _en3[256] = {\n"
                     52:                printf "\t0x40800000, 0x00000000,\n"
                     53:        } else if (NR == 1551) {
                     54:                printf "\t%s\n", $0
                     55:                printf "};\n\n"
                     56:                printf "struct doubleword _en4[256] = {\n"
                     57:                printf "\t0x40800000, 0x00000000,\n"
                     58:        } else if (NR == 1806) {
                     59:                printf "\t%s\n", $0
                     60:                printf "};\n"
                     61:        } else
                     62:                printf "\t%s,\n", $0
                     63: }'

unix.superglobalmegacorp.com

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