lp:paxmirabilis
Main code repository of paxmirabilis
- Get this branch:
- bzr branch lp:paxmirabilis
Branch information
Import details
This branch is an import of the CVS module pax from :ext:_anoncvs@anoncvs.mirbsd.org:/cvs.
Last successful import was .
Recent revisions
- 243. By tg
-
bring in many portability improvements from ../mksh/Build.sh
not everything, and not for ../sleep/Build.sh, as I lack enough spoons
to do that rn and pax in Debian needs an upload, due to Poettering shit - 242. By tg
-
testsuite and consistency fixes
• style consistency
also shellcheck has a marginal point but too many FPs here anyway
• oops, this is not mksh…
• more report
• move some testsuite helpers to xxt-int.c
• move __predict_{true,false} to mbsdcc.h
• don’t __predict_true((vr) >= 0), let the compiler do w/ever
• output layout
• more precise note
• “Hi from” as in mksh/Build.sh at the beginning, for scrollback
• show more information about the environment
endianness (when detectible, common cases incl. PDP) and nil
representation in memory (rotated for little endian for convenience)
• do something to compare expected vs. actually run tests
• fix inconsistent indentation
• add pass tests for mbiCAAlet and a large comment about it
• fix range for mbiCAP*/mbiCAS* tests
• fix range used for mbiCAU*() tests; add comment about missing macros
• overhaul some test helper macros and functions for better checks
• fix mbiSAFECOMPLEMENT test wording; test mbiCAsafe* always(via git)
- 241. By tg
-
advance mbsd{int,cc}.h quite a bit:
• move mksh/sh.h SHIKATANAI macro to mbsdcc.h and test it (bt-normal)
• mirtime: note Issue 8 changes needed
• C++ mbccChkExpr/mbccCEX now work with both OpenWatcom C++ (targetting
Linux/i386), antique G++ and SUNWCC (Sun Studio 12.6), too
• C++ mbccFAMslot now works outside GCC/Clang/MSVC++ (“works”, [1] hah)
• OpenWatcom C: disable warning “Comparison result always 0” during CTA
(downside is that ending a CTA should restore the level, but it lacks
a pop pragma, so we set the level to 4/info)
• for all bitfields, use unsigned int because SUNWcc complains about
nōn-portable bitfields, C89 allows only {,{,un}signed} int anyway
• better consistency checks in mbCTA_END
• -DMBSDINT_H_SMALL_ SYSTEM= 3 handles 64-bit types again but works in a
16-bit environment (OpenWatcom C targetting DOS, where I got the
selftests to work but the whole testsuite won’t fit a segment, or
even multiple at once, we’re going to have to hack that eventually)
• -DMBSDINT_H_WANT_ LONG_IN_ SIZET=0 for 16-bit without size_t ≥ long
• change mbiTYPE_ISF to work in OpenWatcom C++; as that works in CTAs,
mbiCTA_TYPE_{NOT, not}F goes away
• work around MSVC ignoring (unsigned)sizetvar casts for -Wformat by
writing them as (0U + (unsigned)sizetvar) ; their rationale is to
make users switch to %zu ofc but we can’t do that in ancient C
• check bc(1) is usable near testsuite runner beginning
• rename all files to not have more than one dot, for OpenWatcom/DOS
• check the “whether we can build at all” result if it runs unless cross
• also check the split compile and link step works
• check for <float.h> for the testsuite’s system info helper and make
it show float, double and long double info if present
• split tif() from ti(), the latter “probably” fails compilation, in its
int parts, if a type is actually float; tif now uses some bounds checks
against the type-maximum and max-const deferring mbiMASK_BITS (and the
mbiMASK_BITS part of mbiTYPE_UBITS) into a function instead of inline
so the constant folder does not explode (also uses a volatile variable
for the same purpose) but this is just so we can go without configure-
time type checks exclusively in the system info helper
• time_t could be float outside of POSIX land, use tif to info it
(CTAs check other (shown) types to be integral) - 240. By tg
-
integrate latest portmdoc
also fix some things while here and add portmdoc to missing pages
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)