Free Hero Mesh

Check-in [75e286812e]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Make so that numbers out of range 0 to 31 are ignored for the {bit} macro
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 75e286812e06efc9b2967ecaa65cc648ec99b463
User & Date: user on 2021-05-12 06:24:52
Other Links: manifest | tags
Context
2021-05-13
00:17
Implement a {make} macro for making synthetic tokens. check-in: 6a9faa4fb1 user: user tags: trunk
2021-05-12
06:24
Make so that numbers out of range 0 to 31 are ignored for the {bit} macro check-in: 75e286812e user: user tags: trunk
2021-05-11
19:16
Add the -f switch as a shortcut to only flush the user cache check-in: 09a2d2f5c8 user: user tags: trunk
Changes

Modified class.c from [5da0f9cd30] to [04c44003dc].

828
829
830
831
832
833
834
835

836
837
838
839
840
841
842
828
829
830
831
832
833
834

835
836
837
838
839
840
841
842







-
+







          ReturnToken(TF_NAME|TF_ABNORMAL,OP_STRING);
        case MAC_BIT:
          n=0;
          for(;;) {
            nxttok();
            if(tokent==TF_MACRO+TF_CLOSE) break;
            if(tokent!=TF_INT) ParseError("Number expected\n");
            n|=1<<tokenv;
            if(tokenv<32) n|=1<<tokenv;
          }
          tokent=TF_INT;
          tokenv=n;
          break;
        case MAC_VERSION:
          nxttok1();
          if(tokent!=TF_INT) ParseError("Number expected\n");

Modified class.doc from [c15c88827f] to [d38896fcbc].

139
140
141
142
143
144
145
146


147
148
149
150
151
152
153
139
140
141
142
143
144
145

146
147
148
149
150
151
152
153
154







-
+
+







  replacing the definition.

{band <numbers...>}
  Bitwise AND. The result is -1 if no arguments are specified.

{bit <numbers...>}
  The numbers are in range 0 to 31 and denote bit positions; the result is
  a number with only those bits set.
  a number with only those bits set. If there are any numbers out of range
  0 to 31 then the numbers out of range are ignored.

{bnot <number>}
  Bitwise complement.

{bor <numbers...>}
  Bitwise OR. The result is 0 if no arguments are specified.