A couple of Questions

Timothy Baldwin tim at reinhouse.freeserve.co.uk
Tue Jul 24 20:23:29 BST 2001


In swi.Wimp there is:

   Message_Prequit       = .Bits: 8,
   Message_PreQuit       = .Bits: 8,  // V6.21 TV

As DefMod stands, on RISC OS 3+, it will ignore the first line,
due to a case insensitive [1] comparison in Lookup().
What is actually intended?

Also in swi.Wimp:

// Generic Wimp Message Header
TYPE Wimp_MessageHeader =
   .Struct
   (
      .Int:   size     "Message size",
      Wimp_T: sender   "Sender of message - set by the Wimp",
      .Int:   my_ref   "My reference - set by the Wimp",
      .Int:   your_ref "Your reference - 0 if not a reply",
      .Bits:  action,
      .Byte:  data ...
   );

Why does Wimp_MessageHeader have a variable size data member?

This is both illogical, and causes difficulties with C++ inheritance.
I intend to improve C++ support.

[1] If you make it case sensitive you will need this patch:

Index: Source/User/oslib/MimeMap.swi
===================================================================
RCS file: /home/tim/cvsroot/rose/oslib/!OSLib/Source/User/oslib/MimeMap.swi,v
retrieving revision 1.1.3.1
retrieving revision 1.2
diff -u -r1.1.3.1 -r1.2
--- Source/User/oslib/MimeMap.swi	22 Jul 2001 14:06:01 -0000	1.1.3.1
+++ Source/User/oslib/MimeMap.swi	22 Jul 2001 20:42:44 -0000	1.2
@@ -92,7 +92,7 @@
       ENTRY
       (  R0 # MimeMap_FormatMIMEType "Translate a MIME type to a textual 
file type name",
          R1 -> .String: mime_type,
-         R2 # MimeMap_FormatFiletypename,
+         R2 # MimeMap_FormatFiletypeName,
          R3 = .Ref .String: file_type_name
    )  ),
 
@@ -121,7 +121,7 @@
       ENTRY
       (  R0 # MimeMap_FormatExtension "Translate a file extension to a 
textual file type name",
          R1 -> .String: extension,
-         R2 # MimeMap_FormatFiletypename,
+         R2 # MimeMap_FormatFiletypeName,
          R3 = .Ref .String: file_type_name
    )  ),
 



More information about the oslib-user mailing list