2 Commits

Author SHA1 Message Date
a55bc0db69 Docs: Added for description and squash
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 21s
Build system / Build (pull_request) Successful in 16m22s
2026-02-24 02:21:47 +03:00
aa3193b04f Docs: Added licensing to contributing guide
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 27s
Build system / Build (pull_request) Successful in 16m11s
Also renamed COPYING.TXT to LICENSE

Signed-off-by: Max Logaev <maxlogaev@proton.me>
2026-02-23 23:05:23 +00:00
9 changed files with 19 additions and 74 deletions

View File

@@ -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.

View File

@@ -1,6 +1,6 @@
# KolibriOS
[![License](https://img.shields.io/badge/License-GPL%202.0-green)](./COPYING.TXT)
[![License](https://img.shields.io/badge/License-GPL%202.0-green)](./LICENSE)
[![Build system](https://git.kolibrios.org/KolibriOS/kolibrios/actions/workflows/build.yaml/badge.svg)](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.

View File

@@ -107,7 +107,6 @@ __section @CODE ;:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
mov [s_search.size],ecx
rep movsb
strip_quotes @PARAMS
cmp byte[@PARAMS],0
jz no_params

View File

@@ -95,7 +95,6 @@ include 'dialogs.inc'
start:
strip_quotes params
;dnl
;dpsP params
;dnl

View File

@@ -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
}

View File

@@ -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

View File

@@ -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

View File

@@ -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: