Skip to content

Instantly share code, notes, and snippets.

This is a public gist - It can show up when anyone searches gists. So if you search for NetBurner
this particular gist is likely to show up. It may take a while after entering a gist for it to be
available through the gist search engine. I didn't put any "extension" on the filename so Gist
doesn't try to format this entry at all. If I had called it "This is public.cpp" it would try and
format this as a C++ file. It wraps text while you enter it but if you don't want viewers to scroll
when they read it you have to hard enter new lines.
@Rolias
Rolias / ServiceProvider.cpp
Created October 19, 2010 18:03
Example of using a service provider in C++ for the NetBurner
//---------------------------------------------------------------------------
//Here's StartupServiceProvider.h - only the include codeguards are missing
//---------------------------------------------------------------------------
namespace SyncorLibrary
{
//Here area a copule of external classes that I want to treat as a singletons
//They have default constructors that make no OS calls.
class TcpServer;
class TcpServerReset;
@Rolias
Rolias / BuildJsError
Created March 12, 2011 01:57
Log file when Eclipse build tried to compile javascript files.
m68k-elf-gcc -O2 -falign-functions=4 -IC:\nburn\include -IC:\nburn\MOD5272\include -IC:\nburn\gcc-m68k\m68k-elf\include -IC:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1 -IC:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1\m68k-elf -IC:\nburn\NBEclipse\workspace\SyncorUnitTestFramewwork_distrib\SyncorUnitTest_Framework\includes\UnitTest++ -gdwarf-2 -Wall -Wno-write-strings -c -fmessage-length=0 -mcpu=5206e -DMOD5272 -DMCF5272 -ohtml\scripts\SupportScripts.o ..\html\scripts\SupportScripts.js
m68k-elf-gcc: ..\html\scripts\SupportScripts.js: linker input file unused because linking not done
m68k-elf-gcc -O2 -falign-functions=4 -IC:\nburn\include -IC:\nburn\MOD5272\include -IC:\nburn\gcc-m68k\m68k-elf\include -IC:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1 -IC:\nburn\gcc-m68k\m68k-elf\include\c++\4.2.1\m68k-elf -IC:\nburn\NBEclipse\workspace\SyncorUnitTestFramewwork_distrib\SyncorUnitTest_Framework\includes\UnitTest++ -gdwarf-2 -Wall -Wno-write-strings -c -fmessage-length=0 -mcpu=5206e -DMOD5272 -DMCF5272 -ohtml\scripts\
@Rolias
Rolias / TaskBase.cpp
Created June 7, 2011 22:08
TaskBase - Parent class for all tasks started in NetBurner
/*
* TaskBase.cpp
*
* Created on: Mar 2, 2010
* Author: Tod Gentille
* Syncor Systems, Inc.
*/
#include "TaskBase.h"
#include <iostream>
@Rolias
Rolias / InstrumentView.xaml
Created June 20, 2011 18:12
WPF User Control with FlowDocument problem, where text won't wrap
<UserControl x:Class="Its9202Gui.View.InstrumentView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:Controls="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit.Extended"
mc:Ignorable="d"
d:DesignHeight="465"
d:DesignWidth="986" xmlns:my="clr-namespace:Its9202Gui.View">
@Rolias
Rolias / TestTaskBase.cpp
Created January 21, 2012 20:09
Unit Tests for the "TaskBase" class in Syncor's Standard Library.
/*
* TestTaskBase.cpp
*
* Created on: Mar 2, 2010
* Author: Tod Gentille
* Syncor Systems, Inc.
*/
#include <UnitTest++.h>
#include <Startup/TaskBase.h>
@Rolias
Rolias / lint_cmac.h
Created February 12, 2013 20:38
lint_cmac.h file needed for use when running Gimpel's PC-lint in the NetBurner environment using GCC 4.2.1
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __DEC64_DEN__ 0.000000000000001E-383DD
#define __CHAR_BIT__ 8
#define __mcf_cpu_5206 1
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 0
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
@Rolias
Rolias / netburner.lnt
Created February 12, 2013 20:46
Starting lint file the Gimpel's PC-Lint when running against the GCC 4.2.1 compiler for NetBurner development.
c:\lint\co-gcc.lnt
//Scott Meyer's Checks
c:\lint\au-sm123.lnt
//Set size options for integers pointers and longs
-si4 -sp4 -sl4
//Some Mod5272 Module specific items
-iC:\Nburn\Mod5272
-iC:\Nburn\Mod5272\system
-iC:\Nburn\include
@Rolias
Rolias / lint_cppmac.h
Created February 12, 2013 20:52
C++ .h file for Gimpel's PC-Lint when running against the GCC 4.2.1 compiler for NetBurner development. Included from co-gcc.h which is used by the co-gcc.lnt file.
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __DEC64_DEN__ 0.000000000000001E-383DD
#define __CHAR_BIT__ 8
#define __mcf_cpu_5206 1
#define __WCHAR_MAX__ 2147483647
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 0
#define __DBL_MIN_10_EXP__ (-307)
#define __FINITE_MATH_ONLY__ 0
@Rolias
Rolias / gcc-include-path.lnt
Last active December 12, 2015 12:39
Include directories for Gimpel's PC-Lint when running against the GCC 4.2.1 compiler for NetBurner development.
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1"
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1/m68k-elf"
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1/backward"
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/include"
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/include-fixed"
--i"c:\nburn\gcc-m68k\bin\../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include"
--i"c:/nburn/gcc-m68k/lib/gcc/../../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1"
--i"c:/nburn/gcc-m68k/lib/gcc/../../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1/m68k-elf"
--i"c:/nburn/gcc-m68k/lib/gcc/../../lib/gcc/m68k-elf/4.2.1/../../../../m68k-elf/include/c++/4.2.1/backward"
--i"c:/nburn/gcc-m68k/lib/gcc/../../lib/gcc/m68k-elf/4.2.1/include"