OSDN Git Service

update libMiMic
[mimic/MiMicSDK.git] / lib / src / NyLPC_cPtrStream.c
index 0fbb6e2..319bffb 100644 (file)
@@ -19,8 +19,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
  *\r
  * For further information please contact.\r
- *     http://nyatla.jp/\r
- *     <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
+ *  http://nyatla.jp/\r
+ *  <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
  *\r
  *********************************************************************************/\r
 \r
 \r
 \r
 const struct NyLPC_TcPtrStream_TInterface NyLPC_TcPtrStream_Interface={\r
-       NyLPC_cPtrStream_pread_func,\r
-       NyLPC_cPtrStream_write_func,\r
-       NyLPC_cPtrStream_pseek_func,\r
-       NyLPC_cPtrStream_close_func\r
+    NyLPC_cPtrStream_pread_func,\r
+    NyLPC_cPtrStream_write_func,\r
+    NyLPC_cPtrStream_pseek_func,\r
+    NyLPC_cPtrStream_close_func\r
 };\r
 \r
 /*private*/\r
 NyLPC_TInt32 NyLPC_cPtrStream_pread_func(NyLPC_TcPtrStream_t* i_inst,const void** o_buf_ptr,NyLPC_TUInt32 i_wait_msec)\r
 {\r
-       (void)i_inst;\r
-       (void)o_buf_ptr;\r
-       (void)i_wait_msec;\r
-       return -1;\r
+    (void)i_inst;\r
+    (void)o_buf_ptr;\r
+    (void)i_wait_msec;\r
+    return -1;\r
 }\r
 \r
 NyLPC_TBool NyLPC_cPtrStream_write_func(NyLPC_TcPtrStream_t* i_inst,const void* i_data,NyLPC_TInt16 i_length,NyLPC_TUInt32 i_wait_msec)\r
 {\r
-       (void)i_inst;\r
-       (void)i_data;\r
-       (void)i_length;\r
-       (void)i_wait_msec;\r
-       return NyLPC_TBool_FALSE;\r
+    (void)i_inst;\r
+    (void)i_data;\r
+    (void)i_length;\r
+    (void)i_wait_msec;\r
+    return NyLPC_TBool_FALSE;\r
 }\r
 \r
 \r
 void NyLPC_cPtrStream_pseek_func(NyLPC_TcPtrStream_t* i_inst,NyLPC_TUInt16 i_seek)\r
 {\r
-       (void)i_inst;\r
-       (void)i_seek;\r
+    (void)i_inst;\r
+    (void)i_seek;\r
 }\r
 \r
 void NyLPC_cPtrStream_close_func(NyLPC_TcPtrStream_t* i_inst)\r
 {\r
-       (void)i_inst;\r
+    (void)i_inst;\r
 }\r
 \r
 \r
@@ -71,22 +71,22 @@ void NyLPC_cPtrStream_close_func(NyLPC_TcPtrStream_t* i_inst)
  */\r
 NyLPC_TBool NyLPC_cPtrStream_writeln(NyLPC_TcPtrStream_t* i_inst,const void* i_data,NyLPC_TInt16 i_length,NyLPC_TUInt32 i_wait_msec)\r
 {\r
-       if(NyLPC_cPtrStream_write(i_inst,i_data,i_length,i_wait_msec)){\r
-               if(NyLPC_cPtrStream_write(i_inst,"\r\n",2,i_wait_msec)){\r
-                       return NyLPC_TBool_TRUE;\r
-               }\r
-       }\r
-       return NyLPC_TBool_FALSE;\r
+    if(NyLPC_cPtrStream_write(i_inst,i_data,i_length,i_wait_msec)){\r
+        if(NyLPC_cPtrStream_write(i_inst,"\r\n",2,i_wait_msec)){\r
+            return NyLPC_TBool_TRUE;\r
+        }\r
+    }\r
+    return NyLPC_TBool_FALSE;\r
 }\r
 /**\r
  * See Header file.\r
  */\r
 NyLPC_TBool NyLPC_cPtrStream_writeInt(NyLPC_TcPtrStream_t* i_inst,NyLPC_TInt32 i_val,NyLPC_TUInt32 i_wait_msec,NyLPC_TUInt32 i_base)\r
 {\r
-       NyLPC_TChar v[12];\r
-       NyLPC_itoa(i_val,v,i_base);\r
-       if(NyLPC_cPtrStream_write(i_inst,v,strlen(v),i_wait_msec)){\r
-               return NyLPC_TBool_TRUE;\r
-       }\r
-       return NyLPC_TBool_FALSE;\r
+    NyLPC_TChar v[12];\r
+    NyLPC_itoa(i_val,v,i_base);\r
+    if(NyLPC_cPtrStream_write(i_inst,v,strlen(v),i_wait_msec)){\r
+        return NyLPC_TBool_TRUE;\r
+    }\r
+    return NyLPC_TBool_FALSE;\r
 }\r