Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
clean-compiler-and-rts
compiler
Commits
eced19e1
Commit
eced19e1
authored
Jun 20, 2019
by
johnvg@science.ru.nl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused c functions FRead, FWrite, FSeek and FTell from backend
parent
e653e347
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
74 deletions
+0
-74
backendC/CleanCompilerSources/mac_io.c
backendC/CleanCompilerSources/mac_io.c
+0
-20
backendC/CleanCompilerSources/macuser.h
backendC/CleanCompilerSources/macuser.h
+0
-4
backendC/CleanCompilerSources/system.h
backendC/CleanCompilerSources/system.h
+0
-4
backendC/CleanCompilerSources/unix_io.c
backendC/CleanCompilerSources/unix_io.c
+0
-26
backendC/CleanCompilerSources/windows_io.c
backendC/CleanCompilerSources/windows_io.c
+0
-20
No files found.
backendC/CleanCompilerSources/mac_io.c
View file @
eced19e1
...
...
@@ -843,30 +843,10 @@ int FPrintF (File f, char *fmt, ...)
return
fputs
(
outbuffer
,
(
FILE
*
)
f
);
}
/* FPrintF */
size_t
FWrite
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fwrite
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
/* FWrite */
size_t
FRead
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fread
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
/* FRead */
int
FPutS
(
char
*
s
,
File
f
)
{
return
fputs
(
s
,
(
FILE
*
)
f
);
}
/* FPutS */
int
FSeek
(
File
f
,
long
offset
,
int
origin
)
{
return
fseek
((
FILE
*
)
f
,
offset
,
origin
);
}
/* FSeek */
long
FTell
(
File
f
)
{
return
ftell
((
FILE
*
)
f
);
}
/* FTell */
void
DoError
(
char
*
fmt
,
...)
{
va_list
args
;
...
...
backendC/CleanCompilerSources/macuser.h
View file @
eced19e1
...
...
@@ -58,9 +58,5 @@ typedef FILE *File;
# define FPrintF fprintf
# define FPutC fputc
# define FPutS fputs
# define FWrite fwrite
# define FSeek fseek
# define FTell ftell
# define FGetC fgetc
# define FGetS fgets
# define FRead fread
backendC/CleanCompilerSources/system.h
View file @
eced19e1
...
...
@@ -50,7 +50,6 @@ extern int FDelete (char *fname, FileKind kind);
extern
int
FClose
(
File
f
);
extern
int
FPutS
(
char
*
s
,
File
f
);
extern
size_t
FWrite
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
);
#ifdef _VARARGS_
extern
int
FPrintF
(
File
f
,
char
*
fmt
,...);
#else
...
...
@@ -60,9 +59,6 @@ extern int FPrintF (); /* (File w, char *fmt,...) */
#ifndef __ppc__
extern
char
*
FGetS
(
char
*
s
,
int
n
,
File
f
);
#endif
extern
size_t
FRead
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
);
extern
int
FSeek
(
File
f
,
long
offset
,
int
origin
);
extern
long
FTell
(
File
f
);
#ifdef _VARARGS_
extern
void
DoError
(
char
*
fmt
,...);
...
...
backendC/CleanCompilerSources/unix_io.c
View file @
eced19e1
...
...
@@ -384,16 +384,6 @@ int FPrintF (File f, char *fmt, ...)
return
n
;
}
size_t
FWrite
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fwrite
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
size_t
FRead
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fread
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
#ifndef FGetS
char
*
FGetS
(
char
*
s
,
int
n
,
File
f
)
{
...
...
@@ -406,22 +396,6 @@ int FPutS (char *s, File f)
return
fputs
(
s
,
(
FILE
*
)
f
);
}
/* FPutS */
/*******************************************************************************
* Special for files *
******************************************************************************/
int
FSeek
(
File
f
,
long
offset
,
int
origin
)
{
return
fseek
((
FILE
*
)
f
,
offset
,
origin
);
}
/* FSeek */
long
FTell
(
File
f
)
{
return
ftell
((
FILE
*
)
f
);
}
/* FTell */
/* Error Handling */
void
DoError
(
char
*
fmt
,
...)
...
...
backendC/CleanCompilerSources/windows_io.c
View file @
eced19e1
...
...
@@ -293,16 +293,6 @@ int FPrintF (File f, char *fmt, ...)
return
n
;
}
size_t
FWrite
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fwrite
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
size_t
FRead
(
void
*
ptr
,
size_t
size
,
size_t
count
,
File
f
)
{
return
fread
(
ptr
,
size
,
count
,
(
FILE
*
)
f
);
}
char
*
FGetS
(
char
*
s
,
int
n
,
File
f
)
{
return
fgets
(
s
,
n
,
(
FILE
*
)
f
);
...
...
@@ -313,16 +303,6 @@ int FPutS (char *s, File f)
return
fputs
(
s
,
(
FILE
*
)
f
);
}
int
FSeek
(
File
f
,
long
offset
,
int
origin
)
{
return
fseek
((
FILE
*
)
f
,
offset
,
origin
);
}
long
FTell
(
File
f
)
{
return
ftell
((
FILE
*
)
f
);
}
void
DoError
(
char
*
fmt
,
...)
{
va_list
args
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment