🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Bryan Boreham Tue, 14 Nov 1989 17:37
setjmp.h define
#183
Author: Bryan Boreham
Date: Tue, 14 Nov 1989 17:37
31 lines
1052 bytes
This is setjmp.h from libg++:

#ifndef _setjmp_h
#pragma once
#define _setjmp_h 1
   
#if defined(vax) || defined(ns32000)
static const int _JBLEN = 10;
#elif defined(sun2) || defined(sun3)		<--- Never going to happen
static const int _JBLEN = 58;
#elif defined(sun386)
static const int _JBLEN = 8;
#elif defined(sparc)
static const int _JBLEN = 9;
#endif
   
typedef int jmp_buf[_JBLEN];
   
extern int setjmp(jmp_buf);
extern void longjmp(jmp_buf, int);
   
#endif


If we look in tm-sun3.h and tm-sun2.h in gcc/g++, we see this:

#define CPP_PREDEFINES "-Dmc68000 -Dsun -Dunix"

So "sun2" and "sun3" are not defined.  Someone is wrong.

Bryan.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads