Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
8cc2d8b1
Commit
8cc2d8b1
authored
26 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1998-12-03 11:40:05 by simonm]
Oops, accidentally downgraded these files in the previous commit.
parent
0d7024c2
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
glafp-utils/lndir/lndir.c
+2
-0
2 additions, 0 deletions
glafp-utils/lndir/lndir.c
glafp-utils/mkdependC/mkdependC.prl
+16
-9
16 additions, 9 deletions
glafp-utils/mkdependC/mkdependC.prl
with
18 additions
and
9 deletions
glafp-utils/lndir/lndir.c
+
2
−
0
View file @
8cc2d8b1
...
...
@@ -207,6 +207,8 @@ int rel; /* if true, prepend "../" to fn before using */
while
(
dp
=
readdir
(
df
))
{
if
(
dp
->
d_name
[
strlen
(
dp
->
d_name
)
-
1
]
==
'~'
)
continue
;
if
(
dp
->
d_name
[
0
]
==
'.'
&&
dp
->
d_name
[
1
]
==
'#'
)
/* 'non-conflict files' left behind by CVS */
continue
;
strcpy
(
p
,
dp
->
d_name
);
if
(
n_dirs
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
glafp-utils/mkdependC/mkdependC.prl
+
16
−
9
View file @
8cc2d8b1
...
...
@@ -15,11 +15,12 @@ $Dashdashes_seen = 0;
$Begin_magic_str = "# DO NOT DELETE: Beginning of C dependencies\n";
$End_magic_str = "# DO NOT DELETE: End of C dependencies\n";
$Obj_suffix = '
.
o';
$Obj_suffix = 'o';
@Defines = ();
$Include_dirs = '';
$Makefile = '';
@Src_files = ();
@File_suffix = ();
if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
$Tmp_prefix = $ENV{'TMPDIR'} . "/mkdependC$$";
...
...
@@ -60,7 +61,7 @@ foreach $sf (@Src_files) {
# a de-commenter (not implemented);
# builds up @Depend_lines
print STDERR "Here we go for source file: $sf\n" if $Verbose;
($
o
f = $sf) =~ s/\.(c|hc)$/
$Obj_suffix
/;
($
b
f = $sf) =~ s/\.(c|hc)$//;
&slurp_file($sf, 'fh00');
}
...
...
@@ -111,6 +112,9 @@ sub mangle_command_line_args {
$Makefile = &grab_arg_arg($_);
} elsif ( /^-o/ ) {
$Obj_suffix = &grab_arg_arg($_);
} elsif ( /^-s/ ) {
local($suff) = &grab_arg_arg($_);
push(@File_suffix, $suff);
} elsif ( /^-bs/ ) {
$Begin_magic_str = &grab_arg_arg($_) . "\n";
} elsif ( /^-es/ ) {
...
...
@@ -178,30 +182,33 @@ sub slurp_file { # follows an example in the `open' item in perl man page
# don't bother w/ dependencies on /usr/include stuff
# don't bother if it looks like a GCC built-in hdr file
# don't bother with funny yacc-ish files
# don't bother with "literate" .h files (.lh); we'll just
# depend on the de-litified versions (which have better info)
# don't let a file depend on itself
next line if /^\/usr\/include/;
# Hack - the cygwin32 dir structure is odd!
# Hack - the cygwin32 dir structu
p
re is odd!
next line if /H-i386-cygwin32\/i386-cygwin32/;
next line if /H-i386-cygwin32\/lib\/gcc-lib\/i386-cygwin32/;
next line if /\/gcc-lib\/[^\/\n]+\/[\.0-9]+\/include\//;
next line if /\/gnu\/[^-\/]+-[^-\/]+-[^-\/]+\/include\//;
next line if /\/yaccpar/;
next line if /\/bison\.(simple|hairy)/;
next line if /\.lh$/;
next line if $_ eq $fname;
print STDERR "$fname :: $_\n" if $Verbose;
# ToDo: some sanity checks that we still have something reasonable?
$depend = "$of : $_\n";
next line if $Depend_seen{$depend}; # already seen this one...
$int_file = $_;
$depend = "$bf.$Obj_suffix ";
foreach $suff (@File_suffix) {
$depend .= "$bf.${suff}_$Obj_suffix ";
}
$depend .= " : $int_file\n";
next line if $Depend_seen{$depend}; # already seen this one...
# OK, it's a new one.
push (@Depend_lines, $depend);
$Depend_seen{$depend} = 1;
push (@Depend_lines, $depend);
}
close($fhandle);
unlink($tempfile);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment