Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
311242ac
Commit
311242ac
authored
25 years ago
by
Per Hedbor
Browse files
Options
Downloads
Patches
Plain Diff
Fixed error reporting
Rev: lib/master.pike.in:1.109
parent
f369dd9a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/master.pike.in
+4
-12
4 additions, 12 deletions
lib/master.pike.in
with
4 additions
and
12 deletions
lib/master.pike.in
+
4
−
12
View file @
311242ac
/* -*- Pike -*-
/* -*- Pike -*-
*
*
* $Id: master.pike.in,v 1.10
8
2000/03/2
6 15:11:34 mast
Exp $
* $Id: master.pike.in,v 1.10
9
2000/03/2
7 01:17:23 per
Exp $
*
*
* Master-file for Pike.
* Master-file for Pike.
*
*
...
@@ -1157,11 +1157,7 @@ string trim_file_name(string s)
...
@@ -1157,11 +1157,7 @@ string trim_file_name(string s)
void compile_error(string file,int line,string err)
void compile_error(string file,int line,string err)
{
{
mixed val;
mixed val;
if(! (val = inhibit_compile_errors
if(! (val = get_inhibit_compile_errors() ))
#if constant(thread_local)
->get()
#endif /* constant(thread_local) */
))
{
{
werror(sprintf("%s:%s:%s\n",trim_file_name(file),
werror(sprintf("%s:%s:%s\n",trim_file_name(file),
line?(string)line:"-",err));
line?(string)line:"-",err));
...
@@ -1173,7 +1169,7 @@ void compile_error(string file,int line,string err)
...
@@ -1173,7 +1169,7 @@ void compile_error(string file,int line,string err)
if (objectp(val) && val->compile_error) {
if (objectp(val) && val->compile_error) {
val->compile_error(file, line, err);
val->compile_error(file, line, err);
} else {
} else {
inhibit_compile_errors
(file, line, err);
val
(file, line, err);
}
}
}
}
}
}
...
@@ -1188,11 +1184,7 @@ void compile_warning(string file,int line,string err)
...
@@ -1188,11 +1184,7 @@ void compile_warning(string file,int line,string err)
{
{
mixed val;
mixed val;
if(!(val = inhibit_compile_errors
if(!(val = get_inhibit_compile_errors() ))
#if constant(thread_local)
->get()
#endif /* constant(thread_local) */
))
{
{
if(want_warnings)
if(want_warnings)
werror(sprintf("%s:%s: Warning: %s\n",trim_file_name(file),
werror(sprintf("%s:%s: Warning: %s\n",trim_file_name(file),
...
...
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