docs,wifi: Remove emacs lines
This commit is contained in:
@@ -95,7 +95,6 @@ the previous copyrights from the copyright file! See below for this case.
|
||||
An example placement of a copyright statement can be found in the file
|
||||
``src/network/model/packet.h``::
|
||||
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2005,2006 INRIA
|
||||
*
|
||||
@@ -112,7 +111,6 @@ contributor may add a copyright statement that clarifies the new portion
|
||||
of code that is covered by the new copyright. An example is the program
|
||||
``src/lte/model/lte-ue-phy.h``::
|
||||
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2010 TELEMATICS LAB, DEE - Politecnico di Bari
|
||||
* Copyright (c) 2018 Fraunhofer ESK : RLF extensions
|
||||
|
||||
@@ -423,8 +423,6 @@ We are going to use the aodv module as an example:
|
||||
|
||||
.. sourcecode:: python3
|
||||
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
module = bld.create_ns3_module('aodv', ['internet', 'wifi'])
|
||||
module.includes = '.'
|
||||
@@ -521,8 +519,6 @@ steps. We should have something like the following:
|
||||
|
||||
.. sourcecode:: python3
|
||||
|
||||
## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
|
||||
|
||||
def build(bld):
|
||||
obj = bld.create_ns3_program('aodv',
|
||||
['wifi', 'internet', 'aodv', 'internet-apps'])
|
||||
|
||||
@@ -168,30 +168,8 @@ point-to-point link between two nodes and echo a single packet between the
|
||||
nodes. Let's take a look at that script line by line, so go ahead and open
|
||||
``first.cc`` in your favorite editor.
|
||||
|
||||
Boilerplate
|
||||
+++++++++++
|
||||
The first line in the file is an emacs mode line. This tells emacs about the
|
||||
formatting conventions (coding style) we use in our source code.
|
||||
|
||||
::
|
||||
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
|
||||
This is always a somewhat controversial subject, so we might as well get it
|
||||
out of the way immediately. The |ns3| project, like most large
|
||||
projects, has adopted a coding style to which all contributed code must
|
||||
adhere. If you want to contribute your code to the project, you will
|
||||
eventually have to conform to the |ns3| coding standard as described
|
||||
in the file ``doc/contributing/source/coding-style.rst`` or shown on the project web page
|
||||
`here
|
||||
<https://www.nsnam.org/docs/contributing/html/coding-style.html>`_.
|
||||
|
||||
We recommend that you, well, just get used to the look and feel of |ns3|
|
||||
code and adopt this standard whenever you are working with our code. All of
|
||||
the development team and contributors have done so with various amounts of
|
||||
grumbling. The emacs mode line above makes it easier to get the formatting
|
||||
correct if you use the emacs editor.
|
||||
|
||||
Copyright
|
||||
+++++++++
|
||||
The |ns3| simulator is licensed using the GNU General Public
|
||||
License version 2. You will see the appropriate GNU legalese at the head of every file
|
||||
in the |ns3| distribution. Often you will see a copyright notice for
|
||||
|
||||
@@ -313,7 +313,6 @@ We have provided some code to implement what is really the simplest
|
||||
example of tracing that can be assembled. You can find this code in
|
||||
the tutorial directory as ``fourth.cc``. Let's walk through it::
|
||||
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
@@ -1390,7 +1389,6 @@ dissecting the congestion window test. Open
|
||||
``examples/tutorial/fifth.cc`` in your favorite editor. You should
|
||||
see some familiar looking code::
|
||||
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2010 The Boeing Company
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user