Back to index

tetex-bin  3.0
Functions
tex-hush.c File Reference
#include <kpathsea/config.h>
#include <kpathsea/pathsearch.h>
#include <kpathsea/tex-hush.h>
#include <kpathsea/variable.h>

Go to the source code of this file.

Functions

boolean kpse_tex_hush P1C (const_string, what)

Function Documentation

boolean kpse_tex_hush P1C ( const_string  ,
what   
)

Definition at line 26 of file tex-hush.c.

{
  string h;
  string hush = kpse_var_value ("TEX_HUSH");
  if (hush) {
    if (STREQ (hush, "all"))
        return true;
    if (STREQ (hush, "none"))
        return false;
    for (h = kpse_path_element (hush); h; h = kpse_path_element (NULL)) {
      /* Don't do anything special with empty elements.  */
      if (STREQ (h, what))
        return true;
    }
  }
  
  return false;
}