Displaying 10 results from an estimated 10 matches for "skiplin".
Did you mean:
skiplink
2009 Jan 31
1
"UI" keyword, pc_default and getline
...oes matter):
UI gfxboot.com init
DEFAULT memtest
"pc_default" is called on the "DEFAULT" keyword, but "getline" is skipped, so the code now tries to
parse the keywords parameter. The config line should be skipped in this case.
This could be fixed by converting "skipline" to a function and calling it from "pc_default".
- Sebastian
diff --git a/core/parsecmd.inc b/core/parsecmd.inc
index edca0b7..27e115f 100644
--- a/core/parsecmd.inc
+++ b/core/parsecmd.inc
@@ -97,12 +97,18 @@ getcommand:
.eof: stc
ret
-.skipline: cm...
2006 Apr 25
1
protection needed?
Dear list,
I am unsure if I really need to protect a coerced object if I
immediately access its value and don't access the object anymore. I
tried to find out by looking into the R sources but didn't find
something similar.
It's about the variable _skipLines in the call "function ReadXls(
_file, _sheet, _type, _header, _colHeader, _skipLines: pSExp ): pSExp;
cdecl;".
I did:
skipLines:= riInteger( riCoerceVector( _skipLines, setIntSxp ) )[0];
but am unsure if I would have to something along:
skipInt:= riProtect( riCoerceVector( _sk...
2009 Apr 05
3
[PATCH] Gfxboot COMBOOT module
...+%ifdef DEBUG
+ mov ax,2
+ mov bx, configbuf
+ int 22h
+
+ mov ax,2
+ mov bx, msg_crlf
+ int 22h
+%endif
+ push si
+ push di
+ xor ecx,ecx
+ mov si,configbuf
+ mov di,label_keyword+1
+ mov cl, byte [label_keyword]
+ call memcmp
+ pop di
+ pop si
+ jz .do_label
+
+.nextline:
+ call skipline
+ jmp .read
+
+.do_label:
+ call skipspace
+ jz .eof
+ jc .noparm
+ call ungetc
+ push es
+ push di
+ mov ax,[menu_seg]
+ mov es,ax
+ mov di,[menu_off]
+ call getline
+ mov di,[menu_off]
+ add di,512
+ mov [menu_off],di
+ pop di
+ pop es
+ inc word [label_cnt]
+
+ jmp .read
+
+...
2010 May 26
3
error "variable names are limited to 256 bytes" when sourcing code
I've written a function that takes some input data output from a
simulation model and creates some graphs. It's not very complicated
code, and it works perfectly fine if I just run the code as is.
But I have converted it into a function so we call it externally, and
when I try to source the code to test the function, I get the error
message "variable names are limited to 256
2008 Nov 22
5
[RFC][PATCH] Gfxboot COMBOOT module
...+%ifdef DEBUG
+ mov ax,2
+ mov bx, configbuf
+ int 22h
+
+ mov ax,2
+ mov bx, msg_crlf
+ int 22h
+%endif
+ push si
+ push di
+ xor ecx,ecx
+ mov si,configbuf
+ mov di,label_keyword+1
+ mov cl, byte [label_keyword]
+ call memcmp
+ pop di
+ pop si
+ jz .do_label
+
+.nextline:
+ call skipline
+ jmp .read
+
+.do_label:
+ call skipspace
+ jz .eof
+ jc .noparm
+ call ungetc
+ push es
+ push di
+ mov ax,[menu_seg]
+ mov es,ax
+ mov di,[menu_off]
+ call getline
+ mov di,[menu_off]
+ add di,512
+ mov [menu_off],di
+ pop di
+ pop es
+ inc word [label_cnt]
+
+ jmp .read
+
+...
2008 Sep 09
1
[PATCH] parsecmd: show keyword in err_noparm message
...200
+++ syslinux-3.72-pre5/core/parsecmd.inc 2008-09-09 22:11:35.000000000 +0200
@@ -82,9 +82,11 @@
; No parameter
.noparm:
mov si,err_noparm
- mov al,10 ; Already at EOL
-.error:
call writestr
+ mov si,trackbuf
+ call writestr
+ call crlf
+ mov al,10 ; Already at EOL
jmp short .skipline
.found_keywd: lodsw ; Load argument into ax
@@ -103,7 +105,7 @@
section .data
err_badcfg db 'Unknown keyword in configuration file: ',0
-err_noparm db 'Missing parameter in configuration file.', CR, LF, 0
+err_noparm db 'Missing parameter in configurat...
2009 Apr 09
0
[PATCH] gfxboot: parse DEFAULT keywork in syslinux config file
...di,256
mov [menu_desc+menu_arg_list],di
@@ -699,6 +699,17 @@ parse_config:
pop si
jz .do_label
+ push si
+ push di
+ xor ecx,ecx
+ mov si,configbuf
+ mov di,default_keyword+1
+ mov cl, byte [default_keyword]
+ call memcmp
+ pop di
+ pop si
+ jz .do_default
+
.nextline:
call skipline
jmp .read
@@ -723,6 +734,22 @@ parse_config:
jmp .read
+.do_default:
+ call skipspace
+ jz .eof
+ jc .noparm
+ call ungetc
+ push es
+ push di
+ push cs
+ pop es
+ mov di,dentry_buf
+ call getline
+ pop di
+ pop es
+
+ jmp .read
+
.eof:
.noparm:
ret
@@ -854,6 +881,7 @@...
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
...ll [bx+2] ; call keyword handler
+ jmp .read
- push si
- push di
- xor ecx,ecx
- mov si,configbuf
- mov di,default_keyword+1
- mov cl, byte [default_keyword]
- call memcmp
- pop di
- pop si
- jz .do_default
+.not_found:
+ add bx,4
+ pop cx
+ loop .keywords_loop
.nextline:
call skipline
jmp .read
-.do_label:
+.eof:
+.noparm:
+ ret
+
+do_label:
call skipspace
jz .eof
jc .noparm
@@ -742,10 +748,11 @@ parse_config:
pop di
pop es
inc word [label_cnt]
+.eof:
+.noparm:
+ ret
- jmp .read
-
-.do_default:
+do_default:
call skipspace
jz .eof
jc .noparm...
2009 Jul 15
0
[PATCH] gfxboot: parse TIMEOUT keyword
...nd
+ jae .loaded
+ call getc
+ stosb
+ cmp al,'-'
+ jnb .getnum
+ call ungetc
+ dec di
+.loaded:
+ mov byte [di],0
+ pop di
+ pop es
+ push cs
+ pop ds
+ mov si,NumBuf
+ push ebx
+ call parseint
+ jc .err
+ mov [menu_timeout],ebx
+.err:
+ pop ebx
+.eof:
+.noparm:
+ ret
+
skipline:
cmp al,10
je .end
@@ -897,6 +932,35 @@ memcmp:
pop si
ret
+parseint:
+ push eax
+ push ecx
+ xor eax,eax
+ xor ebx,ebx
+ xor ecx,ecx
+ mov cl,10
+.loop:
+ lodsb
+ and al,al
+ jz .done
+ cmp al,'0'
+ jb .err
+ cmp al,'9'
+ ja .err
+ sub al,'0'
+...
2003 Aug 25
16
R tools for large files
I'm wondering if anyone has written some functions or code for handling
very large files in R. I am working with a data file that is 41
variables times who knows how many observations making up 27MB altogether.
The sort of thing that I am thinking of having R do is
- count the number of lines in a file
- form a data frame by selecting all cases whose line numbers are in a
supplied vector