Compare commits
2 Commits
c8efe352dc
...
add-licens
| Author | SHA1 | Date | |
|---|---|---|---|
| a55bc0db69 | |||
| aa3193b04f |
@@ -66,6 +66,21 @@ to the end commit message body on a new line.
|
||||
|
||||
Use **rebase** to keep your branch up to date.
|
||||
|
||||
Despite this, commits from your branch can be **squashed** and merged into the main branch by **rebasing** if the changes do not require logical separation. Otherwise, it is entirely your responsibility to format the commits in your PR branch.
|
||||
|
||||
## Licensing
|
||||
|
||||
For new source code files and for existing ones without a license, you need to add the following header to the beginning of the file:
|
||||
```asm
|
||||
; SPDX-License-Identifier: GPL-2.0-only
|
||||
; Program - Brief description.
|
||||
; Copyright (C) 2011-2025 KolibriOS team
|
||||
```
|
||||
|
||||
A brief description is only required for the main source file. The files included in it may not have a description.
|
||||
|
||||
Be careful when setting copyright and date interval. Review the file's history to verify its origin.
|
||||
|
||||
## Conclusion
|
||||
|
||||
We hope this small instructions will help you to get familiar with KolibriOS contribution rules and inspire you to participate in the life of our project.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# KolibriOS
|
||||
|
||||
[](./COPYING.TXT)
|
||||
[](./LICENSE)
|
||||
[](https://git.kolibrios.org/KolibriOS/kolibrios/actions)
|
||||
|
||||
KolibriOS is a hobby operating system for x86-compatible computers, which is currently being developed by a small but passionate team of enthusiasts.
|
||||
|
||||
@@ -107,7 +107,6 @@ __section @CODE ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
mov [s_search.size],ecx
|
||||
rep movsb
|
||||
|
||||
strip_quotes @PARAMS
|
||||
cmp byte[@PARAMS],0
|
||||
jz no_params
|
||||
|
||||
|
||||
@@ -95,7 +95,6 @@ include 'dialogs.inc'
|
||||
|
||||
|
||||
start:
|
||||
strip_quotes params
|
||||
;dnl
|
||||
;dpsP params
|
||||
;dnl
|
||||
|
||||
@@ -613,40 +613,3 @@ EVM_STACK2 = 1000000000b
|
||||
|
||||
EVM_MOUSE_FILTER = 0x80000000
|
||||
EVM_CURSOR_FILTER = 0x40000000
|
||||
|
||||
macro strip_quotes buffer {
|
||||
local .done
|
||||
local .shift
|
||||
local .find_end
|
||||
push eax esi edi
|
||||
mov edi, buffer
|
||||
cmp byte [edi], '"'
|
||||
jne .done
|
||||
|
||||
;; shift string left by 1 to remove first quote
|
||||
mov esi, edi
|
||||
inc esi
|
||||
.shift:
|
||||
mov al, [esi]
|
||||
mov [edi], al
|
||||
inc esi
|
||||
inc edi
|
||||
test al, al
|
||||
jnz .shift
|
||||
|
||||
;; now find the last quote (if any) and nullify it
|
||||
mov edi, buffer
|
||||
.find_end:
|
||||
mov al, [edi]
|
||||
test al, al
|
||||
jz .done
|
||||
cmp al, '"'
|
||||
jne @f
|
||||
mov byte [edi], 0
|
||||
jmp .done
|
||||
@@:
|
||||
inc edi
|
||||
jmp .find_end
|
||||
.done:
|
||||
pop edi esi eax
|
||||
}
|
||||
|
||||
@@ -47,7 +47,6 @@ START:
|
||||
|
||||
invoke sort.START, 1
|
||||
|
||||
strip_quotes __params
|
||||
mov ecx, 1 ; for 15.4: 1 = tile
|
||||
cmp word[__params], '\T'
|
||||
jz set_bgr
|
||||
|
||||
@@ -34,7 +34,6 @@ START:
|
||||
mcall SF_SYS_MISC,SSF_HEAP_INIT
|
||||
mcall SF_SET_EVENTS_MASK,0x80000027
|
||||
|
||||
strip_quotes params
|
||||
load_libraries l_libs_start,load_lib_end
|
||||
cmp eax,-1
|
||||
je exit
|
||||
|
||||
@@ -204,14 +204,13 @@ end if
|
||||
|
||||
;; if dialog
|
||||
mov eax, [param_s]
|
||||
mov [is_openas + 8], eax
|
||||
cmpne [eax], byte '~', @f
|
||||
inc [param_s]
|
||||
stdcall quote_param, [param_s], param_quoted
|
||||
mov eax, [param_s]
|
||||
mov [is_openas + 8], eax
|
||||
jmp start_dialog
|
||||
@@:
|
||||
stdcall quote_param, [param_s], param_quoted
|
||||
mov [is_openas + 8], eax
|
||||
|
||||
;; if without '.' - execute
|
||||
stdcall string.last_index_of, [param_s], '.', 1
|
||||
@@ -258,7 +257,7 @@ end if
|
||||
invoke libini.get_str, assoc_ini, buffer + 1, assoc_ini.exec, buffer, 2048, undefined
|
||||
cmpe [buffer], byte 0, ini_error
|
||||
@@:
|
||||
stdcall quote_param, [param_s], param_quoted
|
||||
mov eax, [param_s]
|
||||
mov [is_open + 8], eax
|
||||
mcall 70, is_open
|
||||
jmp exit
|
||||
@@ -887,33 +886,6 @@ end if
|
||||
|
||||
;----------------------
|
||||
|
||||
proc quote_param uses esi edi, _src, _dst
|
||||
mov esi, [_src]
|
||||
mov edi, [_dst]
|
||||
cmp byte [esi], '"'
|
||||
je .already_quoted
|
||||
mov byte [edi], '"'
|
||||
inc edi
|
||||
.q_loop:
|
||||
mov al, [esi]
|
||||
test al, al
|
||||
jz .q_end
|
||||
mov [edi], al
|
||||
inc esi
|
||||
inc edi
|
||||
jmp .q_loop
|
||||
.q_end:
|
||||
mov word [edi], '"'
|
||||
mov eax, [_dst]
|
||||
jmp .ret
|
||||
.already_quoted:
|
||||
mov eax, [_src]
|
||||
.ret:
|
||||
ret
|
||||
endp
|
||||
|
||||
;----------------------
|
||||
|
||||
proc get_index
|
||||
stdcall get_index_cur, [last_x], [last_y]
|
||||
ret
|
||||
@@ -1089,7 +1061,6 @@ end if
|
||||
buffer7 rb 32 ;for sorting
|
||||
buffer8 rd 2048
|
||||
paramorig rb 2048
|
||||
param_quoted rb 2048
|
||||
_stack rb 2048
|
||||
params rb 256
|
||||
memory:
|
||||
|
||||
Reference in New Issue
Block a user