πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #2239

Re: is wraper on realloc good idea? maybe more wrappers?

#2239
From: fir
Date: Sat, 05 Dec 2026 08:40
56 lines
3744 bytes
fir pisze:
> Tristan Wibberley pisze:
>> On 29/11/2026 14:57, fir wrote:
>>> fir pisze:
>>>> never used it but generally wrappers on some standard functions
>>>> probably are good idea, or not?
>>>
>>> i also think if not tu built in system for localizing runtime errors
>>>
>>> i rarely have runtime errors but when something appears its unplesant
>>> the you need to do such weird debug thing to localize crash
>>>
>>> sulution would be doing some simple list where i would log some
>>> function tags in array in ram then probably i could show this is system/
>>> signal/crash handler i guess
>>
>>
>> Have you considered always running under a debugger with crash handling
>> there? Depending on your runtime environment it might provide the best
>> language for the job.
>>
>> For example, a main process that forks a job processor and gdb,
>> attaching gdb to the job processor to react to process exits.
>>
>> Why make life hard by trying to do it all in C with flawlessness on 
>> day one?
>>
> 
> i used to use dolly a bit but i really have not muach crashes in my 
> coding career not so much to get used to it.. in last years im like when
> writing this 50k line rasterizer /gameΒ  i got cras once
> 
> before when writing some other 2d game prototype for few weeks
> i got also crash once afair (or maybe even none..though i remember some 
> like year or two ago i got this crash ..and it was related to -O3 or 
> something like that and not aligning simds on stack) so ypu see im liek
> having less crashes than once a year
> 
> overally i must say i got not much amount of serious errors when coding
> ..also you may include not only crashes but "errors that needs 
> localisation" as very rare - just as i said maybe once a year type error
> (though i not code whole year - if i would code i coud maybe have 2 on a 
> year?)


much more annoying is what i said
1 code jumping (that i need to travel in code to other file and position)
2 code localisation (sometimes i dont  know where something is - even 
worse than jumping)
3 declarations (totally artifical crap that i need to put things in 
order to be seen - thus think where - or add declarations (total crap)

this is day to day pain

though probably the list could be longer but by less practically bad 
things probably
Technical Details
Message-ID: <11f0im1$2jct2$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11eh538$3fet7$1@dont-email.me> <11eheha$3j5qd$1@dont-email.me> <11f0h5c$2i7jn$4@dont-email.me> <11f0i7p$2j7hh$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: is wraper on realloc good idea? maybe more wrappers?
Date: Sat, 5 Dec 2026 09:40:32 +0100
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <11f0im1$2jct2$1@dont-email.me>
References: <11eh538$3fet7$1@dont-email.me> <11eheha$3j5qd$1@dont-email.me>
 <11f0h5c$2i7jn$4@dont-email.me> <11f0i7p$2j7hh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 05 Dec 2026 08:40:34 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2732962"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18xvPDJ0hCfZ1PSntagfAlge8ZmAHDmy9U="; posting-host="342f4926edf4bd28a33754ba53b7ff2f"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:AfS/kskjzbZDW1Kzz6qKicSIiY4= sha256:Yv5oyACicAV4ITHJXj/A6lQFsxcEfKiKPxqoioluy+U=
	sha1:SpXUNjta4Ci3XcPS15H0SeHgo44= sha256:HaWN6t5HM56TWi2WGtyW3+NnmhRpMGAmoxds7d1GyBo=
In-Reply-To: <11f0i7p$2j7hh$1@dont-email.me>