Hi!

----

Attached (as "astksh20130422_enum_cleanup001.diff.gz") is a small
cleanup patch for src/cmd/ksh93/bltins/enum.c ...

Notes:
- Issues with "clang" and gcc 4.7 fixed
- Use of booleans converted to use C99 |bool| or the AST header emulation
- |struct Enum|'s member |iflag| now follows directly |hdr| so that it
it replaces the currently invisible padding/alignment bytes on some
platforms
- enum can now have more than 2^15 entries (this fixes
http://lists.research.att.com/pipermail/ast-developers/2013q2/002506.html).
Tested up to 2^24 entries. Size of |struct Enum| is only margianlly
affected (2 bytes more space used) since previously the struct used a
couple of padding/alignment bytes. At least on SPARC and IA64 the
alignment is now without padding bytes.
- Fixed typo in builtin manpage

Comments/feedback/rants/etc. welcome...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)

Attachment: astksh20130422_enum_cleanup001.diff.gz
Description: GNU Zip compressed data

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to