Commit 98ddc415 authored by ROOL's avatar ROOL 🤖

Remove unused error message

Admin:
  Found during sweep of $Options variables for User Guide.

Version 3.23. Tagged as 'Help2-3_23'
parent cc3ca9d8
......@@ -28,8 +28,7 @@ HelpI14:\TICONISE icon.|M\Siconise the \w.
Error1:Bad inversion
Error2:Illegal character
Error3:Bad interactive option
Error4:in Help$Options
Error5:Insufficient memory to display help message
Error4:Insufficient memory to display help message
Fatal1:Bad substitution in message
Fatal2:Help has suffered a fatal error and must exit immediately
......
/* (3.22)
/* (3.23)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 3.22
#define Module_MajorVersion_CMHG 3.23
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 23 Jul 2014
#define Module_Date_CMHG 30 Oct 2016
#define Module_MajorVersion "3.22"
#define Module_Version 322
#define Module_MajorVersion "3.23"
#define Module_Version 323
#define Module_MinorVersion ""
#define Module_Date "23 Jul 2014"
#define Module_Date "30 Oct 2016"
#define Module_ApplicationDate "23-Jul-14"
#define Module_ApplicationDate "30-Oct-16"
#define Module_ComponentName "Help2"
#define Module_ComponentPath "castle/RiscOS/Sources/Apps/Help2"
#define Module_FullVersion "3.22"
#define Module_HelpVersion "3.22 (23 Jul 2014)"
#define Module_LibraryVersionInfo "3:22"
#define Module_FullVersion "3.23"
#define Module_HelpVersion "3.23 (30 Oct 2016)"
#define Module_LibraryVersionInfo "3:23"
......@@ -211,7 +211,7 @@ static _kernel_oserror* update_help_box(char* string, int length)
int x, y, num_strings, lines, i, width_os, height_os;
int width, bullet_size;
if (length>1024) return common_error(messages_lookup("Error5"));
if (length>1024) return common_error(messages_lookup("Error4"));
strcpy(help_box_message, string);
reply_x = request_x;
......@@ -228,14 +228,14 @@ static _kernel_oserror* update_help_box(char* string, int length)
/* Get memory to store expanded help message */
expanded_string = malloc(1024);
buffer = malloc(1024);
if ((!expanded_string) || (!buffer)) return common_error(messages_lookup("Error5"));
if ((!expanded_string) || (!buffer)) return common_error(messages_lookup("Error4"));
/* Break the help message down into lines which will be displayed in the box */
num_strings = translate_help_string(help_box_message, expanded_string, length);
width = choose_box_width(helpbox_font_handle, &width_os, &height_os);
lines = break_strings_down(helpbox_font_handle, width, buffer);
/* Set the extent of the help box (and shadow) */
/* Set the extent of the help box (and shadow) */
extent.xmin = 0;
extent.xmax = width_os;
extent.ymin = 0;
......
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