pyGHDL.libghdl.vhdl.prints

Python binding for the Ada package Vhdl.Prints in libghdl.

Unparses a node back to VHDL source code.

Functions


Functions

pyGHDL.libghdl.vhdl.prints.Print_String(File, Handle)[source]

Reindent all lines of F between [First_Line; Last_Line] to Handle.

Parameters:
  • File (int) – File to indent lines within

  • Handle (c_void_p) – The handle of the string buffer to append to.

Return type:

None

pyGHDL.libghdl.vhdl.prints.Allocate_Handle()[source]

Todo

Undocumented in Ada code.

Return type:

c_void_p

Returns:

The handle of a freshly allocated string buffer.

pyGHDL.libghdl.vhdl.prints.Get_Length(Handle)[source]

Todo

Undocumented in Ada code.

Parameters:

Handle (c_void_p) – The handle of the string buffer to append to.

Return type:

int

Returns:

The number of characters in the string buffer.

pyGHDL.libghdl.vhdl.prints.Get_C_String(Handle)[source]

Todo

Undocumented in Ada code.

Parameters:

Handle (c_void_p) – The handle of the string buffer to append to.

Return type:

c_char_p

Returns:

The string buffer’s contents as a C string.

pyGHDL.libghdl.vhdl.prints.Free_Handle(Handle)[source]

Todo

Undocumented in Ada code.

Parameters:

Handle (c_void_p) – The handle of the string buffer to append to.

Return type:

None