@@ -13,9 +13,9 @@ use crate::{
1313 print_confusion, print_overflow, AuxTy ,
1414 } ,
1515 peekable:: PeekableInput ,
16- pool:: StringPool ,
16+ pool:: { StrNumber , StringPool } ,
1717 scan:: Scan ,
18- Bibtex , BibtexError , File , GlobalItems , StrIlk , StrNumber ,
18+ Bibtex , BibtexError , File , GlobalItems , StrIlk ,
1919} ;
2020use std:: ffi:: CString ;
2121use tectonic_bridge_core:: FileFormat ;
@@ -105,7 +105,7 @@ fn aux_bib_data_command(
105105
106106 let file = & buffers. buffer ( BufTy :: Base )
107107 [ buffers. offset ( BufTy :: Base , 1 ) ..buffers. offset ( BufTy :: Base , 2 ) ] ;
108- let res = pool . lookup_str_insert ( ctx, hash , file, HashExtra :: BibFile ) ?;
108+ let res = hash . lookup_str_insert ( ctx, pool , file, HashExtra :: BibFile ) ?;
109109 if res. exists {
110110 ctx. write_logs ( "This database file appears more than once: " ) ;
111111 print_bib_name ( ctx, pool, hash. text ( res. loc ) ) ?;
@@ -176,7 +176,7 @@ fn aux_bib_style_command(
176176
177177 let file = & buffers. buffer ( BufTy :: Base )
178178 [ buffers. offset ( BufTy :: Base , 1 ) ..buffers. offset ( BufTy :: Base , 2 ) ] ;
179- let res = pool . lookup_str_insert ( ctx, hash , file, HashExtra :: BstFile ) ?;
179+ let res = hash . lookup_str_insert ( ctx, pool , file, HashExtra :: BstFile ) ?;
180180 if res. exists {
181181 ctx. write_logs ( "Already encountered style file" ) ;
182182 print_confusion ( ctx) ;
@@ -276,15 +276,15 @@ fn aux_citation_command(
276276 let lc_cite = & mut buffers. buffer_mut ( BufTy :: Ex ) [ range] ;
277277 lc_cite. make_ascii_lowercase ( ) ;
278278
279- let lc_res = pool . lookup_str_insert ( ctx, hash , lc_cite, HashExtra :: LcCite ( 0 ) ) ?;
279+ let lc_res = hash . lookup_str_insert ( ctx, pool , lc_cite, HashExtra :: LcCite ( 0 ) ) ?;
280280 if lc_res. exists {
281281 let HashExtra :: LcCite ( cite_loc) = hash. node ( lc_res. loc ) . extra else {
282282 panic ! ( "LcCite lookup didn't have LcCite extra" ) ;
283283 } ;
284284
285285 let cite = & buffers. buffer ( BufTy :: Base )
286286 [ buffers. offset ( BufTy :: Base , 1 ) ..buffers. offset ( BufTy :: Base , 2 ) ] ;
287- let uc_res = pool . lookup_str ( hash , cite, StrIlk :: Cite ) ;
287+ let uc_res = hash . lookup_str ( pool , cite, StrIlk :: Cite ) ;
288288 if !uc_res. exists {
289289 let HashExtra :: Cite ( cite) = hash. node ( cite_loc) . extra else {
290290 panic ! ( "LcCite location didn't have a Cite extra" ) ;
@@ -301,7 +301,7 @@ fn aux_citation_command(
301301 } else {
302302 let cite = & buffers. buffer ( BufTy :: Base )
303303 [ buffers. offset ( BufTy :: Base , 1 ) ..buffers. offset ( BufTy :: Base , 2 ) ] ;
304- let uc_res = pool . lookup_str_insert ( ctx, hash , cite, HashExtra :: Cite ( 0 ) ) ?;
304+ let uc_res = hash . lookup_str_insert ( ctx, pool , cite, HashExtra :: Cite ( 0 ) ) ?;
305305 if uc_res. exists {
306306 hash_cite_confusion ( ctx) ;
307307 return Err ( BibtexError :: Fatal ) ;
@@ -375,7 +375,7 @@ fn aux_input_command(
375375
376376 let file = & buffers. buffer ( BufTy :: Base )
377377 [ buffers. offset ( BufTy :: Base , 1 ) ..buffers. offset ( BufTy :: Base , 2 ) ] ;
378- let res = pool . lookup_str_insert ( ctx, hash , file, HashExtra :: AuxFile ) ?;
378+ let res = hash . lookup_str_insert ( ctx, pool , file, HashExtra :: AuxFile ) ?;
379379 if res. exists {
380380 ctx. write_logs ( "Already encountered file " ) ;
381381 print_aux_name ( ctx, pool, hash. text ( res. loc ) ) ?;
@@ -421,8 +421,8 @@ pub(crate) fn get_aux_command_and_process(
421421 let line = & globals. buffers . buffer ( BufTy :: Base )
422422 [ globals. buffers . offset ( BufTy :: Base , 1 ) ..globals. buffers . offset ( BufTy :: Base , 2 ) ] ;
423423 let res = globals
424- . pool
425- . lookup_str ( globals. hash , line, StrIlk :: AuxCommand ) ;
424+ . hash
425+ . lookup_str ( globals. pool , line, StrIlk :: AuxCommand ) ;
426426
427427 if res. exists {
428428 let HashExtra :: AuxCommand ( cmd) = globals. hash . node ( res. loc ) . extra else {
0 commit comments