4coder/code/custom/4coder_buffer_seek_construc...

26 lines
396 B
C++

/*
* Buffer seek descriptor constructors.
*/
// TOP
static Buffer_Seek
seek_pos(i64 pos){
Buffer_Seek result;
result.type = buffer_seek_pos;
result.pos = pos;
return(result);
}
static Buffer_Seek
seek_line_col(i64 line, i64 col){
Buffer_Seek result;
result.type = buffer_seek_line_col;
result.line = line;
result.col = col;
return(result);
}
// BOTTOM