get token array helper
This commit is contained in:
parent
783d4cc147
commit
89063990a2
|
@ -1876,9 +1876,13 @@ try_buffer_kill(Application_Links *app, Buffer_ID buffer, View_ID gui_view_id, B
|
||||||
|
|
||||||
internal Token_Array
|
internal Token_Array
|
||||||
get_token_array_from_buffer(Application_Links *app, Buffer_ID buffer){
|
get_token_array_from_buffer(Application_Links *app, Buffer_ID buffer){
|
||||||
Token_Array array = {};
|
Token_Array result = {};
|
||||||
// TODO(allen): implement
|
Managed_Scope scope = buffer_get_managed_scope(app, buffer);
|
||||||
return(array);
|
Token_Array *ptr = scope_attachment(app, scope, attachment_tokens, Token_Array);
|
||||||
|
if (ptr != 0){
|
||||||
|
result = *ptr;
|
||||||
|
}
|
||||||
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////
|
////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue