• R/O
  • SSH
  • HTTPS

globalbase: コミット


コミットメタ情報

リビジョン5959 (tree)
日時2019-01-26 00:22:39
作者joshua

ログメッセージ

math

変更サマリ

差分

--- modules/tinyState/trunk/proj/posix/m-makefile.in (revision 5958)
+++ modules/tinyState/trunk/proj/posix/m-makefile.in (revision 5959)
@@ -129,7 +129,7 @@
129129
130130 -rm -rf image/++PREFIX++/include/gt
131131 -rm -rf image/++PREFIX++/include/ts
132- -rm -rf image/++PREFIX++/include/mth
132+# -rm -rf image/++PREFIX++/include/mth
133133 -rm -rf image/++PREFIX++/include/_ts
134134 -rm -rf image/++PREFIX++/include/std
135135
@@ -138,7 +138,7 @@
138138
139139 cp -rfp ${SRC}/h/gtt image/++PREFIX++/include/gtt
140140 cp -rfp ${SRC}/h/gt image/++PREFIX++/include/gt
141- cp -rfp ${SRC}/h/mth image/++PREFIX++/include/mth
141+# cp -rfp ${SRC}/h/mth image/++PREFIX++/include/mth
142142 cp -rfp ${SRC}/h/ts/* image/++PREFIX++/include/ts
143143 cp -rfp ${SRC}/h/_ts image/++PREFIX++/include/_ts
144144
--- modules/tinyState/trunk/src/h/mth/c++/mObject.h (revision 5958)
+++ modules/tinyState/trunk/src/h/mth/c++/mObject.h (nonexistent)
@@ -1,39 +0,0 @@
1-
2-#ifndef ___mObject_cpp_H___
3-#define ___mObject_cpp_H___
4-
5-#include "std/includes.h"
6-#include "ts/c++/pObject.h"
7-
8-
9-#define __mOP1(__op) \
10- static float __op(float inp) {return ::__op##f(inp);}; \
11- static double __op(double inp) {return ::__op(inp);}; \
12- static long double __op(long double inp) {return ::__op##l(inp);};
13-
14-#define mSqrt mObject::sqrt
15-#define mSin mObject::sin
16-#define mCos mObject::cos
17-#define mTan mObject::tan
18-#define mAtan mObject::atan
19-#define mAcos mObject::acos
20-#define mAsin mObject::asin
21-#define mExp mObject::exp
22-#define mLog mObject::log
23-#define mFabs mObject::fabs
24-
25-class mObject : public pObject {
26-public:
27- __mOP1(sqrt)
28- __mOP1(sin)
29- __mOP1(cos)
30- __mOP1(tan)
31- __mOP1(atan)
32- __mOP1(acos)
33- __mOP1(asin)
34- __mOP1(exp)
35- __mOP1(log)
36- __mOP1(fabs)
37-};
38-
39-#endif
--- modules/tinyState/trunk/src/h/ts/c++/sPtr.h (revision 5958)
+++ modules/tinyState/trunk/src/h/ts/c++/sPtr.h (revision 5959)
@@ -13,12 +13,12 @@
1313 ptr = 0;
1414 }
1515 sPtr(__TYPE * org,int mutex_flag=0) {
16- _replace(org);
16+ _initial(org);
1717 if ( mutex_flag )
1818 stdObject::refUnlock();
1919 }
2020 sPtr(const sPtr & inp) {
21- replace(inp.ptr);
21+ _initial(inp.ptr);
2222 }
2323 ~sPtr() {
2424 replace(0);
@@ -66,6 +66,11 @@
6666 if ( ptr )
6767 ptr->addref();
6868 }
69+ void _initial(__TYPE * inp) {
70+ ptr = inp;
71+ if ( ptr )
72+ ptr->addref();
73+ }
6974 void replace(__TYPE * inp) {
7075 stdObject::refLock();
7176 _replace(inp);
旧リポジトリブラウザで表示