fix wrong git ignore

This commit is contained in:
Adrian Zürcher
2025-12-15 17:44:00 +01:00
parent ed9f31bb96
commit 8f313c00f0
126 changed files with 70589 additions and 1 deletions

31
internal/pdf/ps/handy.go Normal file
View File

@@ -0,0 +1,31 @@
package ps
func MakeReal(val float64) PSObject {
obj := PSReal{}
obj.Val = val
return &obj
}
func MakeInteger(val int) PSObject {
obj := PSInteger{}
obj.Val = val
return &obj
}
func MakeBool(val bool) *PSBoolean {
obj := PSBoolean{}
obj.Val = val
return &obj
}
func MakeOperand(val string) *PSOperand {
obj := PSOperand(val)
return &obj
}
func abs(x int) int {
if x < 0 {
return -x
}
return x
}