2016-02-24 05:16:08 +00:00
|
|
|
/*
|
2018-05-10 08:12:47 +00:00
|
|
|
* Buffer seek descriptor constructors.
|
2016-02-24 05:16:08 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
static Buffer_Seek
|
2019-06-20 23:43:27 +00:00
|
|
|
seek_pos(i64 pos){
|
2016-02-24 05:16:08 +00:00
|
|
|
Buffer_Seek result;
|
|
|
|
result.type = buffer_seek_pos;
|
|
|
|
result.pos = pos;
|
2016-09-24 06:17:06 +00:00
|
|
|
return(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
static Buffer_Seek
|
2019-09-02 18:59:36 +00:00
|
|
|
seek_line_col(i64 line, i64 col){
|
2016-09-24 06:17:06 +00:00
|
|
|
Buffer_Seek result;
|
2019-09-02 18:59:36 +00:00
|
|
|
result.type = buffer_seek_line_col;
|
2016-02-24 05:16:08 +00:00
|
|
|
result.line = line;
|
2019-09-02 18:59:36 +00:00
|
|
|
result.col = col;
|
2016-02-24 05:16:08 +00:00
|
|
|
return(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|