Search notes:

VIM struct: sctx_T

The sctx_T struct stores a SCript ConteXt, aka SCTX.
A script context identifies a script line.
When sourcing a script, sc_lnum is zero, sourcing_lnum is the current line number.
When executing a user function sc_lnum is the line where the function was defined, sourcing_lnum is the line number inside the function.
When stored with a function, mapping, option, etc. sc_lnum is the line number in the script sc_sid.
typedef struct {
    scid_T	sc_sid;		// script ID (scid_T is typedef'd to an int)
    int		sc_seq;		// sourcing sequence number
    linenr_T	sc_lnum;	// line number (linenr_T is typedef'd to a long)
    int		sc_version;	// :scriptversion
} sctx_T;

See also

A pointer to a sctx_T is for example used in the AutoCmd struct.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758207260, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/vim/sources/src/structs_h/sctx_T(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78