added makefile and common include
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! GPL, read COPYING.GPL
|
!!LICENCE!! GPL, read COPYING.GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|||||||
@@ -5,6 +5,8 @@
|
|||||||
!!AUTHOR!! Johan Kotlinski
|
!!AUTHOR!! Johan Kotlinski
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! GPL, read COPYING.GPL
|
!!LICENCE!! GPL, read COPYING.GPL
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
@@ -291,19 +293,16 @@ void c_minus1(void)
|
|||||||
printf("(long0 != -1)\n");
|
printf("(long0 != -1)\n");
|
||||||
if(long0 != -1)
|
if(long0 != -1)
|
||||||
{
|
{
|
||||||
LOG_ERROR(1);
|
|
||||||
failures++;
|
failures++;
|
||||||
}
|
}
|
||||||
printf("(long0 > 0)\n");
|
printf("(long0 > 0)\n");
|
||||||
if(long0 > 0)
|
if(long0 > 0)
|
||||||
{
|
{
|
||||||
LOG_ERROR(1);
|
|
||||||
failures++;
|
failures++;
|
||||||
}
|
}
|
||||||
printf("(long1 < 0)\n");
|
printf("(long1 < 0)\n");
|
||||||
if(long1 < 0)
|
if(long1 < 0)
|
||||||
{
|
{
|
||||||
LOG_ERROR(1);
|
|
||||||
failures++;
|
failures++;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
#ifndef CQ26_INCLUDED
|
#ifndef CQ26_INCLUDED
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
/*include "cq26.c"*/ /* hardware check */
|
/*include "cq26.c"*/ /* hardware check */
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
!!LICENCE!! own, freely distributeable for non-profit. read CPYRIGHT.LCC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
|
|
||||||
struct defs {
|
struct defs {
|
||||||
int cbits; /* No. of bits per char */
|
int cbits; /* No. of bits per char */
|
||||||
int ibits; /* int */
|
int ibits; /* int */
|
||||||
|
|||||||
Reference in New Issue
Block a user