#defines — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #defines, aggregated by home.social.
-
Our next #JCON2026 session is live: 'The Reputation Formula: #Turbocharge Your #Developer Career' with Bruno Souza
#Reputation is what people believe about you. And it is your reputation that #defines the projects you work at, …
Grab your coffee and hit play: https://youtu.be/q9CEpXgUjvY
-
sys/arch/sgimips/hpc: hpcreg.h
rumble: Add missing DSP #defines for haud(4).
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/hpc/hpcreg.h.diff?r1=1.22&r2=1.23
-
@kevingranade i skipped the windows override injection stuff and just built the files alongside and used #defines to call the mi_malloc instead, worked great first try!
-
@tedmielczarek Unfortunately, Windows.h #defines "near" and "far", and X11.h #defines "Success" and "Status", and both these files will eventually get indirectly included into every file.
-
sys/dev/mii: mcommphy.c
skrll: Slight re-arrangement of #defines. NFCI.
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/mii/mcommphy.c.diff?r1=1.4&r2=1.5
-
why did i think that i just needed need a couple of #defines in order to use the #RStats Matrix package's #cholmod headers https://github.com/cran/Matrix/blob/master/inst/include/Matrix/cholmod.h (and Matrix.so) to compile the bcftools PGS plugin https://github.com/freeseek/score/blob/master/pgs.c ? It worked on gcc, but clang (with defaults) was much less forgiving :D
#RStats gurus : is their a #RStats package that just provides cholmod and nothing else ? -
@ljs @amonakov @pkhuong @thesamesam OK but let's go back to the more verbose way.
#define __alloc_pages_node(...) alloc_hooks(__alloc_pages_node(__VA_ARGS__))
#define __alloc_pages_node_noprof (__alloc_pages_node)Would that work then? Yes it's more (up to twice) #defines than we have now, but it wouldn't require us to rename the underlying functions to _noprof (and having see those _noprof symbols in perf, backtraces etc.).
-
"Hey Bjarne, why don't we add this object oriented stuff to C? Classes are basically structs, right?
"Well, the core of object orientation is the use of immutable messages, I don't see how that would work in C."
"Just ignore that part then. Two or three #defines and we should be done."
"I guess we need another bottle of wine."
-
-
I'm reminded of years ago when I discovered that the Illumos driver for 10G-T Intel Ethernet chipsets had a 'wait' operation that was implemented with a busy-wait, and used it for multi-millisecond waits through a chain of #defines
(The original kernel busy-wait was intended for microsecond waits, then got resused by the driver because hey, it was there, scaling by 1000 is fine, right?)
In re: https://mastodon.social/@whitequark/114302003640839800
-
A fabulous amount of source notes pop up
{quote
scsi_all.h started out life as a work by Julian Elischer to add SCSI
support to CMU Mach 2.5. It was 373 lines. Julian ported this to 386BSD,
included in the 386BSD patch kit and incorported into FreeBSD at its
creation. Justin used this file when writing CAM, and imported it with
the initial CAM import, but only 30% (100 lines) of the original
remained. Justin moved from bitfields to bytes in structures, dropped
the complex unions, and renamed many structures to have their length
appended. Only about 30 structure names and about 40 #defines remained
from the original. The define names were taken directly from the SCSI
standard with spaces replaced by '_', so had no creativity. Apart from
the license comment, there were no comments retained (all the comments
in the CAM import were written by Justin and Ken). Even at that time,
Justin and Ken could have put their copyrights and names and moved to an
acknowledgement of Julian.In the almost 30 years since that original import, this file has grown
to 4500 lines. Kenneth Merry, Alexander Motin and Justin Gibbs write
85% of the file's lines, if mechanical commits are omitted. Other
contributors contributed less than %5 each of the file.Replace the original license (which lacked a copyright even and has been
criticized as ambiguous) with FreeBSD's standard 2-clause license. Add
copyrights for Justin, Ken and Alexander, with the date ranges they
contributed to the file. Add a note about the origin of the file to
acknowledge Julian's original work upon which all this was built, though
it's become a ship of Theseus in the mean time, built and rebuild many
times.On an absolute scale, there's less than 1% of the current file with
lines from the original, and those are named after the names in the SCSI
standards and likely wouldn't qualify for copyright protection.Sponsored by: Netflix
Reviewed by: mav, ken
Differential Revision: reviews.freebsd.org/D49016End Quote}
^ZHow wonderful to have learned this now
#bash #csh #ksh #sh #freeBSD #SCSI #bhyve #jails #ZFS #programming #POSIX
https://codeberg.org/FreeBSD/freebsd-src/commit/1016b3c344350fa5968f16852e5e4e388c51d817
-
Baking does lots of stuff - light maps, visibility queries, SH probes, etc.
This built system runs on top of a very simple distributed processing system - you just tell the system "run this linux command somewhere" and it just does it. No incredibuild here.
They use ubershaders with #defines for each feature.
They wrote their own GUI shader editor for artists. Programmers would "export" feature flags and settings, and an artist could play around with them. They hooked it up to Maya.
4/10
-
Trump’s #TransBan #Defines Everyone as #Female — But That’s Not the Problem.
The #president’s #executiveorder is an attempt to #rollback #decades of #progress. #LGBTQ+ #advocates intend to #fightback
-
"But but .. main.h will contain the #defines for all the named pins"
then use _ and no spaces @_@ it's not that hard.
https://stackoverflow.com/questions/71175568/can-i-define-gpio-pin-in-header-file-stm32
-
@samloonie I mean, it will flash successfully without even touching the button, and the hash/CRC claims to be correct. But there must be a half-dozen or more partitioning options in the IDE, and various other IDE tools options that appear to duplicate #defines in the code. But I'll look at what's on there now and see if anything is showing up on the serial port finally.
-
@phil_stevens No OTA, just direct USB to the MD motherboard. There doesn't seem to be any serial anything. I could use a simple test program that is least likely to need trickier configurations, but the SDK is full of Tools settings, and it's not clear to me how these interact with the code's own #defines.
-
INTERFACE spits out an .H file with the resource IDs and an .RSH file with the OBJECT and OBSPEC data all helpfully in arrays of C structs. the only problem is the output is for Pure C’s TOS lib and not MiNTlib so I need to include a file that converts the #defines first.
But it means I should be able to whip up a loader that places the OBJECTs in my window’s OBJTREE, converts INTERFACE’s character grid coordinates to pixel grid coordinates, and places the container G_BOX where I want it
-
GLSL-like swizzling in C++20
* without #defines
* using field syntax
* supporting assignment
* without UB (I think) -
@Doomed_Daniel By the way, my favorite variant of X macros is to use a separate .inl file that's parameterized and configured by a bracketed set of #defines by the includers. It often lets you get away with much cleaner syntax.
-
Eclipse Сборка с Помощью ARM GCC Плагинов
В программировании микроконтроллеров часто используют Eclipse с плагинами. Главным образом от незнания языков скриптов сборки (Make, Cmake, Ninjia и т п). В этом тексте я напишут почему способ сборки из Eclipse c ARM плагинами - это тупиковый путь в разработке больших промышленных командных проектов. И как можно частично компенсировать недостатки Eclipse с плагинами.
https://habr.com/ru/articles/794206/
#eclipse #plugins #mcu #ARM #include #defines #пример_того_что_делать_не_стоит #Eclipse_Embedded_CDT
-
After a little bit of fiddling around this morning, I've realised that the classes aren't in the order they come in the external files. In fact, I have no idea how they're ordered. I assume it's something to do with dependencies, but I can't see it.
Like I said, it probably makes no difference - it's just a load of #defines. But I'd like to make it character-perfect at some point.
I have other things to do today, but if I get a chance this evening I'll try using #ctran to compile something.
-
@stuartmarks amusingly a few posts before this in my feed was complaints about namespace pollution from the Xlib.h header having #defines for things like “Status” and “None” due to decisions made nearly 40 years ago, when X was just a fun experiment, not core system API.