[Coco] stddefs.h (maybe???)
Bill Pierce
ooogalapasooo at aol.com
Sun Mar 17 09:38:44 EDT 2013
Thanks Willard,
That's the closest thing so far. I'll try it and see if it works.
I have run across a lot of code in all the various archives where people upload their sources and forget to upload any "special" libraries or defs they've built. The favorite seems to be "mydefs" and they are not all the same.
Bill P
Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Bill Pierce
ooogalapasooo at aol.com
-----Original Message-----
From: Willard Goosey <goosey at virgo.sdc.org>
To: coco <coco at maltedmedia.com>
Sent: Sun, Mar 17, 2013 12:30 am
Subject: [Coco] stddefs.h (maybe???)
Since the header file Bill was looking for had a definition for loop
this may be the header he needs. I'm not sure where I got it... I
think I may have renamed it (its contents, frankly, offend me and
there's nothing standard about it. I would not have left it named
stddefs.h if it was named that.)
----------begin-----------
/*
Definitions for the "C" preprocessor
From an article by Olin and Heath, BYTE, May 86
Changes and additions by Mark Griffith
/*
/* Logical operators */
#define AND && /* logical AND */
#define OR || /* logical OR */
#define NOT ! /* logical NOT */
#define EQ == /* logical EQual to */
#define NE != /* logical Not Equal to */
#define LT < /* logical Less Than */
#define GT > /* logical Greater Than */
#define LE < = /* logical Less than or Equal to */
#define GE > = /* logical Greater than or Equal to */
/* Block control structures */
#define IF(e) { if (e)
#define THEN {
#define ELSEIF(e) } else if (e)
#define ELSE } else {
#define ENDIF ; } }
#define CASE(e) { switch (e) {
#define CASEOF(e) case e : {
#define DEFCASE default : {
#define ENDCOF } break ;
#define ENDCASE } }
#define WHILE(e) { while (e)
#define DO {
#define ENDWHILE ; } }
#define FOR(e) { for (e) {
#define NEXT ; } }
#define BEGIN { /* or START */
#define END } /* or FINISH */
/* This replaces the do...while loop in "C" */
#define REPEAT { do {
#define UNTIL(e) } while (e); }
/* This replaces the "loop forever" construct */
#define LOOP for (;;) {
#define ENDLOOP }
--------end-------
yuck yuck yuck way to make C into a bastard combination of FORTRAN and
Pascal. :-( But it may be what you're looking for.
Willard
--
Willard Goosey goosey at sdc.org
Socorro, New Mexico, USA
I search my heart and find Cimmeria, land of Darkness and the Night.
-- R.E. Howard
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list