Annotation of 43BSD/contrib/rn/header.c.2.pat, revision 1.1

1.1     ! root        1: *** header.old.c       Tue Apr 30 14:33:53 1985
        !             2: --- header.c           Tue Apr 30 14:33:56 1985
        !             3: ***************
        !             4: *** 119,124
        !             5:   #define APPROVED     21
        !             6:   #define NFID         22
        !             7:   #define NFFROM               23
        !             8:   #define OTHER                99
        !             9:   
        !            10:   char *malloc();
        !            11: 
        !            12: --- 119,127 -----
        !            13:   #define APPROVED     21
        !            14:   #define NFID         22
        !            15:   #define NFFROM               23
        !            16: + #ifdef DOXREFS
        !            17: + #define XREF         98
        !            18: + #endif DOXREFS
        !            19:   #define OTHER                99
        !            20:   
        !            21:   char *malloc();
        !            22: ***************
        !            23: *** 214,219
        !            24:                                getfield(hp->relayversion);
        !            25:                        }
        !            26:                        break;
        !            27:                case OTHER:
        !            28:                        if (unreccnt < NUNREC) {
        !            29:                                if ((hp->unrec[unreccnt] = malloc((unsigned)(strlen(bfr) + 1))) != NULL ) {
        !            30: 
        !            31: --- 217,227 -----
        !            32:                                getfield(hp->relayversion);
        !            33:                        }
        !            34:                        break;
        !            35: + #ifdef DOXREFS
        !            36: +              case XREF:
        !            37: +                      getfield(hp->xref);
        !            38: +                      break;
        !            39: + #endif DOXREFS
        !            40:                case OTHER:
        !            41:                        if (unreccnt < NUNREC) {
        !            42:                                if ((hp->unrec[unreccnt] = malloc((unsigned)(strlen(bfr) + 1))) != NULL ) {
        !            43: ***************
        !            44: *** 422,427
        !            45:                return NFID;
        !            46:        if (its("Nf-From: "))
        !            47:                return NFFROM;
        !            48:        return OTHER;
        !            49:   }
        !            50:   
        !            51: 
        !            52: --- 430,439 -----
        !            53:                return NFID;
        !            54:        if (its("Nf-From: "))
        !            55:                return NFFROM;
        !            56: + #ifdef DOXREFS
        !            57: +      if (its("Xref: "))
        !            58: +              return XREF;
        !            59: + #endif DOXREFS
        !            60:        return OTHER;
        !            61:   }
        !            62:   
        !            63: ***************
        !            64: *** 536,541
        !            65:                fprintf(fp, "Nf-ID: %s\n", hp->nf_id);
        !            66:        if (*hp->nf_from)
        !            67:                fprintf(fp, "Nf-From: %s\n", hp->nf_from);
        !            68:        for (iu = 0; iu < NUNREC; iu++) {
        !            69:                if (hp->unrec[iu])
        !            70:                        fprintf(fp, "%s", &hp->unrec[iu][0]);
        !            71: 
        !            72: --- 548,557 -----
        !            73:                fprintf(fp, "Nf-ID: %s\n", hp->nf_id);
        !            74:        if (*hp->nf_from)
        !            75:                fprintf(fp, "Nf-From: %s\n", hp->nf_from);
        !            76: + #ifdef DOXREFS
        !            77: +      if (wr == 1 && *hp->xref)
        !            78: +              fprintf(fp, "Xref: %s\n", hp->xref);
        !            79: + #endif DOXREFS
        !            80:        for (iu = 0; iu < NUNREC; iu++) {
        !            81:                if (hp->unrec[iu])
        !            82:                        fprintf(fp, "%s", &hp->unrec[iu][0]);

unix.superglobalmegacorp.com

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