1
1
# -*- Outline -*-
2
2
#
3
3
# Copyright 2004,2007,2008,2009 Free Software Foundation, Inc.
4
- #
4
+ #
5
5
# This file is part of GNU Radio
6
- #
6
+ #
7
7
# GNU Radio is free software; you can redistribute it and/or modify
8
8
# it under the terms of the GNU General Public License as published by
9
9
# the Free Software Foundation; either version 3, or (at your option)
10
10
# any later version.
11
- #
11
+ #
12
12
# GNU Radio is distributed in the hope that it will be useful,
13
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
15
# GNU General Public License for more details.
16
- #
16
+ #
17
17
# You should have received a copy of the GNU General Public License
18
18
# along with GNU Radio; see the file COPYING. If not, write to
19
19
# the Free Software Foundation, Inc., 51 Franklin Street,
20
20
# Boston, MA 02110-1301, USA.
21
- #
21
+ #
22
22
23
23
Random notes on coding conventions, some explanations about why things
24
24
aren't done differently, etc, etc,
@@ -103,7 +103,7 @@ The big win is when you're staring at a block of code it's obvious
103
103
which of the things being assigned to persist outside of the block.
104
104
This also keeps you from having to be creative with parameter names
105
105
for methods and constructors. You just use the same name as the
106
- instance variable, without the d_.
106
+ instance variable, without the d_.
107
107
108
108
class gr_wonderfulness {
109
109
std::string d_name;
@@ -147,7 +147,7 @@ See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
147
147
* Unit tests
148
148
149
149
Build unit tests for everything non-trivial and run them after every
150
- change. Check out Extreme Programming:
150
+ change. Check out Extreme Programming:
151
151
http://c2.com/cgi/wiki?ExtremeProgrammingRoadmap
152
152
153
153
Unit tests should also be written for all examples. This should kill
@@ -177,7 +177,7 @@ We use the standard unittest package for unit testing of Python code.
177
177
178
178
* Subversion line ending styles
179
179
180
- All text files in the tree should have the subversion property
180
+ All text files in the tree should have the subversion property
181
181
'svn:eol-style' set to 'native', with the following exceptions:
182
182
183
183
config/*.m4
@@ -192,7 +192,7 @@ enable-auto-props=yes
192
192
193
193
[auto-props]
194
194
*.c = svn:eol-style=native
195
- *.cc = svn:eol-style=native
195
+ *.cc = svn:eol-style=native
196
196
*.i = svn:eol-style=native
197
197
*.h = svn:eol-style=native
198
198
*.am = svn:eol-style=native
@@ -303,15 +303,15 @@ To specify a rate use:
303
303
304
304
add_option("-r", "--sample-rate", type="eng_float", default=<your-default-here>,
305
305
help="specify sample-rate [default=%default]")
306
-
306
+
307
307
308
308
If your application has a verbose option, use:
309
309
310
310
add_option('-v', '--verbose', action="store_true", default=False,
311
311
help="verbose output")
312
312
313
313
314
- If your application allows the user to specify the "fast USB" options, use:
314
+ If your application allows the user to specify the "fast USB" options, use:
315
315
316
316
add_option("", "--fusb-block-size", type="intx", default=0,
317
317
help="specify fast usb block size [default=%default]")
0 commit comments