Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
c5d77e96
Commit
c5d77e96
authored
Nov 12, 2007
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Including my extern-squishing script, which just found an
extraneous extern in exclude.c.
parent
2909586e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
exclude.c
exclude.c
+0
-1
extern-squish
support/extern-squish
+18
-0
No files found.
exclude.c
View file @
c5d77e96
...
...
@@ -26,7 +26,6 @@ extern int verbose;
extern
int
am_server
;
extern
int
am_sender
;
extern
int
eol_nulls
;
extern
int
recurse
;
extern
int
io_error
;
extern
int
local_server
;
extern
int
prune_empty_dirs
;
...
...
support/extern-squish
0 → 100755
View file @
c5d77e96
#!/usr/bin/perl
# This script finds extraneous "extern" variables in the *.c files.
# Run it from inside the main rsync directory.
use
strict
;
my
@files
=
glob
(
'*.c'
);
foreach
my
$fn
(
@files
)
{
open
(
IN
,
'<'
,
$fn
)
or
die
;
undef
$/
;
$_
=
<
IN
>
;
$/
=
"\n"
;
close
IN
;
my
@externs
=
/^extern .*?([^[\s(*;&.]+)(?:\[.*?\])?;/mg
;
foreach
my
$find
(
@externs
)
{
my
@matches
=
/(?<!\sstruct )\b(\Q$find\E)\b/g
;
print
$fn
,
': '
,
$find
,
"\n"
if
@matches
==
1
;
}
}
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