From: RHEA::DECWRL::"elsie!ado@seismo.ARPA" 11-APR-1985 11:43 To: seismo!minow%rex.DEC@decwrl Subj: cpp buglets Received: from DECWRL by DEC-RHEA with SMTP; Thu, 11 Apr 85 08:41-PST Received: from seismo.ARPA (seismo.arpa.ARPA) by decwrl.ARPA (4.22.01/4.7.34) id AA02364; Thu, 11 Apr 85 08:42:59 pst Received: from elsie.UUCP by seismo.ARPA with UUCP; Thu, 11 Apr 85 11:42:29 EST Date: Thu, 11 Apr 85 11:42:29 EST Return-Path: Message-Id: <8504111642.AA08962@seismo.ARPA> 1. In cpp3.c, change the line reading: fprintf(stderr, "Trigraph recognition %abled\n", so that it reads: fprintf(stderr, "Trigraph recognition %sabled\n", 2. In cpp6.c, in the function "catenate", change these lines: > { > register int c; > register char *token1; > extern int save(); > > #if OK_CONCAT > if (get() != TOK_SEP) { /* Token concatenation */ > unget(); > return (FALSE); > } > else { so that they read: > { > #if OK_CONCAT > register int c; > register char *token1; > extern int save(); >>>>> extern char *appendstring(); > > if (get() != TOK_SEP) { /* Token concatenation */ > unget(); > return (FALSE); > } > else { 3. In cpp6.c, conditionalize the code for "appendstring", and declare it to be of type "FILE_LOCAL char *": > #if OK_CONCAT > FILE_LOCAL char * > appendstring(token1, text) > char *token1; /* In malloc storage */ > char *text; /* Append it to token1 */ > { > extern char *realloc(); > > if ((token1 = realloc(token1, > (unsigned) (strlen(token1) + strlen(text) + 1))) == NULL) > cfatal("Out of memory concatenating tokens", NULLST); > strcat(token1, text); > return (token1); > } > #endif /* OK_CONCAT */ --ado