Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
liyishuai authored Oct 30, 2023
1 parent b020b00 commit 57ea50e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/genericLib.ml.cppo
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,11 @@ let rec gList = function
| x::xs -> gCons x (gList xs)

(* Generic String Manipulations *)
#if COQ_VERSION >= (8, 19, 0)
let string_scope ast = CAst.make @@ CDelimiters (DelimUnboundedScope, "string", ast)
#else
let string_scope ast = CAst.make @@ CDelimiters ("string", ast)
#endif
let gStr s = string_scope (CAst.make @@ CPrim (String s))
let emptyString = gInject "Coq.Strings.String.EmptyString"
let str_append c1 c2 = gApp (gInject "Coq.Strings.String.append") [c1; c2]
Expand Down Expand Up @@ -1015,7 +1019,11 @@ let dtTupleType =

(* Int *)

#if COQ_VERSION >= (8, 19, 0)
let nat_scope ast = CAst.make @@ CDelimiters (DelimUnboundedScope, "nat", ast)
#else
let nat_scope ast = CAst.make @@ CDelimiters ("nat", ast)
#endif
let gInt n =
let number =
Number (NumTok.Signed.of_int_string (string_of_int n))
Expand Down

0 comments on commit 57ea50e

Please sign in to comment.