project_files/hwc/rtl/SysUtils.h
author antonc27 <antonc27@mail.ru>
Fri, 06 Nov 2015 04:34:29 +0100
branchios-revival
changeset 11314 8b40b2335e5b
parent 10564 0cb20aa8877a
child 14918 68e1783762bc
permissions -rw-r--r--
- Small corrections for rus localization of stats messages
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10015
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     1
#ifndef _FPCRTL_SYSUTILS_H_
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     2
#define _FPCRTL_SYSUTILS_H_
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     3
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     4
#include "Types.h"
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     5
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     6
// EFFECTS: return the current date time in pascal notation
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     7
//          http://www.merlyn.demon.co.uk/del-prgg.htm#TDT
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     8
TDateTime   fpcrtl_now();
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
     9
#define     now                     fpcrtl_now
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    10
#define     Now                     fpcrtl_now
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    11
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    12
// EFFECTS: return the current time
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    13
//          http://www.merlyn.demon.co.uk/del-prgg.htm#TDT
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    14
TDateTime   fpcrtl_time();
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    15
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    16
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    17
// EFFECTS: return the current date
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    18
//          http://www.merlyn.demon.co.uk/del-prgg.htm#TDT
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    19
TDateTime   fpcrtl_date();
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    20
#define     date                    fpcrtl_date
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    21
#define     Date                    fpcrtl_date
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    22
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    23
// EFFECTS: Trim strips blank characters (spaces) at the beginning and end of S
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    24
// and returns the resulting string. Only #32 characters are stripped.
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    25
// If the string contains only spaces, an empty string is returned.
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    26
string255   fpcrtl_trim(string255 s);
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    27
#define     trim                    fpcrtl_trim
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    28
#define     Trim                    fpcrtl_trim
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    29
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    30
Integer     fpcrtl_strToInt(string255 s);
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    31
#define     StrToInt                fpcrtl_strToInt
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    32
#define     strToInt                fpcrtl_strToInt
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    33
10564
0cb20aa8877a more fixing and allow pas2c to run tests. they will still fail though - engine does not exit with the specified exit codes, also data types are messed up
sheepluva
parents: 10015
diff changeset
    34
string255   fpcrtl_extractFileDir(string255 f);
0cb20aa8877a more fixing and allow pas2c to run tests. they will still fail though - engine does not exit with the specified exit codes, also data types are messed up
sheepluva
parents: 10015
diff changeset
    35
#define     fpcrtl_ExtractFileDir  fpcrtl_extractFileDir
0cb20aa8877a more fixing and allow pas2c to run tests. they will still fail though - engine does not exit with the specified exit codes, also data types are messed up
sheepluva
parents: 10015
diff changeset
    36
10015
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    37
string255   fpcrtl_extractFileName(string255 f);
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    38
#define     fpcrtl_ExtractFileName  fpcrtl_extractFileName
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    39
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    40
string255   fpcrtl_strPas(PChar);
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    41
#define     fpcrtl_StrPas           fpcrtl_strPas
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    42
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    43
4feced261c68 partial merge of the webgl branch
koda
parents: 8047
diff changeset
    44
#endif