fix wrong git ignore
This commit is contained in:
31
internal/pdf/ps/handy.go
Normal file
31
internal/pdf/ps/handy.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user