Browse Source

--- Reverse-merging r14254 into '.':
U rtl/unix/sysutils.pp
U rtl/go32v2/sysutils.pp
U rtl/win/sysutils.pp
U rtl/os2/sysutils.pp
U rtl/objpas/rtlconst.inc
U rtl/objpas/sysutils/sysutilh.inc
U rtl/objpas/sysutils/sysutils.inc

REVERSE MERGE!!!!

# revisions: 14254
------------------------------------------------------------------------
r14254 | michael | 2009-11-22 18:33:56 +0100 (Sun, 22 Nov 2009) | 1 line
Changed paths:
M /trunk/rtl/go32v2/sysutils.pp
M /trunk/rtl/objpas/rtlconst.inc
M /trunk/rtl/objpas/sysutils/sysutilh.inc
M /trunk/rtl/objpas/sysutils/sysutils.inc
M /trunk/rtl/os2/sysutils.pp
M /trunk/rtl/unix/sysutils.pp
M /trunk/rtl/win/sysutils.pp

* Implemented OnBeep to install custom beep handler
------------------------------------------------------------------------

git-svn-id: branches/fixes_2_4@14701 -

marco 15 years ago
parent
commit
48b25adf6c

+ 1 - 2
rtl/go32v2/sysutils.pp

@@ -635,7 +635,7 @@ end ;
                               Misc Functions
                               Misc Functions
 ****************************************************************************}
 ****************************************************************************}
 
 
-procedure sysBeep;
+procedure Beep;
 begin
 begin
 end;
 end;
 
 
@@ -844,7 +844,6 @@ end;
 Initialization
 Initialization
   InitExceptions;       { Initialize exceptions. OS independent }
   InitExceptions;       { Initialize exceptions. OS independent }
   InitInternational;    { Initialize internationalization settings }
   InitInternational;    { Initialize internationalization settings }
-  OnBeep:=@SysBeep;
 Finalization
 Finalization
   DoneExceptions;
   DoneExceptions;
 end.
 end.

+ 0 - 1
rtl/objpas/rtlconst.inc

@@ -152,7 +152,6 @@ ResourceString
   SInvalidDateMonthWeek         = '(%d, %d, %d, %d) is not a valid DateMonthWeek quad';
   SInvalidDateMonthWeek         = '(%d, %d, %d, %d) is not a valid DateMonthWeek quad';
   SInvalidDateWeek              = '(%d, %d, %d) is not a valid DateWeek triplet';
   SInvalidDateWeek              = '(%d, %d, %d) is not a valid DateWeek triplet';
   SInvalidDayOfWeekInMonth      = '(%d, %d, %d, %d) is not a valid DayOfWeekInMonth quad';
   SInvalidDayOfWeekInMonth      = '(%d, %d, %d, %d) is not a valid DayOfWeekInMonth quad';
-  SErrIllegalDateFormatString   = '"%s" is not a valid date format string';
   SInvalidFileName              = '"%s" is not a valid file name.';
   SInvalidFileName              = '"%s" is not a valid file name.';
   SInvalidIcon                  = 'Invalid Icon';
   SInvalidIcon                  = 'Invalid Icon';
   SInvalidImage                 = 'Invalid stream format';
   SInvalidImage                 = 'Invalid stream format';

+ 2 - 11
rtl/objpas/sysutils/sysutilh.inc

@@ -173,24 +173,15 @@ type
    procedure ShowException(ExceptObject: TObject; ExceptAddr: Pointer);
    procedure ShowException(ExceptObject: TObject; ExceptAddr: Pointer);
    procedure Abort;
    procedure Abort;
    procedure OutOfMemoryError;
    procedure OutOfMemoryError;
-
-
-Type
-   TBeepHandler = Procedure;
-
-Var
-   OnBeep : TBeephandler = Nil;
-
    procedure Beep;
    procedure Beep;
    function SysErrorMessage(ErrorCode: Integer): String;
    function SysErrorMessage(ErrorCode: Integer): String;
 
 
-
-
 Type
 Type
    TCreateGUIDFunc = Function(Out GUID : TGUID) : Integer;
    TCreateGUIDFunc = Function(Out GUID : TGUID) : Integer;
-   
+
 Var
 Var
    OnCreateGUID : TCreateGUIDFunc = Nil;
    OnCreateGUID : TCreateGUIDFunc = Nil;
+
    Function CreateGUID(out GUID : TGUID) : Integer;
    Function CreateGUID(out GUID : TGUID) : Integer;
 
 
 type
 type

+ 0 - 8
rtl/objpas/sysutils/sysutils.inc

@@ -683,11 +683,3 @@ begin
   Result:='';
   Result:='';
 {$ENDIF}
 {$ENDIF}
 end;
 end;
-
-{ Beep support }
-
-procedure Beep;
-begin
-  If Assigned(OnBeep) then
-    OnBeep;
-end;

+ 2 - 4
rtl/os2/sysutils.pp

@@ -836,13 +836,12 @@ end;
 {****************************************************************************
 {****************************************************************************
                               Misc Functions
                               Misc Functions
 ****************************************************************************}
 ****************************************************************************}
-procedure sysbeep;
 
 
+procedure Beep;
 begin
 begin
-  // Maybe implement later on ?
-
 end;
 end;
 
 
+
 {****************************************************************************
 {****************************************************************************
                               Locale Functions
                               Locale Functions
 ****************************************************************************}
 ****************************************************************************}
@@ -1076,7 +1075,6 @@ end;
 Initialization
 Initialization
   InitExceptions;       { Initialize exceptions. OS independent }
   InitExceptions;       { Initialize exceptions. OS independent }
   InitInternational;    { Initialize internationalization settings }
   InitInternational;    { Initialize internationalization settings }
-  OnBeep:=@SysBeep;
 Finalization
 Finalization
   DoneExceptions;
   DoneExceptions;
 end.
 end.

+ 3 - 8
rtl/unix/sysutils.pp

@@ -998,6 +998,9 @@ end;
                               Misc Functions
                               Misc Functions
 ****************************************************************************}
 ****************************************************************************}
 
 
+procedure Beep;
+begin
+end;
 
 
 
 
 {****************************************************************************
 {****************************************************************************
@@ -1360,12 +1363,6 @@ begin
   Result:=TheUserDir;    
   Result:=TheUserDir;    
 end;
 end;
 
 
-Procedure SysBeep;
-
-begin
-  Write(#7);
-  Flush(Output);
-end;
 
 
 {****************************************************************************
 {****************************************************************************
                               Initialization code
                               Initialization code
@@ -1375,8 +1372,6 @@ Initialization
   InitExceptions;       { Initialize exceptions. OS independent }
   InitExceptions;       { Initialize exceptions. OS independent }
   InitInternational;    { Initialize internationalization settings }
   InitInternational;    { Initialize internationalization settings }
   SysConfigDir:='/etc'; { Initialize system config dir }
   SysConfigDir:='/etc'; { Initialize system config dir }
-  OnBeep:=@SysBeep;
-  
 Finalization
 Finalization
   FreeDriveStr;
   FreeDriveStr;
   DoneExceptions;
   DoneExceptions;

+ 1 - 2
rtl/win/sysutils.pp

@@ -604,7 +604,7 @@ end;
                               Misc Functions
                               Misc Functions
 ****************************************************************************}
 ****************************************************************************}
 
 
-procedure sysbeep;
+procedure Beep;
 begin
 begin
   MessageBeep(0);
   MessageBeep(0);
 end;
 end;
@@ -1221,7 +1221,6 @@ Initialization
   InitInternational;    { Initialize internationalization settings }
   InitInternational;    { Initialize internationalization settings }
   LoadVersionInfo;
   LoadVersionInfo;
   InitSysConfigDir;
   InitSysConfigDir;
-  OnBeep:=@SysBeep;
 Finalization
 Finalization
   DoneExceptions;
   DoneExceptions;
   if kernel32dll<>0 then
   if kernel32dll<>0 then