[gnome-calculator] GCalc: renamed GFunction to Function
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calculator] GCalc: renamed GFunction to Function
- Date: Thu, 17 Oct 2019 19:08:07 +0000 (UTC)
commit 8f616b02cb3247f3d0a02dc46753e6d7b49e95be
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Oct 17 11:36:28 2019 -0500
GCalc: renamed GFunction to Function
gcalc/gcalc-function-acos.vala | 2 +-
gcalc/gcalc-function-acosh.vala | 2 +-
gcalc/gcalc-function-asin.vala | 2 +-
gcalc/gcalc-function-asinh.vala | 2 +-
gcalc/gcalc-function-atan.vala | 2 +-
gcalc/gcalc-function-atanh.vala | 2 +-
gcalc/gcalc-function-cos.vala | 2 +-
gcalc/gcalc-function-cosh.vala | 2 +-
gcalc/gcalc-function-exp.vala | 2 +-
gcalc/gcalc-function-log.vala | 2 +-
gcalc/gcalc-function-sin.vala | 2 +-
gcalc/gcalc-function-sinh.vala | 2 +-
gcalc/gcalc-function-sqrt.vala | 2 +-
gcalc/gcalc-function-tan.vala | 2 +-
gcalc/gcalc-function-tanh.vala | 2 +-
gcalc/{gcalc-gfunction.vala => gcalc-function.vala} | 6 +++---
gcalc/meson.build | 2 +-
17 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gcalc/gcalc-function-acos.vala b/gcalc/gcalc-function-acos.vala
index edd3251b..b9792f4e 100644
--- a/gcalc/gcalc-function-acos.vala
+++ b/gcalc/gcalc-function-acos.vala
@@ -21,7 +21,7 @@
/**
* Function to calculate arc cosine of a {@link MathConstant} in radians
*/
-public class GCalc.GFunctionAcos : GFunction {
+public class GCalc.GFunctionAcos : Function {
construct {
name = "acos";
diff --git a/gcalc/gcalc-function-acosh.vala b/gcalc/gcalc-function-acosh.vala
index 1db19d6e..db65691c 100644
--- a/gcalc/gcalc-function-acosh.vala
+++ b/gcalc/gcalc-function-acosh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionAcosh : GFunction {
+public class GCalc.GFunctionAcosh : Function {
construct {
name = "acosh";
diff --git a/gcalc/gcalc-function-asin.vala b/gcalc/gcalc-function-asin.vala
index b1439559..59e13e3f 100644
--- a/gcalc/gcalc-function-asin.vala
+++ b/gcalc/gcalc-function-asin.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionAsin : GFunction {
+public class GCalc.GFunctionAsin : Function {
construct {
name = "asin";
diff --git a/gcalc/gcalc-function-asinh.vala b/gcalc/gcalc-function-asinh.vala
index 7b845ff9..f61465c3 100644
--- a/gcalc/gcalc-function-asinh.vala
+++ b/gcalc/gcalc-function-asinh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionAsinh : GFunction {
+public class GCalc.GFunctionAsinh : Function {
construct {
name = "asinh";
diff --git a/gcalc/gcalc-function-atan.vala b/gcalc/gcalc-function-atan.vala
index 32b56305..d9472440 100644
--- a/gcalc/gcalc-function-atan.vala
+++ b/gcalc/gcalc-function-atan.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionAtan : GFunction {
+public class GCalc.GFunctionAtan : Function {
construct {
name = "atan";
diff --git a/gcalc/gcalc-function-atanh.vala b/gcalc/gcalc-function-atanh.vala
index ce67a788..a3c56868 100644
--- a/gcalc/gcalc-function-atanh.vala
+++ b/gcalc/gcalc-function-atanh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionAtanh : GFunction {
+public class GCalc.GFunctionAtanh : Function {
construct {
name = "atanh";
diff --git a/gcalc/gcalc-function-cos.vala b/gcalc/gcalc-function-cos.vala
index 7ccbe00b..77964e06 100644
--- a/gcalc/gcalc-function-cos.vala
+++ b/gcalc/gcalc-function-cos.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionCos : GFunction {
+public class GCalc.GFunctionCos : Function {
construct {
name = "cos";
diff --git a/gcalc/gcalc-function-cosh.vala b/gcalc/gcalc-function-cosh.vala
index 34c784ea..42b67b4d 100644
--- a/gcalc/gcalc-function-cosh.vala
+++ b/gcalc/gcalc-function-cosh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionCosh : GFunction {
+public class GCalc.GFunctionCosh : Function {
construct {
name = "cosh";
diff --git a/gcalc/gcalc-function-exp.vala b/gcalc/gcalc-function-exp.vala
index 4fe520d1..ea8e78c1 100644
--- a/gcalc/gcalc-function-exp.vala
+++ b/gcalc/gcalc-function-exp.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionExp : GFunction {
+public class GCalc.GFunctionExp : Function {
construct {
name = "exp";
diff --git a/gcalc/gcalc-function-log.vala b/gcalc/gcalc-function-log.vala
index b3de7f02..cca5e2ad 100644
--- a/gcalc/gcalc-function-log.vala
+++ b/gcalc/gcalc-function-log.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionLog : GFunction {
+public class GCalc.GFunctionLog : Function {
construct {
name = "log";
diff --git a/gcalc/gcalc-function-sin.vala b/gcalc/gcalc-function-sin.vala
index c7d357c6..50fe82e7 100644
--- a/gcalc/gcalc-function-sin.vala
+++ b/gcalc/gcalc-function-sin.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionSin : GFunction {
+public class GCalc.GFunctionSin : Function {
construct {
name = "sin";
diff --git a/gcalc/gcalc-function-sinh.vala b/gcalc/gcalc-function-sinh.vala
index 6910a8aa..2725ce91 100644
--- a/gcalc/gcalc-function-sinh.vala
+++ b/gcalc/gcalc-function-sinh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionSinh : GFunction {
+public class GCalc.GFunctionSinh : Function {
construct {
name = "sinh";
diff --git a/gcalc/gcalc-function-sqrt.vala b/gcalc/gcalc-function-sqrt.vala
index 24e40fd7..af88312e 100644
--- a/gcalc/gcalc-function-sqrt.vala
+++ b/gcalc/gcalc-function-sqrt.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionSqrt : GFunction {
+public class GCalc.GFunctionSqrt : Function {
construct {
name = "sqrt";
diff --git a/gcalc/gcalc-function-tan.vala b/gcalc/gcalc-function-tan.vala
index 2a95c411..f90e6d7d 100644
--- a/gcalc/gcalc-function-tan.vala
+++ b/gcalc/gcalc-function-tan.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionTan : GFunction {
+public class GCalc.GFunctionTan : Function {
construct {
name = "tan";
diff --git a/gcalc/gcalc-function-tanh.vala b/gcalc/gcalc-function-tanh.vala
index 018997be..61d6b7da 100644
--- a/gcalc/gcalc-function-tanh.vala
+++ b/gcalc/gcalc-function-tanh.vala
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunctionTanh : GFunction {
+public class GCalc.GFunctionTanh : Function {
construct {
name = "tanh";
diff --git a/gcalc/gcalc-gfunction.vala b/gcalc/gcalc-function.vala
similarity index 91%
rename from gcalc/gcalc-gfunction.vala
rename to gcalc/gcalc-function.vala
index 86c74936..1c07cd97 100644
--- a/gcalc/gcalc-gfunction.vala
+++ b/gcalc/gcalc-function.vala
@@ -1,4 +1,4 @@
-/* gcalc-gfunction.vala
+/* gcalc-function.vala
*
* Copyright (C) 2018 Daniel Espinosa <esodan gmail com>
*
@@ -18,7 +18,7 @@
* Authors:
* Daniel Espinosa <esodan gmail com>
*/
-public class GCalc.GFunction : Expression, MathFunction, Hashable {
+public class GCalc.Function : Expression, MathFunction, Hashable {
ExpressionContainer _param_types = new ExpressionContainer ();
internal ExpressionContainer param_types { get { return _param_types; } }
@@ -29,7 +29,7 @@ public class GCalc.GFunction : Expression, MathFunction, Hashable {
construct {
name = "NoName";
}
- public GFunction.with_name (string name, int nparams) {
+ public Function.with_name (string name, int nparams) {
this.name = name;
n_params = nparams;
}
diff --git a/gcalc/meson.build b/gcalc/meson.build
index 363fcc73..f101f4b1 100644
--- a/gcalc/meson.build
+++ b/gcalc/meson.build
@@ -62,6 +62,7 @@ gcalc_sources = files([
'gcalc-expression.vala',
'gcalc-expression-container.vala',
'gcalc-expression-hash-map.vala',
+ 'gcalc-function.vala',
'gcalc-function-acos.vala',
'gcalc-function-acosh.vala',
'gcalc-function-asin.vala',
@@ -79,7 +80,6 @@ gcalc_sources = files([
'gcalc-function-tanh.vala',
'gcalc-error-result.vala',
'gcalc-gerror-result.vala',
- 'gcalc-gfunction.vala',
'gcalc-gmath-equation.vala',
'gcalc-gmath-equation-manager.vala',
'gcalc-gminus.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]