From c6499c8b625c9d79682688cd4218eff2c30f797e Mon Sep 17 00:00:00 2001 From: felix Date: Sun, 19 Jul 2009 16:18:30 +0200 Subject: [PATCH] diff should get -b on windows to ignore line-terminator differences; SEXP_API is redundantly redefined in sexp.c --- Makefile | 3 ++- sexp.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ed2744c2..a98fd165 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,7 @@ else ifeq ($(shell uname -o),Msys) PLATFORM=mingw SOLIBDIR = $(BINDIR) +DIFFOPTS = -b else PLATFORM=unix endif @@ -92,7 +93,7 @@ cleaner: clean test-basic: chibi-scheme$(EXE) @for f in tests/basic/*.scm; do \ ./chibi-scheme$(EXE) $$f >$${f%.scm}.out 2>$${f%.scm}.err; \ - if diff -q $${f%.scm}.out $${f%.scm}.res; then \ + if diff -q $(DIFFOPTS) $${f%.scm}.out $${f%.scm}.res; then \ echo "[PASS] $${f%.scm}"; \ else \ echo "[FAIL] $${f%.scm}"; \ diff --git a/sexp.c b/sexp.c index dfaca5a1..d5a63443 100644 --- a/sexp.c +++ b/sexp.c @@ -2,7 +2,6 @@ /* Copyright (c) 2009 Alex Shinn. All rights reserved. */ /* BSD-style license: http://synthcode.com/license.txt */ -#define SEXP_API #include "chibi/sexp.h" /* optional huffman-compressed immediate symbols */