[11385] in Athena Bugs
synctree source problems (OSF support)
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Nov 16 12:20:48 1993
From: epeisach@MIT.EDU
Date: Tue, 16 Nov 1993 12:22:36 -0500
To: bugs@MIT.EDU
The following chanegs are required for OSF.
Note that some of the complaints are that the 'extern foo' assumes
int, not char *.
*** 1.1 1993/08/06 16:34:27
--- readrules.l 1993/08/06 16:36:25
***************
*** 3,9 ****
W [ \t]+
S .*
%{
! #define countlines() {char *s=yytext;while(*s!='\0')if(*(s++)=='\n')lineno++;}
#define getstring() yylval.s=(char *)malloc(yyleng+1);strcpy(yylval.s,yytext)
#define getshcmd() { int i=0; \
while ( yytext[i] == ' ' || yytext[i] == '\t') i++; \
--- 3,14 ----
W [ \t]+
S .*
%{
! #ifdef __osf__
! #define Unsigned unsigned
! #else
! #define Unsigned
! #endif
! #define countlines() {Unsigned char *s=yytext;while(*s!='\0')if(*(s++)=='\n')lineno++;}
#define getstring() yylval.s=(char *)malloc(yyleng+1);strcpy(yylval.s,yytext)
#define getshcmd() { int i=0; \
while ( yytext[i] == ' ' || yytext[i] == '\t') i++; \
*** 1.1 1993/08/06 16:51:17
--- rules.c 1993/08/06 17:01:59
***************
*** 19,26 ****
extern bool nosrcrules;
extern bool nodstrules;
! extern src_rule_file;
! extern dst_rule_file;
extern int verbosef;
--- 19,26 ----
extern bool nosrcrules;
extern bool nodstrules;
! extern char *src_rule_file;
! extern char *dst_rule_file;
extern int verbosef;
***************
*** 302,313 ****
static firstread = 0;
extern int aflag;
extern char *afile;
-
newrule();
lstrule.type = R_FRAMEMARKER;
vtable_push();
-
srcrules = (char *) alloca(strlen(src) + strlen(src_rule_file) + 2);
(void) strcpy(srcrules,src);
(void) strcat(srcrules,"/");
--- 302,311 ----