Changeset 1391 for branches/GNU/src/gcc/libf2c/libU77/fputc_.c
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libf2c/libU77/fputc_.c (modified) (1 diff, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libf2c/libU77/fputc_.c
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 27 27 #include "fio.h" 28 28 29 #ifdef KR_headers 30 integer G77_fputc_0 (lunit, c, Lc) 31 integer *lunit; 32 ftnlen Lc; /* should be 1 */ 33 char *c; 34 #else 35 integer G77_fputc_0 (const integer *lunit, const char *c, const ftnlen Lc) 36 #endif 29 integer 30 G77_fputc_0 (const integer * lunit, const char *c, 31 const ftnlen Lc __attribute__ ((__unused__))) 37 32 { 38 33 int err; 39 34 FILE *f = f__units[*lunit].ufd; 40 35 41 if (*lunit >=MXUNIT || *lunit<0)36 if (*lunit0) 42 37 return 101; /* bad unit error */ 43 38 err = putc (c[0], f); 44 if (err == EOF) { 45 if (feof (f)) 46 return -1; 47 else 48 return ferror (f); 49 } 39 if (err == EOF) 40 { 41 if (feof (f)) 42 return -1; 43 else 44 return ferror (f); 45 } 50 46 else 51 47 return 0; 52 48 } 53 49 54 #ifdef KR_headers 55 integer G77_fput_0 (c, Lc) 56 ftnlen Lc; /* should be 1 */ 57 char *c; 58 #else 59 integer G77_fput_0 (const char *c, const ftnlen Lc) 60 #endif 50 integer 51 G77_fput_0 (const char *c, const ftnlen Lc) 61 52 { 62 53 integer six = 6; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
