[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug default/25392] New: Non-literals in integer widths
From: |
john at cellform dot com |
Subject: |
[Bug default/25392] New: Non-literals in integer widths |
Date: |
Wed, 15 Jan 2020 18:00:58 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25392
Bug ID: 25392
Summary: Non-literals in integer widths
Product: poke
Version: unspecified
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: default
Assignee: unassigned at sourceware dot org
Reporter: john at cellform dot com
CC: poke-devel at nongnu dot org
Target Milestone: ---
Some formats (notably dvi) have records containing an integral field, where the
width of that field is determined by the record identifier.
It would be most convenient to be able represent this for example as:
deftype seti = struct
{
int<8> opcode: opcode >= 128 && opcode < 131;
int<(opcode - 128) * 8> character;
};
Other ways to represent this are possible, but they all require either a lot
more struct definitions or a lot of unions and conditionals.
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug default/25392] New: Non-literals in integer widths,
john at cellform dot com <=