 1)
    function typesetters.checkers.set(n)
        texsetattribute(a_justification,n or 1)
    end
end

local function reset()
    texsetattribute(a_justification,unsetvalue)
end

checkers.set   = set
checkers.reset = reset

interfaces.implement {
    name    = "showjustification",
    actions = set
}

trackers.register("visualizers.justification", function(v)
    if v then
        set(1)
    else
        reset()
    end
end)

function checkers.handler(head)
    for current in traverse_id(hlist_code,tonut(head)) do
        if getattr(current,a_justification) == 1 then
            setattr(current,a_justification,0) -- kind of reset
            local width = getwidth(current)
            if width > 0 then
                local list = getlist(current)
                if list then
                    local naturalwidth, naturalheight, naturaldepth = list_dimensions(list)
                    local delta = naturalwidth - width
                    if naturalwidth == 0 or delta == 0 then
                        -- special box
                    elseif delta >= max_threshold then
                        local rule = new_hlist(tracedrule(delta,naturalheight,naturaldepth,getfield(list,"glue_set") == 1 and "trace:dr" or "trace:db"))
                        setlink(findtail(list),rule)
                        setlist(current,list)
                    elseif delta <= min_threshold then
                        local alignstate = getattr(list,a_alignstate)
                        if alignstate == 1 then
                            local rule = new_hlist(tracedrule(-delta,naturalheight,naturaldepth,"trace:dc"))
                            setlink(rule,list)
                            setlist(current,rule)
                        elseif alignstate == 2 then
                            local lrule = new_hlist(tracedrule(-delta/2,naturalheight,naturaldepth,"trace:dy"))
                            local rrule = copy_list(lrule)
                            setlink(lrule,list)
                            setlink(findtail(list),new_kern(delta/2),rrule)
                            setlist(current,lrule)
                        elseif alignstate == 3 then
                            local rule = new_hlist(tracedrule(-delta,naturalheight,naturaldepth,"trace:dm"))
                            setlink(findtail(list),new_kern(delta),rule)
                            setlist(current,list)
                        else
                            local rule = new_hlist(tracedrule(-delta,naturalheight,naturaldepth,"trace:dg"))
                            setlink(findtail(list),new_kern(delta),rule)
                            setlist(current,list)
                        end
                    end
                end
            end
        end
    end
    return head
end
The US will screen passengers at three US airports to detect travellers from the central Chinese city of Wuhan who may have symptoms of a new respiratory virus.
A jury has been selected for the rape trial of disgraced Hollywood mogul Harvey Weinstein, with opening statements are expected Wednesday.
A religious sect in a remote part of Panama has carried out extreme repentance rituals, resulting in seven deaths among the indigenous community.
A 'caravan' of 300 Honduran migrants bound for the US border has been broken up and returned by Guatemalan authorities, with US assistance.
The judge in Harvey Weinstein's sexual assault trial has warned potential jurors that the case is not a referendum on the "MeToo" movement.
A man who worked closely with Donald Trump lawyer Rudy Giuliani in Ukraine says the President and Attorney-General William Barr knew exactly what was going on.
The United States has signed a trade agreement with China, in a move that is expected to ease long-running tensions.
Iran has arrested at least 30 people in connection with the downing of the Ukrainian passenger jet.
During the final Democratic presidential debate, US Senator Bernie Sanders tried to deflect questions about a CNN report that in a private meeting in 2018 he..
US presidential candidates have taken to the stage in Iowa for the final Democratic party debate before primary voting begins.
*SANTIAGO * — Is there a plausible way to reverse global warming? We must do things very..
A fake image retweeted by US President Donald Trump has been condemned for stereotyping and attacking Muslims.
Dozens of potential jurors showed up on Monday in a Manhattan courtroom for the rape trial of former movie producer Harvey Weinstein, including model Gigi Hadid.
*PARIS* — Pernod Ricard, the France-based global liquor giant, is launching "Ceder's." It is not, however, a new brand..
*BOGOTÁ* — Analysts and thinkers have begun speaking of the death of democracy. Among them are..
Protesters have come together outside the California offices of Facebook after the social networking giant confirmed advertising for the 2020 US presidential..
About 2,000 people packed a memorial in Toronto to remember victims of the Ukrainian airliner shot down in Iran in a disaster that killed 57 Canadians, mainly of..
Powerful wind gusts, golf-ball-sized hail and five to 13 centimetres of snow have fallen in parts of the US, with at least nine people killed in the storms.
Canadian Prime Minister Justin Trudeau has called for a "full and complete" investigation into the downing of a Ukrainian plane carrying dozens of Canadians.
The US responded to the call by stating they were preparing for "movement out of Iraq".
The secretive North Korean regime has never confirmed Kim Jong-un's exact birthday.
*BUENOS AIRES* — In a not-so-distant future when hunger, war and epidemics are no longer the agents of..
Video footage from outside accused sex offender Jeffrey Epstein's jail cell on a day he attempted self harm "no longer exists," US prosecutors say.
The House of Representatives has voted 224 to 194 to stop US President Donald Trump further pursuing military action against Iran.
2001 was a defining year for hyflux for yet another reason – the company was awarded its first municipal water treatment project in singapore to supply and install the process equipment for the bedok newater plant the country’s first newater plant which would mark the launch of the third national tap.
Welcome to the website of Tasha Kheiriddin, political analyst, writer, speaker, and president of TJK Communications.
A familiar face to followers of Canadian politics, Tasha writes weekly columns for both the National Post newspaper and iPolitics.ca She provides political analysis in English for The National on CBC News Network and various radio programs. Tasha can also be heard in French on RDI’s Le Téléjournal and Radio Canada’s Grands Lacs Café. She is the co-author of the 2005 best-seller Rescuing Canada’s Right: Blueprint for a Conservative Revolution.
With a background spanning law, politics, media, advocacy and academia, Tasha brings a thoughtful, small-c conservative perspective to the issues of the day. She is a sought-after host and public speaker and can be booked through Speakers’ Spotlight. If you’re looking for the written word, she offers a unique blend of political analysis, writing and editing services to personal and corporate clients across Canada through TJK Communications.
Updates
When ‘taxes’ ceased to be a dirty word in politics
Trudeau needs a legal weed market by 2019 — and Wynne is happy to help
Français
Le questionnaire de la GRC ciblant les musulmans était stupide et inutile
The Best Restaurants In Sunset Park
Our favorite places to grab food in the neighborhood.
Another coffee shop with great food in Sunset Park, Yafa Cafe is a Yemeni spot where you’ll want to hang out for several hours and attempt to befriend your barista. Service is friendly, and the long space has wifi, plenty of tables, as well as an area up front with books, brick walls, plants, and wicker furniture. Stop by for a coffee and some shakshuka in the morning, or get some work done while you eat a crispy fried chicken sandwich with a brussels sprout slaw./** \file algo/swstate/auto_generated/access/algo_trunk_access.c
 *
 * sw state functions definitions
 *
 * DO NOT EDIT THIS FILE!
 * This file is auto-generated.
 * Edits to this file will be lost when it is regenerated.
 */
/*
 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
 * 
 * Copyright 2007-2020 Broadcom Inc. All rights reserved.
 */

#ifdef BSL_LOG_MODULE
#error "BSL_LOG_MODULE redefined"
#endif
#define BSL_LOG_MODULE BSL_LS_SWSTATEDNX_GENERAL

#include <soc/dnxc/swstate/dnxc_sw_state_c_includes.h>
#include <bcm_int/dnx/algo/sw