shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

268
active users

#define

4 posts4 participants0 posts today
divVerent<p><span class="h-card" translate="no"><a href="https://infosec.exchange/@malwaretech" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>malwaretech</span></a></span> Reminds me of the time when I learned to develop in C++ using the Allegro library for game programming.</p><p>Because of its Amiga roots and not daring to break existing code, all the functions with "palette" in the name had a `<a href="https://social.vivaldi.net/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a>`'d alias with the spelling `pallete`.</p>
Freya (it/its)𒀭𒈹𒍠𒊩<p>Solaris you're cursed. We've had to add</p><p><a href="https://chaosfem.tw/tags/ifndef" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ifndef</span></a> NI_MAXHOST<br><a href="https://chaosfem.tw/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> NI_MAXHOST 1025 // As per POSIX recommendation<br><a href="https://chaosfem.tw/tags/endif" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>endif</span></a></p><p><a href="https://chaosfem.tw/tags/ifndef" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ifndef</span></a> NI_MAXSERV<br><a href="https://chaosfem.tw/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> NI_MAXSERV 32 // As per POSIX recommendation<br><a href="https://chaosfem.tw/tags/endif" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>endif</span></a></p><p>To like 6 C source files to get pgsql to build</p>
Joe Groff<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>whitequark</span></a></span> thing is, i think you could actually make this work</p><p>```<br>enum class old_t { OLD };</p><p><a href="https://f.duriansoftware.com/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> old new (old_t::OLD)</p><p>class Oldable {<br> static void *operator new(size_t size, align_val_t align, old_t);<br>}</p><p>Oldable *foo() { return old Oldable; }<br>```</p>
SpaceLifeForm<p><span class="h-card" translate="no"><a href="https://newsie.social/@TheConversationUS" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>TheConversationUS</span></a></span> </p><p><a href="https://infosec.exchange/tags/Define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Define</span></a> SMALLTOWN ANYTOWN</p>
Jonathan Grynspan<p>```<br>/*<br> * This has been tuned to generate reasonable code on the vax using pcc.<br> */<br><a href="https://hachyderm.io/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> __sputc(c, p)<br>```</p><p>sorry what</p>
argv minus one<p><a href="https://mastodon.sdf.org/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> struct union</p>
gloriouscow<p>I'm going to start adding 8086/V30 support. </p><p>The easiest thing to do would be to have a <a href="https://oldbytes.space/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> for it, but that would require reuploading the sketch every time you wanted to switch CPUs. I don't like that, so I think I should auto-detect what CPU you have.</p>
Changelog<p>🚀 It's Changelog &amp; Friends!</p><p>Welcome back to <a href="https://changelog.social/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a>, our game of obscure jargon, fake definitions, and expert tomfoolery. We've gathered some awesome friends, new and old, to see who has the best vocabulary and who can trick the everyone else into thinking that they do.</p><p>✨ <a href="https://changelog.am/93" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">changelog.am/93</span><span class="invisible"></span></a> <a href="https://changelog.social/tags/podcast" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>podcast</span></a></p>
SpaceLifeForm<p><span class="h-card" translate="no"><a href="https://masto.ai/@GhostOnTheHalfShell" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>GhostOnTheHalfShell</span></a></span> </p><p>The models suck because they give too much weight to old data.</p><p><a href="https://infosec.exchange/tags/Define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Define</span></a> OLDDATA OVER2YEARS </p><p><a href="https://infosec.exchange/tags/WX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>WX</span></a> <a href="https://infosec.exchange/tags/ClimateChange" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ClimateChange</span></a> <a href="https://infosec.exchange/tags/Models" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Models</span></a></p>
arclightWorkity Work: Precision Games
Andy Sherwood<p><span class="h-card" translate="no"><a href="https://mastodon.social/@caseyliss" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>caseyliss</span></a></span> Back in the day, I was working on some CPP code and had this bug that was killing me. After several hours, I noticed this buried in one of .h files:</p><p><a href="https://mastodon.social/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> TRUE 0</p><p>😖</p>
xchangeee<p><span class="h-card" translate="no"><a href="https://mystical.garden/@janamarie" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>janamarie</span></a></span></p><p> <a href="https://chaos.social/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> _LINUX_ 1</p>
ZXGuesser<p><span class="h-card" translate="no"><a href="https://retrochat.online/@jimblimey" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>jimblimey</span></a></span> looking at the code I included a <a href="https://oldbytes.space/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> to disable them, in a block of stuff marked<br>/* compile time options to reduce toolkit size */</p><p>I think that's about the size of the compiled code rather than memory used by the features.</p>
Sean Murthy<p><span class="h-card" translate="no"><a href="https://infosec.exchange/@mttaggart" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>mttaggart</span></a></span> PR for your consideration:</p><p>```<br>+ <a href="https://hachyderm.io/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> I int</p><p>- int stanbul;<br>+ I stanbul;<br>```</p>
Dave Hayden 🏊<p>Something I should have done a long time ago:</p><p> <a href="https://pdx.social/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> streq(a,b) (strcmp((a),(b))==0)</p><p>I've been writing C code for a few decades now and I still screw up strcmp all the time. I wonder what the total cost of all the bugs that API decision caused adds up to</p>
NuclearOatmeal💥:BOWLSOUP_PNG:<p>In today's adventures of "Hating C because it deserves hatred", I try to compile an old repository at <a href="https://github.com/TinyMUSH/Historical-TinyMUSH" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/TinyMUSH/Historical</span><span class="invisible">-TinyMUSH</span></a>. It failed.</p><p>I should have realized something was up when I got a lot of warnings at one point due to some issue regarding `inline function 'xyz' declared but never defined`. Not a goodness, but I'd circle back as needed.</p><p>Finally get to the `gcc-g -o` point.</p><p>Boom. `/opt/Historical-TinyMUSH/src/netcommon.c:937: undefined reference to `queue_rawstring'` and others. Thing is, there _is_ an `INLINE void queue_rawstring(d, s)` right there in line 382, and the autoconf.h has it right there with `<a href="https://beige.party/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> INLINE inline`, so... This code gets to be hated.</p><p>Hate Hate Hate.</p><p>So how's your day going?</p>
Raven Luni<p>When you add macros to improve readability and end up with this:</p><p><a href="https://furry.engineer/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> varalloc(s,v) ((VarStack_Push (s, NULL, sizeof (*v))) ? (typeof (v)) ((char *) s + s-&gt;top - sizeof (*v)) : NULL)</p><p>(its for mapping arena memory to native pointers)</p><p><a href="https://furry.engineer/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://furry.engineer/tags/c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>c</span></a></p>
SpaceLifeForm<p><a href="https://infosec.exchange/tags/Define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Define</span></a> King "constitutional dementia"</p><p>Watch Lawrence while you can.</p><p><a href="https://www.youtube.com/watch?v=ylxcZNrbfJE" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">youtube.com/watch?v=ylxcZNrbfJE</span><span class="invisible"></span></a></p>
Félix<p><span class="h-card" translate="no"><a href="https://pony.social/@thephd" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>thephd</span></a></span><br>This works to define rsize_t:</p><p><a href="https://tech.lgbt/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> __STDC_WANT_LIB_EXT1__ 1<br><a href="https://tech.lgbt/tags/include" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>include</span></a> &lt;string.h&gt;</p><p>use “xcrun clang -dD -E file.c”, do the same thing with the broken configuration, see where things go wrong. If you do find there’s a problem with the macOS SDK, that sounds fixable</p>
James Chip<p>*stares at code I just found*</p><p>the code:</p><p><a href="https://merveilles.town/tags/define" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>define</span></a> CFG01 const struct \<br>{ USB_CFG_DSC cd01; \<br> USB_INTF_DSC i00a00; \<br> USB_HID_DSC hid_i00a00; \<br> USB_EP_DSC ep01i_i00a00; \<br> USB_EP_DSC ep01o_i00a00; \<br>} cfg01</p><p>extern CFG01;</p>