Fix EN typos

- Corrections for en_US language.
- Some whitespace sanitation.

git-svn-id: svn://kolibrios.org@10068 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Andrew 2024-05-30 20:45:33 +00:00
parent ae43d8f454
commit 09cb62069d
9 changed files with 47 additions and 47 deletions

View File

@ -1295,9 +1295,9 @@ align 4
;-------------------------------------- ;--------------------------------------
align 4 align 4
@@: @@:
; DEBUGF 1, "K : SHIT HAPPENS: %x %x \n", ecx,ebx ; DEBUGF 1, "K : ERRORS HAPPEN: %x %x \n", ecx,ebx
pop ebx pop ebx
jmp .sh ; SORRY! SHIT HAPPENS! jmp .sh ; SORRY! ERRORS HAPPEN!
;-------------------------------------- ;--------------------------------------
align 4 align 4
.ok: .ok:

View File

@ -367,7 +367,7 @@ put_image_end_16_new:
; check mouse area for putpixel ; check mouse area for putpixel
call check_mouse_area_for_putpixel_new.1 call check_mouse_area_for_putpixel_new.1
cmp ecx, -1 ; SHIT HAPPENS? cmp ecx, -1 ; MISTAKES HAPPEN?
jne .no_mouse_area jne .no_mouse_area
mov ecx, [esp] mov ecx, [esp]
@ -504,7 +504,7 @@ put_image_end_24_new:
; check mouse area for putpixel ; check mouse area for putpixel
call check_mouse_area_for_putpixel_new.1 call check_mouse_area_for_putpixel_new.1
cmp ecx, -1 ; SHIT HAPPENS? cmp ecx, -1 ; MISTAKES HAPPEN?
jne .no_mouse_area jne .no_mouse_area
mov ecx, [esp] mov ecx, [esp]

View File

@ -171,7 +171,7 @@ CDICT_VAL_T cdict_get_v(CDict *s, CDICT_KEY_T key);
#endif #endif
#ifdef CDICT_HASHTAB_ITEM_ALLOCATORS_OVERRIDDEN #ifdef CDICT_HASHTAB_ITEM_ALLOCATORS_OVERRIDDEN
#error "FUCK!" #error "PROBLEM!"
#endif #endif
/// Replacement for assert from <assert.h> /// Replacement for assert from <assert.h>
@ -243,7 +243,7 @@ static CDictItem **cdict_chain_begin(CDict *s, CDICT_KEY_T *pkey) {
static CDictItem **cdict_chain_next(CDictItem **ppit) { static CDictItem **cdict_chain_next(CDictItem **ppit) {
CDICT_ASSERT(ppit); CDICT_ASSERT(ppit);
CDICT_ASSERT(*ppit); CDICT_ASSERT(*ppit);
return &(*ppit)->next_collision; return &(*ppit)->next_collision;
} }
int cdict_init(CDict *s) { int cdict_init(CDict *s) {

View File

@ -1,8 +1,8 @@
; EntropyView - file entropy visualisation ; EntropyView - file entropy visualization
; rgimad 2021 ; rgimad 2021
; header: ; header:
use32 use32
org 0 org 0
db 'MENUET01' ; magic db 'MENUET01' ; magic
dd 1 ; header version dd 1 ; header version
@ -16,7 +16,7 @@ use32
__DEBUG__ = 1 ; 0 - disable debug output / 1 - enable debug output __DEBUG__ = 1 ; 0 - disable debug output / 1 - enable debug output
__DEBUG_LEVEL__ = DBG_ERR ; set the debug level __DEBUG_LEVEL__ = DBG_ERR ; set the debug level
DBG_ALL = 0 ; all messages DBG_ALL = 0 ; all messages
DBG_INFO = 1 ; info and errors DBG_INFO = 1 ; info and errors
DBG_ERR = 2 ; only errors DBG_ERR = 2 ; only errors
@ -32,16 +32,16 @@ HIST_Y = 230
HIST_X = 10 HIST_X = 10
TMP_BUF_SIZE = 4096 TMP_BUF_SIZE = 4096
include '../../macros.inc' include '../../macros.inc'
purge mov, add, sub purge mov, add, sub
include '../../debug-fdo.inc' include '../../debug-fdo.inc'
include '../../proc32.inc' include '../../proc32.inc'
_start: _start:
cmp byte [cmdline], 0 ; if no argument then print usage and exit cmp byte [cmdline], 0 ; if no argument then print usage and exit
jne @f jne @f
mov dword [notify_struct.msg], msg_print_usage mov dword [notify_struct.msg], msg_print_usage
mcall 70, notify_struct mcall 70, notify_struct
@ -55,39 +55,39 @@ _start:
; cmp ecx, 256 ; cmp ecx, 256
; jae .end_table_loop ; jae .end_table_loop
; mov ebx, dword [byte_table + ecx*4] ; mov ebx, dword [byte_table + ecx*4]
; DEBUGF DBG_INFO, "number of bytes %x = %u\n", ecx, ebx ; DEBUGF DBG_INFO, "number of bytes %x = %u\n", ecx, ebx
; inc ecx ; inc ecx
; jmp .table_loop ; jmp .table_loop
; .end_table_loop: ; .end_table_loop:
; event loop: ; event loop:
event_loop: event_loop:
mcall 10 ; wait for event mcall 10 ; wait for event
cmp eax, 1 ; redraw event cmp eax, 1 ; redraw event
je on_redraw je on_redraw
cmp eax,3 ; button event cmp eax,3 ; button event
je on_button je on_button
jmp event_loop jmp event_loop
on_button: on_button:
mcall 17 ; 17 - get key code mcall 17 ; 17 - get key code
cmp ah, 1 ; if key with code 1 is not pressed then continue cmp ah, 1 ; if key with code 1 is not pressed then continue
jne event_loop jne event_loop
mcall -1 ; else exit mcall -1 ; else exit
; define and draw window ; define and draw window
align 4 align 4
on_redraw: on_redraw:
mcall 12, 1 ; begin redraw mcall 12, 1 ; begin redraw
mcall 48, 3, sc,sizeof.system_colors mcall 48, 3, sc,sizeof.system_colors
mov edx, [sc.work] ; background color mov edx, [sc.work] ; background color
or edx, 0x34000000 ; window type or edx, 0x34000000 ; window type
mcall 0, <WND_START_X, WND_WIDTH>, <WND_START_Y, WND_HEIGHT>, , , wnd_title mcall 0, <WND_START_X, WND_WIDTH>, <WND_START_Y, WND_HEIGHT>, , , wnd_title
@ -109,7 +109,7 @@ on_redraw:
cmp ecx, 256 cmp ecx, 256
jae .end_table_loop jae .end_table_loop
mov ebx, dword [byte_table + ecx*4] ; ebx = frequency of ecx value mov ebx, dword [byte_table + ecx*4] ; ebx = frequency of ecx value
mov esi, ecx mov esi, ecx
imul esi, COL_WIDTH ; esi = x of column imul esi, COL_WIDTH ; esi = x of column
@ -129,7 +129,7 @@ on_redraw:
mov ebp, eax ; ebp = height of column mov ebp, eax ; ebp = height of column
mov edi, HIST_Y mov edi, HIST_Y
sub edi, eax ; edi = y of left upper corner of column sub edi, eax ; edi = y of left upper corner of column
push ecx push ecx
; DEBUGF DBG_INFO, "drawing rect x = %u y = %u, height = %u\n", esi, edi, ebp ; DEBUGF DBG_INFO, "drawing rect x = %u y = %u, height = %u\n", esi, edi, ebp
@ -150,7 +150,7 @@ on_redraw:
jmp .table_loop jmp .table_loop
.end_table_loop: .end_table_loop:
; DEBUGF DBG_INFO, "esi = %u\n", esi ; DEBUGF DBG_INFO, "esi = %u\n", esi
mcall 12, 2 ; end draw mcall 12, 2 ; end draw
jmp event_loop jmp event_loop
@ -215,13 +215,13 @@ endp
align 4 align 4
proc _memset stdcall, dest:dword, val:byte, cnt:dword ; doesnt clobber any registers proc _memset stdcall, dest:dword, val:byte, cnt:dword ; doesn't clobber any registers
;DEBUGF DBG_INFO, "memset(%x, %u, %u)\n", [dest], [val], [cnt] ;DEBUGF DBG_INFO, "memset(%x, %u, %u)\n", [dest], [val], [cnt]
push eax ecx edi push eax ecx edi
mov edi, dword [dest] mov edi, dword [dest]
mov al, byte [val] mov al, byte [val]
mov ecx, dword [cnt] mov ecx, dword [cnt]
rep stosb rep stosb
pop edi ecx eax pop edi ecx eax
ret ret
endp endp
@ -244,8 +244,8 @@ file_size dd 0
sc system_colors sc system_colors
wnd_title db 'EntropyView 0.0.1', 0 wnd_title db 'EntropyView 0.0.1', 0
msg_file_not_found db '"File not found" -tE', 0 msg_file_not_found db '"File not found" -tE', 0
msg_print_usage db '"Use from shell like:\nentropyview somefile.txt" -tI', 0 msg_print_usage db '"Use from shell like:\nentropyview somefile.txt" -tI', 0
notify_struct: notify_struct:
dd 7 ; run application dd 7 ; run application
@ -254,7 +254,7 @@ notify_struct:
dd 0 dd 0
dd 0 dd 0
db '/sys/@notify', 0 db '/sys/@notify', 0
; reverved data: ; reverved data:
align 16 align 16
@ -264,8 +264,8 @@ _i_end:
byte_table rd 256 ; table which stores how many times each byte value(0-255) occured in the file byte_table rd 256 ; table which stores how many times each byte value(0-255) occured in the file
rb 4096 ; for stack rb 4096 ; for stack
align 16 align 16
_stacktop: ; stack top label, stack grows downwards _stacktop: ; stack top label, stack grows downwards
_mem: ; end _mem: ; end

View File

@ -64,7 +64,7 @@ shape_window:
mcall mcall
mov eax,50 ; give the shape scale 32 x 32 -> 128 x 128 mov eax,50 ; give the shape scale 32 x 32 -> 128 x 128
mov ebx,1 ; you dont have to give this, scale is 1:1 by default mov ebx,1 ; you don't have to give this, scale is 1:1 by default
mov ecx,2 mov ecx,2
mcall mcall

View File

@ -116,7 +116,7 @@ still: ; wait here for event
draw_window_main: draw_window_main:
mov eax,12 ; function 12:tell os about windowdraw mov eax,12 ; function 12: tell os about windowdraw
mov ebx,1 ; 1, start of draw mov ebx,1 ; 1, start of draw
mcall mcall
@ -185,7 +185,7 @@ text:
db ' ' db ' '
db ' OPEN CHOOSE BOX ' db ' OPEN CHOOSE BOX '
db 'x <- END MARKER, DONT DELETE ' db 'x <- END MARKER, DO NOT DELETE '
labelt: labelt:
db 'EXAMPLE APPLICATION' db 'EXAMPLE APPLICATION'

View File

@ -229,7 +229,7 @@ draw_window:
mov edi,title ; WINDOW LABEL mov edi,title ; WINDOW LABEL
mcall mcall
mov eax,9 mov eax,9
mov ebx,process_info mov ebx,process_info
mov ecx,-1 mov ecx,-1
@ -387,7 +387,7 @@ text:
db ' ' db ' '
db ' ' db ' '
db 'RECEIVED: POP ' db 'RECEIVED: POP '
db 'x' ; <- END MARKER, DONT DELETE db 'x' ; <- END MARKER, DO NOT DELETE
title db 'IPC - START AT LEAST 2',0 title db 'IPC - START AT LEAST 2',0

View File

@ -171,7 +171,7 @@ CDICT_VAL_T cdict_get_v(CDict *s, CDICT_KEY_T key);
#endif #endif
#ifdef CDICT_HASHTAB_ITEM_ALLOCATORS_OVERRIDDEN #ifdef CDICT_HASHTAB_ITEM_ALLOCATORS_OVERRIDDEN
#error "FUCK!" #error "PROBLEM!"
#endif #endif
/// Replacement for assert from <assert.h> /// Replacement for assert from <assert.h>
@ -243,7 +243,7 @@ static CDictItem **cdict_chain_begin(CDict *s, CDICT_KEY_T *pkey) {
static CDictItem **cdict_chain_next(CDictItem **ppit) { static CDictItem **cdict_chain_next(CDictItem **ppit) {
CDICT_ASSERT(ppit); CDICT_ASSERT(ppit);
CDICT_ASSERT(*ppit); CDICT_ASSERT(*ppit);
return &(*ppit)->next_collision; return &(*ppit)->next_collision;
} }
int cdict_init(CDict *s) { int cdict_init(CDict *s) {

View File

@ -48,7 +48,7 @@ HISTORY:
- function 70 for *all* file operations (including diamond's fixes) - function 70 for *all* file operations (including diamond's fixes)
- use memory manager instead of statically allocated region - use memory manager instead of statically allocated region
- case-insensitive filenames input, to be able to open/save files with - case-insensitive filenames input, to be able to open/save files with
non-latin chars in name (russian etc.) non-latin chars in name (Russian etc.)
- reduced flickering (changes checker) - reduced flickering (changes checker)
- overall code cleanup - overall code cleanup
new features: new features:
@ -71,7 +71,7 @@ HISTORY:
changes: changes:
- function 70 instead of 58 for files loading/saving - function 70 instead of 58 for files loading/saving
- clientarea-relative drawing (less code) - clientarea-relative drawing (less code)
- every line's dword is now splitted into 2 words; - every line's dword is now split into 2 words;
low word - line block length, so max line length is 64KB now low word - line block length, so max line length is 64KB now
high word - various flags. for now, only 2 of 16 bits are used: high word - various flags. for now, only 2 of 16 bits are used:
if bit #0 is set, line was modified since file open if bit #0 is set, line was modified since file open
@ -113,9 +113,9 @@ HISTORY:
4.0 beta 1 (mike.dld) 4.0 beta 1 (mike.dld)
menu bar and popup menu; menu bar and popup menu;
removed buttons from the top and input fields from the bottom since removed buttons from the top and input fields from the bottom since
now they're accesible through main/popup menu; now they're accessible through main/popup menu;
improved keyboard handling (using 66th function); improved keyboard handling (using 66th function);
support for almost all FASMW keyboard shourtcuts; support for almost all FASMW keyboard shortcuts;
added text selection ability, standard selection operations added text selection ability, standard selection operations
(copy,cut,paste); (copy,cut,paste);
new integrated dialogs (open, save, find) new integrated dialogs (open, save, find)
@ -162,10 +162,10 @@ HISTORY:
rewrote save_file from scratch; bugfix in loadfile; rewrote save_file from scratch; bugfix in loadfile;
3.74 3.74
optimisation optimization
3.73 3.73
completly new load_file function completely new load_file function
3.72 3.72
speed++ speed++