![]() |
|
|
New Layout: Coding ConventionsUpdated: March 10, 1998See the modularization docs for component model information. Naming Conventions
Coding ConventionsNo whitespace after a method name and the opening left parenthesis. Curly braces on the same line as the if, for, while or switch statement. Curly braces on a new line for method implementations. No tabs in source files. Indenting for a given source file should be 100% consistent and be 2 spaces. License InformationThe following comment will used at the top of every source file:/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */Note that this comment is taken from the Netscape Public License, which may change. Thus, please check the license page for specific language. Note too that as a developer who is not working at Netscape, you may be interested in submitting your source code under the Mozilla Public License, which differs from the Netscape Public License. We are not lawyers; this is not legal advice. More information is available from our license page. Language LimitationsNo exceptions. No namespaces. No runtime typing. No virtual base classes. No templates. No mutable.
|
|||||||
| Copyright © 1998 The Mozilla Organization. | ||||||||