🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2616

Re: Need C or C++ Embedded Interpreter

#2616
From: Jerry Coffin
Date: Thu, 18 Apr 1996 12:36
18 lines
1458 bytes
In article <4l1id6$pva@solutions.solon.com>, 
schwarz@mips.complang.tuwien.ac.at says...
> A difficulty I see with an extendible printf is devising a mechanism
> so that unrelated modules can cooperate on extensions.  

[ ... ] 

I've thought of this - it might be nice to include a function to attempt to 
allocate an unused character, though this of course prevents you from using 
literals for the conversion strings, which is certainly less convenient.  I 
believe Peter also mentioned a flag to find out whether a flag is presently in 
use.  However, in the case of a multithreaded system, it might be better to 
(perhaps additionally) have a flag to use set the format for a particular 
character, but fail if it's already in use.  (This should make checking 
whether a flag is in use, and allocating it if not atomic, preventing problems 
with race conditions that can arise when the two are separate operations.)
    Later,
    Jerry.
Technical Details
Message-ID: <4l5d10$21k@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4ku413$57i@solutions.solon.com><4l1id6$pva@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: jcoffin@rmii.com (Jerry Coffin)
Newsgroups: comp.lang.c.moderated
Subject: Re: Need C or C++ Embedded Interpreter
Date: 18 Apr 1996 07:36:48 -0500
Organization: TAEUS
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4l5d10$21k@solutions.solon.com>
References: <4ku413$57i@solutions.solon.com><4l1id6$pva@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: MicroPlanet News32 v1.00 Beta Build 302