Mercurial > octave
view test/fcn-handle/shared_ctx.m @ 31210:9ad55d2e1bbf stable
Make sure we don't pass short 8.3 path to latex on Windows (bug #62779).
* latex-text-renderer.cc (latex_renderer::write_tex_file): On Windows, use
canonicalized path of temporary directory.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Sun, 28 Aug 2022 22:44:49 +0200 |
parents | 8dd50efa3c47 |
children |
line wrap: on
line source
function [add, sub, mul, div] = shared_ctx (val) add = @add_fun; sub = @sub_fun; mul = @mul_fun; div = @div_fun; function r = add_fun (x) val += x; r = val; endfunction function r = sub_fun (x) val -= x; r = val; endfunction function r = mul_fun (x) val *= x; r = val; endfunction function r = div_fun (x) val /= x; r = val; endfunction endfunction