9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Alexandr Babic" <alexandr@babicovi.cz>
To: 9fans <9fans@9fans.net>
Subject: Re[2]: [9fans] Strange 'uintptr' behavior
Date: Tue, 25 Jan 2022 09:02:44 +0100	[thread overview]
Message-ID: <2b46b162e3728ed0cb470ce58259d218@babicovi.cz> (raw)
In-Reply-To: <CAGNd-2PGJ6UbGkua_RGCkWif2ko+-asAjWciFp89zc5v=Cqk6Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]


i've tried it again and i can compile both versions 1) and 2) without error at 9front distro of plan9.
do you use original 4th release of plan9 or 9front distro?

download link of 9front iso: http://9front.org/iso/9front-8593.acc504c319a4b4188479cfa602e40cb6851c0528.amd64.iso.gz

1)

#include <u.h>
#include <libc.h>

uintptr frst[] = {nil, nil, nil, nil, nil};
uintptr scnd[] = {nil, nil, frst, &frst[1]};

void main(void) {
exits(nil);
}

2)
#include <u.h>
#include <libc.h>

void* frst[] = {nil, nil, nil, nil, nil};
void* scnd[] = {nil, nil, frst, &frst[1]};

void main(void) {
exits(nil);
}
 Permalink


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb5fe0dc43447ab2c-Mb9de3c2d80c775bfb636982d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 904 bytes --]

  reply	other threads:[~2022-01-25  8:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 16:50 Pavel Klinkovský
2022-01-24 19:33 ` Alexandr Babic
2022-01-24 19:49   ` Pavel Klinkovský
2022-01-24 19:54     ` Alexandr Babic
2022-01-24 22:26 ` Skip Tavakkolian
2022-01-25  7:48   ` Pavel Klinkovský
2022-01-25  8:02     ` Alexandr Babic [this message]
2022-01-25  8:26       ` Re[2]: " Alex Musolino
2022-01-25  8:33         ` Pavel Klinkovský

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b46b162e3728ed0cb470ce58259d218@babicovi.cz \
    --to=alexandr@babicovi.cz \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).