forked from not404/radioblock-simplemesh-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f1155d9
commit 8790f13
Showing
24 changed files
with
1,524 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
!SESSION 2012-05-29 18:06:13.389 ----------------------------------------------- | ||
eclipse.buildId=unknown | ||
java.version=1.6.0_30 | ||
java.vendor=Sun Microsystems Inc. | ||
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_CA | ||
Command-line arguments: -os win32 -ws win32 -arch x86 | ||
|
||
!ENTRY org.eclipse.ui 4 4 2012-05-29 18:06:24.456 | ||
!MESSAGE Unable to find view with id: com.crt.trueview.views.DisassemblyViewer, when creating perspective com.crt.lite.perspective.CRTPerspective |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.eclipse.core.runtime=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
BEGIN {S=0} | ||
/search starts here:/ {S=1;next;} | ||
S && /^ / { | ||
sub("^ ",""); | ||
gsub("//*","/"); | ||
sub("\xd$$",""); | ||
sub("/$$",""); | ||
printf("--i\"%s\"\n", $$0); | ||
next; | ||
} | ||
S {exit;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#ifndef CO_GCC_H_ | ||
#define CO_GCC_H_ | ||
|
||
#ifdef _lint /* Make sure no compiler comes this way */ | ||
|
||
/* Standard library headers typically define the assert macro so that it | ||
expands to a complicated conditional expression that uses special | ||
funtions that Lint does not know about by default. For linting | ||
purposes, we can simplify things a bit by forcing assert() to expand to | ||
a call to a special function that has the appropriate 'assert' | ||
semantics. | ||
*/ | ||
//lint -function( __assert, __lint_assert ) | ||
void __lint_assert( int ); | ||
//lint ++d"assert(e)=__lint_assert(!!(e))" | ||
//(++d makes this definition permanently immutable for the Lint run.) | ||
//Now that we've made our own 'assert', we need to keep people from being | ||
//punished when the marco in 'assert.h' appears not to be used: | ||
//lint -efile(766,*assert.h) | ||
|
||
/* | ||
The headers included below must be generated; For C++, generate | ||
with: | ||
g++ [usual build options] -E -dM t.cpp >lint_cppmac.h | ||
For C, generate with: | ||
gcc [usual build options] -E -dM t.c >lint_cmac.h | ||
...where "t.cpp" and "t.c" are empty source files. | ||
It's important to use the same compiler options used when compiling | ||
project code because they can affect the existence and precise | ||
definitions of certain predefined macros. See gcc-readme.txt for | ||
details and a tutorial. | ||
*/ | ||
#if defined(__cplusplus) | ||
# include "lint_cppmac.h" | ||
#else | ||
# include "lint_cmac.h" | ||
#endif | ||
|
||
/* If the macro set given by the generated macro files must be adjusted in | ||
order for Lint to cope, then you can make those adjustments here. | ||
*/ | ||
|
||
#define LINT_CO_GCC_H_GCC_VERSION ( __GNUC__ * 10000 + \ | ||
__GNUC_MINOR__ * 100 + \ | ||
__GNUC_PATCHLEVEL__ ) | ||
|
||
/* The following is a workaround for versions of GCC with bug 25717, in | ||
which the preprocessor does not dump a #define directive for __STDC__ | ||
when -dM is given: | ||
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25717 | ||
We know the unconditional definition of __STDC__ was introduced no | ||
later than version 3.0; the preprocessor bug was fixed no later than | ||
version 4.1.0. | ||
*/ | ||
#if ( LINT_CO_GCC_H_GCC_VERSION >= 30000 && \ | ||
LINT_CO_GCC_H_GCC_VERSION < 40100 ) | ||
# define __STDC__ 1 | ||
#endif | ||
|
||
|
||
#if LINT_CO_GCC_H_GCC_VERSION >= 40300 | ||
# define __COUNTER__ __lint__COUNTER__ | ||
//lint +rw( *type_traits ) // Enable type traits support | ||
#endif | ||
|
||
|
||
#endif /* _lint */ | ||
#endif /* CO_GCC_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
/* co-gcc.lnt: This is the seed file for configuring Lint for use with | ||
GCC versions 2.95.3 and later. | ||
|
||
Like all compiler options files this file is intended to be used | ||
as follows: | ||
|
||
lint co-gcc.lnt source-files-to-be-linted | ||
|
||
Some of the information that co-gcc.lnt requires needs to be furnished | ||
with the help of the gcc system itself. The easiest way to generate | ||
this information is to use the makefile co-gcc.mak (supplied with the | ||
Lint distribution) in an invocation of GNU Make; for details, see the | ||
commentary at the top of co-gcc.mak. | ||
*/ | ||
|
||
-cgnu // Notifies FlexeLint that gcc is being used. | ||
|
||
// =========================== | ||
// Preprocessor Configuration: | ||
+fdi // GCC starts its #include search in the directory of the including | ||
// file. | ||
|
||
-header(co-gcc.h) // Includes headers generated by GCC (bringing in | ||
// predefined macros). | ||
+libh(co-gcc.h) // Marks that header as library code. | ||
|
||
gcc-include-path.lnt // This .lnt file should contain --i options | ||
// and should be generated by invoking gcc with its '-v' option. | ||
// (GCC's implicit #include search path is presented in the output.) | ||
// This happens automatically when 'make -f co-gcc.mak' is invoked. | ||
|
||
// Assertion directives (a feature of GCC's preprocessor) have been | ||
// considered obsolete in GCC's documentation since version 3.0, so we do | ||
// not use them here. If support for #assert is needed in the form of a | ||
// lint option, one may use '-a#' like so: | ||
// -a#machine(i386) // #assert's machine(i386) (SVR4 facility). | ||
|
||
+cpp(.cc) // extensions for C++ that are commonly used in addition | ||
// to the default extensions of .cpp and .cxx | ||
|
||
|
||
// ============= | ||
// Size Options: | ||
size-options.lnt // This .lnt file should be generated (preferrably | ||
// by a program created by invoking GCC with the compile options that | ||
// are used in the compilation of the project to be linted). This | ||
// happens automatically when 'make -f co-gcc.mak' is invoked. | ||
|
||
|
||
// =========================================== | ||
// +rw and -d options to cope with GNU syntax: | ||
+ppw(ident) // Tolerate #ident | ||
+ppw(warning) | ||
|
||
// GCC provides alternative spellings of certain keywords: | ||
-rw_asgn(__inline,inline) | ||
-rw_asgn(__inline__,inline) | ||
-rw_asgn(__signed__,signed) | ||
-rw_asgn(__signed,signed) | ||
-rw_asgn( __volatile__, volatile ) | ||
-rw_asgn( __volatile, volatile ) | ||
++d__const=const // gconv.h uses __const rather than const | ||
++dconst=const // ensure const expands to const. | ||
|
||
-rw_asgn( asm, _up_to_brackets ) | ||
-rw_asgn( __asm, _up_to_brackets ) | ||
-rw_asgn( __asm__, _up_to_brackets ) | ||
// This re-definition of the various spellings of the asm keyword enables | ||
// Lint to pass gracefully over expression-statements like: | ||
// __asm __volatile ("fsqrt" : "=t" (__result) : "0" (__x)); | ||
// But it may be necessary to suppress certain error messages that are | ||
// triggered by tokens that are part of an assembly declaration or | ||
// statement. For example: | ||
|
||
-d"__asm__(p...)=/*lint -e{19}*/ __asm__(p)" | ||
|
||
// ...causes Lint to be quiet about the semicolon that follows an | ||
// __asm__() declaration. Note, the -e{N} form of suppression takes | ||
// effect only for the forward-declaration, definition or | ||
// [possibly-compound] statement that immediately follows. Because a | ||
// semicolon is seen as a declaration-terminator, Error 19 will be | ||
// re-enabled immediately after the semicolon in '__asm__(...);'. | ||
// (The elipsis after the macro parameter p allows zero or more commas to | ||
// appear in the operand.) | ||
// | ||
// If you encounter other diagnostics that appear to need suppression in | ||
// or near assembly regions, please let us know! | ||
-rw_asgn(__alignof__,__alignof) | ||
|
||
++d__attribute__()= // ignore this keyword and following parenthetical | ||
++d__attribute()= // variant spelling of "__attribute__" | ||
|
||
// "__extension__" is GCC's way of allowing the use of non-standard | ||
// constructs in a strict Standard-conforming mode. We don't currently | ||
// have explicit support for it, but we can use local suppressions. For | ||
// example, we can use -e(160) so that we will not see any Errors about | ||
// GNU statement-expressions wrapped in __extension__(). | ||
++d"__extension__=/*lint -e(160) */" | ||
|
||
++d__builtin_va_list=void* // used by stdarg.h | ||
++d__builtin_stdarg_start()=_to_semi // ditto | ||
++d__builtin_va_end()=_to_semi // ditto | ||
++d"__builtin_va_arg(a,b)=(*( (b *) ( ((a) += sizeof(b)) - sizeof(b) )))" | ||
++d__null=0 | ||
+rw(_to_semi) // needed for the two macros above. | ||
+rw(__typeof__) // activate __typeof__ keyword | ||
-d__typeof=__typeof__ // an alternative to using __typeof__ | ||
|
||
+rw( __restrict ) | ||
+rw( __restrict__ ) | ||
-rw(__except) // This MS reserved word is used as an identifier | ||
+rw( __complex__, __real__, __imag__ ) // reserved words that can be ignored. | ||
++d__builtin_strchr=(char*) // permits the inline definition ... | ||
++d__builtin_strpbrk=(char*) // of these functions to be linted ... | ||
++d__builtin_strrchr=(char*) // without drawing a complaint | ||
++d__builtin_strstr=(char*) // about the use of a non-standard name | ||
++d__PRETTY_FUNCTION__=___function___ // lint defines ___function___ internally | ||
++d__FUNCTION__=___function___ // lint defines ___function___ internally | ||
++d__func__=___function___ // Some C++ modes suport the implicit __func__ | ||
// identifier. | ||
|
||
// ========================================================= | ||
// Other options supporting GNU C/C++ syntax: | ||
+fld // enables the processing of _L_abel _D_esignators E.g.: | ||
// union { double d; int i; } u = { d: 3.141 }; | ||
|
||
// +fwc // wchar_t might be builtin; if so, uncomment | ||
// this option. | ||
|
||
// ========================================================= | ||
// Generally useful suppressions: | ||
-wlib(1) // sets the warning level within library headers to 1 | ||
// (no warnings, just syntax errors). Comment out if you | ||
// are actually linting library headers. | ||
-elib(123) // 123 is really a warning, but it's in the "Error" range. | ||
-elib(93) // allow newlines within quoted string arguments to macros | ||
-elib(46) // allow bit fields to have integral types other than | ||
// '_Bool' and 'int'. | ||
-elibsym(628) // Suppress 628 for __builtin symbols. | ||
|
||
-esym(528,__huge_val,__nan,__qnan,__qnanf,__snan,__snanf) | ||
// We don't care if we don't reference some GNU functions | ||
-esym(528,__gnu_malloc,__gnu_calloc) | ||
|
||
// The following functions exhibit variable return modes. | ||
// That is, they may equally-usefully be called for a value | ||
// as called just for their effects. Accordingly we inhibit | ||
// Warning 534 for these functions. | ||
// Feel free to add to or subtract from this list. | ||
|
||
-esym(534,close,creat,fclose,fprintf,fputc) | ||
-esym(534,fputs,fscanf,fseek,fwrite,lseek,memcpy,memmove,memset) | ||
-esym(534,printf,puts,scanf,sprintf,sscanf,strcat,strcpy) | ||
-esym(534,strncat,strncpy,unlink,write) | ||
|
||
// For non-ANSI compilers we suppress messages 515 and 516 | ||
// for functions known to have variable argument lists. | ||
// For ANSI compilers, header files should take care of this. | ||
|
||
-esym(515,fprintf,printf,sprintf,fscanf,scanf,sscanf) | ||
-esym(516,fprintf,printf,sprintf,fscanf,scanf,sscanf) | ||
-esym(1702,*operator<<,*operator>>) | ||
-esym(534,*operator<<,*operator>>) | ||
-esym(1055,*__builtin*) | ||
-esym(718,*__builtin*) // The compiler does not need these ... | ||
-esym(746,*__builtin*) // declared and it knows their prototypes. | ||
|
Oops, something went wrong.