Mercurial > hg > xemacs-beta
comparison lib-src/make-docfile.c @ 647:b39c14581166
[xemacs-hg @ 2001-08-13 04:45:47 by ben]
removal of unsigned, size_t, etc.
author | ben |
---|---|
date | Mon, 13 Aug 2001 04:46:48 +0000 |
parents | abe6d1db359e |
children | 943eaba38521 |
comparison
equal
deleted
inserted
replaced
646:00c54252fe4f | 647:b39c14581166 |
---|---|
510 register int defvarflag; | 510 register int defvarflag; |
511 int minargs, maxargs; | 511 int minargs, maxargs; |
512 int l = strlen (filename); | 512 int l = strlen (filename); |
513 char f[MAXPATHLEN]; | 513 char f[MAXPATHLEN]; |
514 | 514 |
515 if (l > sizeof (f)) | 515 if (l > (int) sizeof (f)) |
516 { | 516 { |
517 #ifdef ENAMETOOLONG | 517 #ifdef ENAMETOOLONG |
518 errno = ENAMETOOLONG; | 518 errno = ENAMETOOLONG; |
519 #else | 519 #else |
520 errno = EINVAL; | 520 errno = EINVAL; |
521 #endif | 521 #endif |
522 return (0); | 522 return (0); |
523 } | 523 } |
524 | 524 |
525 strcpy (f, filename); | 525 strcpy (f, filename); |
526 if (f[l - 1] == 'o') | 526 if (f[l - 1] == 'o') |
527 f[l - 1] = 'c'; | 527 f[l - 1] = 'c'; |
528 infile = fopen (f, mode); | 528 infile = fopen (f, mode); |