Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ensembl-gh-mirror
zmap
Commits
0fda3d8d
Commit
0fda3d8d
authored
21 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
initial version
parent
b69c1c8d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/coding_notes.html
+69
-0
69 additions, 0 deletions
doc/coding_notes.html
with
69 additions
and
0 deletions
doc/coding_notes.html
0 → 100755
+
69
−
0
View file @
0fda3d8d
<HTML>
<HEAD>
<TITLE>
Coding Notes
</TITLE>
</HEAD>
<BODY>
<H1>
Coding Notes
</H1>
<p>
This is simply a collection of notes about coding stuff to maintain consistency.
<P>
A good way to maintain consistency is have the editor do the indenting/commenting
etc. If you use the right profile code then there are some emacs functions
to do this which include:
<ul>
<li><b>
Alt-X indent-region
</b>
will indent the code for the marked region.
<li><b>
TAB
</b>
indents the current line (or moves the cursor to the correct
indentation on a blank line.
</ul>
<h2>
Indenting
</h2>
<P>
The standard for code has been to indent by two for each block, there seems
no reason to change it. Line length should be kept to somewhere between 80 and
90 chars, i.e. something that will fit comfortably on to a screen with a reasonable
font size.
<pre><code>
int func(void)
{
int some_var ;
if (blah)
{
call_something() ;
}
return ;
}
</code></pre>
<h2>
Commenting Style
</h2>
<P>
Block comments and line comments should be in this style:
<pre><code>
if (blah)
{
/* This is quite a long block
* comment that runs to more than one
* line. */
call_something() ; /* unknown function */
}
</code></pre>
<HR>
<ADDRESS><a
href=
"mailto:edgrif@sanger.ac.uk"
>
Ed Griffiths
<
edgrif@sanger.ac.uk
>
</a></ADDRESS>
<!-- hhmts start -->
Last modified: Fri Nov 7 09:30:36 GMT 2003
<!-- hhmts end -->
</BODY>
</HTML>
This diff is collapsed.
Click to expand it.
Preview
0%
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