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
ba531449
Commit
ba531449
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-04-06 10:45:11 by simonmar]
add a note about POSIX compliance.
parent
461cddc1
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/coding-style.html
+9
-1
9 additions, 1 deletion
docs/coding-style.html
with
9 additions
and
1 deletion
docs/coding-style.html
+
9
−
1
View file @
ba531449
...
...
@@ -61,6 +61,15 @@ We use ANSI C with some extensions. In particular, we use:
<li>
#elsif, #error, #warning, ## and other cpp features
</ul>
<li>
Our POSIX policy: try to write code that only uses POSIX (IEEE
Std 1003.1) interfaces and APIs. When you include
<code>
Rts.h
<code>
,
<code>
POSIX_SOURCE
</code>
is automatically defined for you before any
system headers are slurped in, unless you define
<code>
NON_POSIX_SOURCE
</code>
prior to including
<code>
Rts.h
</code>
.
A good C library will use the
<code>
POSIX_SOURCE
</code>
define to
eliminate non-posix types and function prototypes, so the compiler
should complain if you venture outside the POSIX spec.
</li>
<li>
We use the following gcc extensions (see gcc documentation):
<ul>
...
...
@@ -509,7 +518,6 @@ within Hugs. Add this to your .emacs file.
)
</pre>
</ul>
<h2>
CVS issues
</h2>
...
...
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