Commit 8e124197 authored by Robert Sprowson's avatar Robert Sprowson
Browse files

Correction to resources path

Remove hardwired path element, use Module_Title instead.
Delete (already disabled) TinyStubs support.
Delete support for old CMHG.

Version 0.97. Tagged as 'HTTP-0_97'
parent fd0504d7
/* (0.96)
/* (0.97)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.96
#define Module_MajorVersion_CMHG 0.97
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 12 May 2018
#define Module_Date_CMHG 17 May 2018
#define Module_MajorVersion "0.96"
#define Module_Version 96
#define Module_MajorVersion "0.97"
#define Module_Version 97
#define Module_MinorVersion ""
#define Module_Date "12 May 2018"
#define Module_Date "17 May 2018"
#define Module_ApplicationDate "12-May-18"
#define Module_ApplicationDate "17-May-18"
#define Module_ComponentName "HTTP"
#define Module_ComponentPath "castle/RiscOS/Sources/Networking/Fetchers/HTTP"
#define Module_FullVersion "0.96"
#define Module_HelpVersion "0.96 (12 May 2018)"
#define Module_LibraryVersionInfo "0:96"
#define Module_FullVersion "0.97"
#define Module_HelpVersion "0.97 (17 May 2018)"
#define Module_LibraryVersionInfo "0:97"
......@@ -38,27 +38,6 @@
volatile static int callback_pending_flag = 0;
#if CMHG_VERSION < 516
#define CMHG_CONST
#else
#define CMHG_CONST const
#endif
/* TinySupport SWIs. This does not work if any library static data
* is used within the module. This means errno (__errno) and __ctype
* (as used by any macro call to is.... functions) If you re-enable
* this SWI call, this module will fail to work at all.
*/
#define NO_TINYSTUBS
#ifdef ROM
#ifndef NO_TINYSTUBS
static _kernel_oserror *__ROM;
#define TinySupport_Share (0x82c43)
#define TinySupport_Die (0x82c41)
#endif
#endif
#define NO_SUCH_SWI (0x1E6)
#define URL_PROTOCOL_REGISTER (0x83e20)
......@@ -139,7 +118,7 @@ static _kernel_oserror *try_to_register(void)
if (!registered_http) {
e = _swix(URL_PROTOCOL_REGISTER, _INR(0,4), 0, HTTP_00, "http:",
Module_VersionNumber, Module_Help " Acorn 1997-8 (Built: " Module_Date ")");
Module_VersionNumber, Module_Help " Acorn 1997 (Built: " Module_Date ")");
if (e != NULL) return e;
registered_http = 1;
}
......@@ -194,19 +173,13 @@ static _kernel_oserror *register_with_url(void)
/*************************************************************/
/* Start up and register ourselves with the URL module */
/*************************************************************/
_kernel_oserror *module_init(CMHG_CONST char *cmd_tail, int podule_base, void *pw)
_kernel_oserror *module_init(const char *cmd_tail, int podule_base, void *pw)
{
_kernel_oserror *e;
(void) podule_base;
(void) cmd_tail;
#ifdef ROM
#ifndef NO_TINYSTUBS
__ROM = _swix(TinySupport_Share, _IN(0), pw);
#endif
#endif
registered_http = 0;
registered_https = 0;
module_check_os_version();
......@@ -227,7 +200,7 @@ _kernel_oserror *module_init(CMHG_CONST char *cmd_tail, int podule_base, void *p
e = messages_file_open(Module_Title ":Messages");
}
else {
e = messages_file_open("Resources:$.Resources.URL." "HTTP" ".Messages");
e = messages_file_open("Resources:$.Resources.URL." Module_Title ".Messages");
}
if (e == NULL) {
callback_pending_flag = 0;
......@@ -327,12 +300,6 @@ _kernel_oserror *module_kill(int fatal, int podule, void *pw)
(void) try_to_deregister();
#ifdef ROM
#ifndef NO_TINYSTUBS
if(!__ROM) _swix(TinySupport_Die, 0);
#endif
#endif
return NULL;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment