Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f775f3e1
Commit
f775f3e1
authored
Oct 28, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmc: Don't put timestamps in generated files.
parent
9fbf473a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
17 deletions
+5
-17
wmc.c
tools/wmc/wmc.c
+0
-2
wmc.h
tools/wmc/wmc.h
+0
-3
write.c
tools/wmc/write.c
+5
-12
No files found.
tools/wmc/wmc.c
View file @
f775f3e1
...
...
@@ -174,8 +174,6 @@ int main(int argc,char *argv[])
signal
(
SIGHUP
,
exit_on_signal
);
#endif
now
=
time
(
NULL
);
/* First rebuild the commandline to put in destination */
/* Could be done through env[], but not all OS-es support it */
cmdlen
=
5
;
/* for "wmc " and \0 */
...
...
tools/wmc/wmc.h
View file @
f775f3e1
...
...
@@ -21,8 +21,6 @@
#ifndef __WMC_WMC_H
#define __WMC_WMC_H
#include <time.h>
/* For time_t */
#include "wmctypes.h"
/*
...
...
@@ -51,7 +49,6 @@ extern char *output_name;
extern
char
*
input_name
;
extern
char
*
header_name
;
extern
char
*
cmdline
;
extern
time_t
now
;
extern
int
line_number
;
extern
int
char_number
;
...
...
tools/wmc/write.c
View file @
f775f3e1
...
...
@@ -91,7 +91,6 @@ static const char str_header[] =
"/* This file is generated with wmc version "
PACKAGE_VERSION
". Do not edit! */
\n
"
"/* Source : %s */
\n
"
"/* Cmdline: %s */
\n
"
"/* Date : %s */
\n
"
"
\n
"
;
...
...
@@ -178,11 +177,9 @@ void write_h_file(const char *fname)
perror
(
fname
);
exit
(
1
);
}
cptr
=
ctime
(
&
now
);
killnl
(
cptr
,
0
);
fprintf
(
fp
,
str_header
,
input_name
?
input_name
:
"<stdin>"
,
cmdline
,
cptr
);
fprintf
(
fp
,
"#ifndef __WMCGENERATED_%08lx_H
\n
"
,
(
long
)
now
);
fprintf
(
fp
,
"#define __WMCGENERATED_%08lx_H
\n
"
,
(
long
)
now
);
fprintf
(
fp
,
str_header
,
input_name
?
input_name
:
"<stdin>"
,
cmdline
);
fprintf
(
fp
,
"#ifndef __WMCGENERATED_H
\n
"
);
fprintf
(
fp
,
"#define __WMCGENERATED_H
\n
"
);
fprintf
(
fp
,
"
\n
"
);
/* Write severity and facility aliases */
...
...
@@ -501,18 +498,14 @@ static void write_rcinline(FILE *fp)
void
write_rc_file
(
const
char
*
fname
)
{
FILE
*
fp
;
char
*
cptr
;
FILE
*
fp
=
fopen
(
fname
,
"w"
);
fp
=
fopen
(
fname
,
"w"
);
if
(
!
fp
)
{
perror
(
fname
);
exit
(
1
);
}
cptr
=
ctime
(
&
now
);
killnl
(
cptr
,
0
);
fprintf
(
fp
,
str_header
,
input_name
?
input_name
:
"<stdin>"
,
cmdline
,
cptr
);
fprintf
(
fp
,
str_header
,
input_name
?
input_name
:
"<stdin>"
,
cmdline
);
if
(
rcinline
)
write_rcinline
(
fp
);
...
...
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