]> Repositorios git - scryer-prolog.git/commitdiff
change CPU_now to CpuNow
authorMark Thom <[email protected]>
Mon, 20 Apr 2020 16:37:00 +0000 (10:37 -0600)
committerMark Thom <[email protected]>
Mon, 20 Apr 2020 16:37:00 +0000 (10:37 -0600)
src/prolog/clause_types.rs
src/prolog/machine/system_calls.rs

index 98a6d902b4b71f27a4b3eeabec15be75a75ab6cd..c3d79b6313778ab577a8930f0b0f882256e8620a 100644 (file)
@@ -241,7 +241,7 @@ pub enum SystemClauseType {
     GetDoubleQuotes,
     InstallNewBlock,
     Maybe,
-    CPU_now,
+    CpuNow,
     QuotedToken,
     ReadTermFromChars,
     ResetBlock,
@@ -349,7 +349,7 @@ impl SystemClauseType {
             &SystemClauseType::PartialStringTail => clause_name!("$partial_string_tail"),
             &SystemClauseType::LiftedHeapLength => clause_name!("$lh_length"),
             &SystemClauseType::Maybe => clause_name!("maybe"),
-            &SystemClauseType::CPU_now => clause_name!("$cpu_now"),
+            &SystemClauseType::CpuNow => clause_name!("$cpu_now"),
             &SystemClauseType::ModuleAssertDynamicPredicateToFront => {
                 clause_name!("$module_asserta")
             }
@@ -484,7 +484,7 @@ impl SystemClauseType {
             ("$install_inference_counter", 3) => Some(SystemClauseType::InstallInferenceCounter),
             ("$lh_length", 1) => Some(SystemClauseType::LiftedHeapLength),
             ("$maybe", 0) => Some(SystemClauseType::Maybe),
-            ("$cpu_now", 1) => Some(SystemClauseType::CPU_now),
+            ("$cpu_now", 1) => Some(SystemClauseType::CpuNow),
             ("$module_exists", 1) => Some(SystemClauseType::ModuleExists),
             ("$module_of", 2) => Some(SystemClauseType::ModuleOf),
             ("$module_retract_clause", 5) => Some(SystemClauseType::ModuleRetractClause),
index a9b5688aa44905e502f72304f53ef2e5af52644d..63bb8c79dc1d3b71d882b8c4ebc1f88c12f2b4d5 100644 (file)
@@ -1955,7 +1955,7 @@ impl MachineState {
 
                 self.fail = result;
             }
-            &SystemClauseType::CPU_now => {
+            &SystemClauseType::CpuNow => {
                 let a1 = self[temp_v!(1)];
                 let a2 = ProcessTime::now().as_duration().as_secs_f64();
                 let addr = self.heap.put_constant(Constant::Float(OrderedFloat(a2)));