cleanup old codes (#16173)
This commit is contained in:
parent
31a8cf16bb
commit
358963193f
1 changed files with 2 additions and 9 deletions
|
|
@ -1,23 +1,16 @@
|
||||||
import macros
|
import macros
|
||||||
from strutils import IdentStartChars
|
|
||||||
import parseutils
|
import parseutils
|
||||||
import unicode
|
import unicode
|
||||||
import math
|
import math
|
||||||
import fenv
|
|
||||||
import pegs
|
import pegs
|
||||||
import streams
|
import streams
|
||||||
|
|
||||||
type
|
type
|
||||||
FormatError = object of Exception ## Error in the format string.
|
FormatError = object of CatchableError ## Error in the format string.
|
||||||
|
|
||||||
Writer = concept W
|
Writer = concept W
|
||||||
## Writer to output a character `c`.
|
## Writer to output a character `c`.
|
||||||
when (NimMajor, NimMinor, NimPatch) > (0, 10, 2):
|
write(W, 'c')
|
||||||
write(W, 'c')
|
|
||||||
else:
|
|
||||||
block:
|
|
||||||
var x: W
|
|
||||||
write(x, char)
|
|
||||||
|
|
||||||
FmtAlign = enum ## Format alignment
|
FmtAlign = enum ## Format alignment
|
||||||
faDefault ## default for given format type
|
faDefault ## default for given format type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue