w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

basics.h File Reference
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
#include <limits.h>
#include <unibasics.h>
Include dependency graph for basics.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define gfree   ff_gfree
 
#define grealloc   ff_grealloc
 
#define true   1
 
#define false   0
 
#define forever   for (;;)
 

Typedefs

typedef intptr_t intpt
 

Functions

voidgalloc (long size)
 
voidgcalloc (int cnt, long size)
 
voidff_grealloc (void *, long size)
 
void ff_gfree (void *)
 
void galloc_set_trap (void(*)(void))
 
char * copy (const char *)
 
char * copyn (const char *, long)
 

Macro Definition Documentation

◆ false

#define false   0

Definition at line 53 of file basics.h.

◆ forever

#define forever   for (;;)

Definition at line 55 of file basics.h.

◆ gfree

#define gfree   ff_gfree

Definition at line 40 of file basics.h.

◆ grealloc

#define grealloc   ff_grealloc

Definition at line 41 of file basics.h.

◆ true

#define true   1

Definition at line 52 of file basics.h.

Typedef Documentation

◆ intpt

typedef intptr_t intpt

Definition at line 57 of file basics.h.

Function Documentation

◆ copy()

char* copy ( const char *  str)

Definition at line 31 of file memory.c.

◆ copyn()

char* copyn ( const char *  str,
long  n 
)

MIQ: Note that there is at least one site that relies on copyn copying up to n bytes including embedded nulls. So using strndup() doesn't provide the same outcomes to that code. https://github.com/fontforge/fontforge/issues/1239

MIQ: Note that there is at least one site that relies on copyn copying up to n bytes including embedded nulls. So using strndup() doesn't provide the same outcomes to that code. https://github.com/fontforge/fontforge/issues/1239

MIQ: Note that there is at least one site that relies on copyn copying up to n bytes including embedded nulls. So using strndup() doesn't provide the same outcomes to that code. https://github.com/fontforge/fontforge/issues/1239

Definition at line 35 of file memory.c.

◆ ff_gfree()

void ff_gfree ( void )

◆ ff_grealloc()

void* ff_grealloc ( void ,
long  size 
)

◆ galloc()

void* galloc ( long  size)

Referenced by _MMMakeFontname(), _NamesReadPostscript(), _readencstring(), _ReadSplineFont(), _SplineSetApprox(), AddEntry(), addinfo(), AllGlyphNames(), AllNamelistNames(), amscheck(), AssignTTFGlyph(), BreakSubroutine(), BuildFondList(), cffprivatefillup(), CheckAfmOfPostscript(), CheckMMAfmFile(), CID2ChrsSubrs2(), ClassCopy(), ClassToNames(), CompactEncMap(), ComponentsFromPSTs(), copy(), copyn(), copyparse(), CoverageMinusClasses(), Decompress(), doreplace(), EncMap1to1(), EncMapCopy(), EncMapFromEncoding(), EncMapNew(), EnforcePostScriptName(), fea_ApplyLookupListMark2(), fea_ApplyLookupListPair(), fea_canonicalClassOrder(), fea_classesSplit(), fea_glyphs_to_names(), fea_markedglyphs_to_fpst(), fea_NameLookups(), fea_ParseDeviceTable(), fea_ParseGDEFTable(), fea_ParseParameters(), fea_ParseSubstitute(), fea_process_sub_ligature(), figurecids(), FindNeeded(), FindOrderedEndpoints(), findstring(), FLOrder(), FPSTCopy(), g___ChainingSubTable1(), g___ChainingSubTable2(), g___ChainingSubTable3(), g___ContextSubTable1(), g___ContextSubTable2(), g___ContextSubTable3(), getCoverageTable(), getstring(), gettoken(), glorpline(), GlyphsToNames(), gposCursiveSubTable(), gposKernSubTable(), GrowBuffer(), gsubLigatureSubTable(), gsubMultipleSubTable(), gsubReverseChainSubTable(), gsubSimpleSubTable(), intarray2str(), KernClassCopy(), LigatureSearch(), MacStrToUtf8(), MakeDummyMap(), MapDoBack(), MarkGlyphsProcessBases(), MarkGlyphsProcessLigs(), MarkGlyphsProcessMarks(), MightBeTrueType(), MMExtractArrayNth(), MoveSubrsToChar(), NameOTLookup(), NamesReadTTF(), NewAALTLookup(), OTLookupsCopyInto(), parseline(), pfed_read_glyph_layer(), pfed_read_layer(), pfed_read_ucs2_len(), pfed_read_utf8(), pfed_read_utf8_len(), pfed_readcvtcomments(), pfed_readfontcomment(), pfed_readglyphcomments(), pfed_readguidelines(), pfed_readlookupnames(), pfed_readotherlayers(), PickCMap(), PickFOND(), PickTTFFont(), PSCharStringToBB(), PSCharStringToSplines(), PSTCopy(), readcfffontnames(), readcffset(), readcffsubrs(), readcfftopdicts(), readt1str(), readttfcompositglyph(), readttfencodings(), readttffeatures(), readttfgasp(), readttfgdef(), readttfglyphs(), readttfkerns(), readttflookups(), readttfpostnames(), readttfscripts(), readttfsimpleglyph(), realarray2str(), rollstack(), RulesCopy(), SCFigureSimpleCounterMasks(), SCOrderAP(), SearchPostscriptResources(), SetupType1Chrs(), SetupType1Subrs(), SF_AddFPST(), SF_AddKernClass(), SFChangeXUID(), SFDummyUpCIDs(), SFGlyphsFromNames(), SFGlyphsWithLigatureinLookup(), SFGlyphsWithPSTinSubtable(), SLCopy(), SLOrder(), SplineCharCopy(), SplineFont2ChrsSubrs2(), SplineFontFromCIDType1(), SplineFontFromMMType1(), SplinesFigureTPsBetween(), SSRemoveUTurns(), StartNextSubroutine(), strconcat(), strconcat3(), ttf_math_read_gvtable(), ttf_math_read_mathkern(), ttf_math_read_variants(), TtfCopyTableBlindly(), ValidateTTFHead(), and XUIDFromFD().

◆ galloc_set_trap()

void galloc_set_trap ( void(*)(void )

◆ gcalloc()

void* gcalloc ( int  cnt,
long  size 
)

Referenced by _FontViewBaseCreate(), _InterpretPS(), _SplineFontFromType1(), AddEdge(), AddMajorEdge(), ApplyTickedFeatures(), BuildFondList(), cfffigure(), cffinfofillup(), cffsffillup(), CID2ChrsSubrs2(), cidfigure(), ClassToNames(), copyarray(), CoverageMinusClasses(), dumpcffcharset(), dumpcidglyphs(), EIAddEdge(), ELOrder(), EntityCreate(), fea_ApplyLookupListPair(), fea_markedglyphs_to_fpst(), figurecids(), g___ChainingSubTable1(), g___ChainingSubTable2(), g___ChainingSubTable3(), g___ContextSubTable1(), g___ContextSubTable2(), g___ContextSubTable3(), getAppleClassTable(), getClassDefTable(), getCoverageTable(), GlyphHashCreate(), gposKernSubTable(), gposSimplePos(), gsubReverseChainSubTable(), InitCharProcs(), InitChars(), InitDict(), LoadNamelist(), MakeEmptyFont(), MarkGlyphsProcessMarks(), MathKernCopy(), MCConvertSubtable(), parseline(), ParseSaveTablesPref(), pfed_read_layer(), pfed_readotherlayers(), PickCFFFont(), PickFOND(), psaddbucket(), PSDictCopy(), PSMakeEmptyFont(), pushfogio(), pushio(), readcfftopdict(), readfdselect(), readttf(), readttfbase(), readttfencodings(), readttffeatures(), readttfglyphs(), readttfkerns(), readttflookups(), readttfpostnames(), readttfscripts(), RefCharCreate(), RulesCopy(), SCReinstanciateRefChar(), SearchPostscriptResources(), SearchTtfResources(), SearchTtfResourcesFile(), SFDummyUpCIDs(), SFFeaturesInScriptLang(), SFFigureDefWidth(), SFGlyphsWithLigatureinLookup(), SFGlyphsWithPSTinSubtable(), SFLangsInScript(), SFTemporaryRenameGlyphsToNamelist(), SplineCharCreate(), SplineFont2ChrsSubrs2(), SplineFontEmpty(), SplineFontFromCIDType1(), SplineFontFromMMType1(), SplineSetsCorrect(), ttf_math_read_constants(), ttf_math_read_gvtable(), ttf_math_read_mathkernv(), and ttf_math_read_variants().