NetBSD Source Changes · @netbsdsrc
24 followers · 4973 posts · Server mstdn.social

sys/arch/mips/include: mips3_pte.h

andvar: change to for MIPS3_4100i 8KB page size build protection.

cvsweb.netbsd.org/bsdweb.cgi/s

#error #define

Last updated 1 year ago

Javier · @jerojasro
5 followers · 71 posts · Server col.social

```
FALSE 0 /* This is the naked Truth */
TRUE 1 /* and this is the Light */
-- mailto.c
```

#define

Last updated 1 year ago

C에서 구조체 멤버의 오프셋 찾는 법

//#define <stddef.h>
offsetof(st, m) \
((size_t)&(((st *)0)->m))

C에도 음수 인덱싱이 존재한다

int __conv_chart[5] = {-7,-5,0,2,3};
int* conv_chart = &__conv_chart[2];

conv_chart[-2]; //-7
conv_chart[1]; //2

C에서 인자로 수식 들어가는거 아시죠?

int num = get_num_carrots();
printf("There %s %d carrot%s.", num == 1? "is" : "are", num, num == 1 ? "" : "s");
// There is 1 carrot
// There are 2 carrots.

#define

Last updated 1 year ago

C에서 구조체 멤버의 오프셋 찾는 법
```C
//#define <stddef.h>
offsetof(st, m) \
((size_t)&(((st *)0)->m))
```

C에도 음수 인덱싱이 존재한다
```C
int __conv_chart[5] = {-7,-5,0,2,3};
int* conv_chart = &__conv_chart[2];

conv_chart[-2]; //-7
conv_chart[1]; //2
```

C에서 인자로 수식 들어가는거 아시죠?
```C
int num = get_num_carrots();
printf("There %s %d carrot%s.", num == 1? "is" : "are", num, num == 1 ? "" : "s");
// There is 1 carrot
// There are 2 carrots.
```

#define

Last updated 1 year ago

Ted (ajax) · @tedajax
208 followers · 102 posts · Server mastodon.gamedev.place

Save your future self (trying to finish a thing) from your past self (trying to be a good boy):

` private public`

#define

Last updated 1 year ago

PulkoMandy · @pulkomandy
368 followers · 3332 posts · Server mastodon.tetaneutral.net

Why does Linux have so few debug traces in its drivers? In Haiku I can usually just enable/uncomment a ` TRACE` and get lots of debug info from any driver I need. In Linux, they fail silently or with a very nondescript error ("spi-nor: init failed: -2" or so) and I have to spend a lot of time adding my own traces in all the possible places that can lead to that specific error code until I find where there is a problem…

#define

Last updated 1 year ago

adafruit · @adafruit
5729 followers · 934 posts · Server mastodon.cloud

VCNL4020 QT breakout board testing 🔧🔅🤝

This light and proximity sensor using the VCNL4020 digikey.com/en/products/detail was designed a few months ago, but we were dragging our feet on writing the library code as its kind of a tedious process. Now, with our new BFF ChatGPT4, we can crank through a library with minimal typing. Of course, we check each function and as it is written - sometimes typos and misunderstandings come through.

#define

Last updated 1 year ago

George Laskowsky · @glaskows
111 followers · 447 posts · Server mastodon.gamedev.place

@Moondog Seems good for me, a byte is a full turn. Maybe you can create a bunch of if you need easier values to work with.

Funny enough I am creating a small engine and I use 16b for angles, where 10b are the fractional part of one turn.

#define

Last updated 1 year ago

Giles Goat · @gilesgoat
302 followers · 1845 posts · Server toot.wales

I run "in debug mode" and I see across hundreds of messages something "flying around" ( one of my "internal errors" ) saying "THAT FEATURE IS DISABLED" .. Disabled ?? WTF YOU MEAN DISABLED !! .. go to look around and find .. // comment this to disable ... // ENABLE_THAT_FEATURE 1 .. I disabled it to debug what I was debugging I COMPLETELY FORGOT ( and NOT written down in notes ) that I did .. .. *BANG* *BANG* *BANG* *BANG* ( head on the desk ) ..

#define

Last updated 1 year ago

GateLinker · @gatelinker
15 followers · 84 posts · Server fosstodon.org

@daniel
😁 Well, when I saw things like:

TRY try {
CATCH } catch(...) {
CATCH_END }

nothing could surprise me anymore.
I'm just curious what other kind of language they wanted to simulate.

#define

Last updated 1 year ago

Mohamed Al-Hajamy 💾 · @MutedTrampet
174 followers · 1393 posts · Server dragonscave.space

@jaybird110127 @datajake1999 Yeah. First, modify ph_drwt01.c. Search for HIGHEST_F0, and change that to something like 60001. 6000 is the frequency, I think 1 is the multiplier. Then modify LOWEST_F0, replacing 500 with something like 10. This appears twice, once for mainline and again for NWS builds. If you want it to affect the mainline builds, go to Line 2332 and replace the values there. Next, to allow the ap command to use the new range, go to ph_defi.c, and replace 50, 350, /* AP */ with the new range, something like 1, 6000.

#define

Last updated 1 year ago

The Last Psion | Alex · @thelastpsion
364 followers · 922 posts · Server bitbang.social

Oh bloody hell, LOADS of these header files don't have ! Why have the line there if you're not going to check for it?!

#define #ifndef

Last updated 1 year ago

an 3vil ekccentr1k posting Ls · @ec670
114 followers · 8611 posts · Server pawoo.net

@jeffcliff

How would you ?

Surface level definitions don’t quite do it for me. I wouldn’t say that religion is a belief in the supernatural, because is a thing. I wouldn’t say that religion is a belief in God, because is a thing. I wouldn’t say that religion is a matter of obedience to inspired law, because is a thing.

#satanism #buddhism #zen #judaism #secular #religion #define

Last updated 1 year ago

zwarich · @zwarich
173 followers · 320 posts · Server hachyderm.io

@regehr @DRMacIver Why comparison if it’s shorter than ‘comparison’? 🤔

#define

Last updated 1 year ago

Wolf480pl · @wolf480pl
1098 followers · 35871 posts · Server mstdn.io

@nytpu how about sth like this once in some header

_WINDLL
DLLEXPORT __declspec(dllexport)

DLLEXPORT

And then you just

DLLEXPORT
int
eventHandler(...)

#ifdef #define #else #endif

Last updated 1 year ago

Steve Canon · @steve
1472 followers · 2665 posts · Server discuss.systems

@mbr FP_NAUGHTY_OPTIONS

#define

Last updated 1 year ago

coolbutuseless · @coolbutuseless
384 followers · 1034 posts · Server fosstodon.org

@jonocarroll @brodriguesco oh. I don't

R_NO_REMAP

which means I get access to the shorter aliases i.e. without "Rf_" prefix.

#define

Last updated 1 year ago

Nils Goroll · @slink
44 followers · 393 posts · Server fosstodon.org

@walkerb Reminded me of this:

FlexeLint for C/C++ (Unix) Vers. 9.00L, Copyright Gimpel Software 1985-2014
...
A 1l
t.c 3 Warning 620: Suspicious constant (L or one?)

Flexelint (I think it is no longer sold) is maybe the only closed source tool I would recommed:

en.wikipedia.org/wiki/PC-Lint

#define

Last updated 1 year ago

Esme Povirk · @madewokherd
-1 followers · 616 posts · Server computerfairi.es

win32: ERROR 0
also win32: NOERROR 0

#define

Last updated 1 year ago

Nona Rose · @nona80_swanette
415 followers · 2696 posts · Server mastodon.au

Midnight thoughts on :

How do we success? For some it will be achieving a certain thing they’ve been working towards for a long time. For others it will be something as seemingly simple as getting out of bed.

Why is success such a hard thing to define? Because it is to an and to a . There are no hard and fast rules definitively stating what success is and how to achieve it.

We don’t have any right to others based on their success or lack thereof if we are using our own values as the metric against which someone else is being judged. We can admire their . We can encourage their . We can empathise with them in their . But we do not get to say what is or what isn’t a success because of how we regard it in our own lives.

Maybe success was getting to the end of this toot. Maybe it was finding 5 minutes to scroll on the socials. Maybe it was waking up in the first place.

#success #define #unique #individual #situation #judge #achievements #efforts #hardships #defineyourownsuccess

Last updated 1 year ago