[BACK]Return to library.tex CVS log [TXT][DIR] Up to [local] / OpenXM / doc / OpenXM-specs

Diff for /OpenXM/doc/OpenXM-specs/library.tex between version 1.6 and 1.7

version 1.6, 2002/01/20 09:26:22 version 1.7, 2020/03/14 01:21:56
Line 1 
Line 1 
 %% $OpenXM: OpenXM/doc/OpenXM-specs/library.tex,v 1.5 2000/09/08 18:57:49 takayama Exp $  %% $OpenXM: OpenXM/doc/OpenXM-specs/library.tex,v 1.6 2002/01/20 09:26:22 takayama Exp $
 /*&jp  /*&jp
 \section{ OX サーバに対する C ライブラリインタフェース }  \section{ OX 泣若絲障 C ゃゃ潟帥с若 }
   
 一部のOX サーバでは C のライブラリとしてリンクして使用するもできる.  筝OX 泣若с C ゃ潟篏睡с.
 ライブラリとして使用するための C の関数は  ゃ篏睡 C ∽違
 Asir の OX サーバ用クライアント関数に似たインタフェースを持つ.  Asir OX 泣若ゃ≪潟∽違篌若ゃ潟帥с若鴻.
   
 ライブラリ関数には, CMO を binary encoding して渡す.  ゃ∽違, CMO binary encoding 羝<.
 ライブラリ関数からは, CMO が binary encoded form で戻る.  ゃ∽違, CMO binary encoded form ф祉.
   
 */  */
 /*&eg  /*&eg
Line 35  CMO should be converted into the binary encoded form t
Line 35  CMO should be converted into the binary encoded form t
   In case of error, -1 will be returned.    In case of error, -1 will be returned.
 */  */
 /*&jp  /*&jp
   この関数はライブラリインタフェースの初期化を行う.    ∽違ゃゃ潟帥с若鴻茵.
   OX サーバ xxx へ int32 を送るための byte order を type で指定する.    OX 泣若 xxx int32 byte order type ф絎.
   type = 0 の場合 native byte order が設定される.    type = 0 翫 native byte order 荐絎.
   type = 1 の場合 network byte order が設定される.    type = 1 翫 network byte order 荐絎.
   失敗した場合, -1 を戻す.    紊掩翫, -1 祉.
 */  */
   
 /*&C  /*&C
Line 53  CMO should be converted into the binary encoded form t
Line 53  CMO should be converted into the binary encoded form t
 Push the binary encoded CMO {\tt cmo} onto the stack of the OX server xxx.  Push the binary encoded CMO {\tt cmo} onto the stack of the OX server xxx.
 */  */
 /*&jp  /*&jp
 Binary encoded された CMO を, OX サーバ xxx  Binary encoded CMO , OX 泣若 xxx
 の stack に push する.   stack push .
 */  */
 /*&C  /*&C
   
Line 72  If the size exceeds the {\tt limit}, -1 will be return
Line 72  If the size exceeds the {\tt limit}, -1 will be return
 and the CMO is not popped and will not be written to {\tt cmo}.  and the CMO is not popped and will not be written to {\tt cmo}.
 */  */
 /*&jp  /*&jp
 Binary encoded された CMO (サイズは size) を,  OX サーバより  Binary encoded CMO (泣ゃ冴 size) ,  OX 泣若
 pop して, cmo に書き込む.  pop , cmo 吾莨若.
 戻り値は CMO のサイズを byte で戻す.  祉ゃ CMO 泣ゃ冴 byte ф祉.
 Stack underflow の場合の戻り値は 0 である.  Stack underflow 翫祉ゃ 0 с.
 ただし, limit より大きいサイズの CMO は書き込まれない.  , limit 紊с泣ゃ冴 CMO 吾莨若障.
 この場合, 戻り値は -1 となる.  翫, 祉ゃ -1 .
 */  */
   
 /*&C  /*&C
Line 91  Stack underflow の場合の戻り値は 0 である.
Line 91  Stack underflow の場合の戻り値は 0 である.
 Return the size of the CMO at the top of the stack.  Return the size of the CMO at the top of the stack.
 */  */
 /*&jp  /*&jp
 stack の一番上にある CMO のサイズを byte で戻す.  stack 筝筝 CMO 泣ゃ冴 byte ф祉.
 */  */
   
 \smallbreak  \smallbreak
Line 103  This function sends a stack machine command 
Line 103  This function sends a stack machine command 
 ({\tt OX\_COMMAND},int32 cmd) to a server.  ({\tt OX\_COMMAND},int32 cmd) to a server.
 */  */
 /*&jp  /*&jp
 ({\tt OX\_COMMAND},int32 cmd) をサーバに送る.  ({\tt OX\_COMMAND},int32 cmd) 泣若.
 */  */
   
 \begin{verbatim}  \begin{verbatim}
Line 115  a string {\tt s}.
Line 115  a string {\tt s}.
 {\tt s} should be acceptable by the parser of the server.  {\tt s} should be acceptable by the parser of the server.
 */  */
 /*&jp  /*&jp
 文字列 {\tt s} をサーバに実行させる. {\tt s} はサーバのパーザ  絖 {\tt s} 泣若絎茵. {\tt s} 泣若若
 が受理可能なものでなければならない.  純с違.
 */  */
   
 //&C  //&C
   
 /*&jp  /*&jp
 ライブラリモードのサンプルソースは {\tt OpenXM/doc/oxlib}  ゃ≪若泣潟純若鴻 {\tt OpenXM/doc/oxlib}
 にある.  .
 */  */
   
 /*&eg  /*&eg

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>