en:docs:tk:som:sc:pr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:docs:tk:som:sc:pr [2025/04/08 14:46] – [somtfatal, somtfatalSL function] prokusheven:docs:tk:som:sc:pr [2026/02/16 08:23] (current) prokushev
Line 82: Line 82:
 Note: somtsearchFile version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtsearchFile version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-==== somttraverseParents, somttraverseParentsSL function ==== 
- 
-<code C> 
-SOMEXTERN int somttraverseParents(FILE *fp, Entry * cls, Entry *arg, int (*fn)(FILE*,Entry*,Entry*), SMTraverse flg); 
-SOMEXTERN int SOMLINK somttraverseParentsSL(FILE *fp, Entry * cls, Entry *arg, int (*fn)(FILE*,Entry*,Entry*), SMTraverse flg); 
-</code> 
- 
-Note: somttraverseParents version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
  
 ==== somtloadSL function ==== ==== somtloadSL function ====
Line 118: Line 110:
 Note: somtGetType version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtGetType version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-==== somtokfopen, somtokfopenSL function ==== 
- 
-<code C> 
-SOMEXTERN FILE * somtokfopen(char *path, char *mode); 
-SOMEXTERN FILE * SOMLINK somtokfopenSL(char *path, char *mode); 
-</code> 
- 
-Same as C fopen function. 
- 
-Note: somtokfopen version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
- 
-==== somtokrename, somtokrenameSL function ==== 
- 
-<code C> 
-SOMEXTERN int somtokrename(const char*, const char *); 
-SOMEXTERN int SOMLINK somtokrenameSL(const char*, const char *); 
-</code> 
- 
-Note: somtokrename version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
- 
-==== somtopenEmitFile, somtopenEmitFileSL function ==== 
- 
-<code C> 
-SOMEXTERN FILE * somtopenEmitFile(char *file, char *ext); 
-SOMEXTERN FILE * SOMLINK somtopenEmitFileSL(char *file, char *ext); 
-</code> 
- 
-Note: somtopenEmitFile version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
  
 ==== somtisDbcs, somtisDbcsSL function ==== ==== somtisDbcs, somtisDbcsSL function ====
Line 401: Line 365:
  
 Note: somtdbcsLastChar version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtdbcsLastChar version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 ==== somtdbcsScan, somtdbcsScanSL function ==== ==== somtdbcsScan, somtdbcsScanSL function ====
  
Line 409: Line 374:
  
 Note: somtdbcsScan version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtdbcsScan version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
-==== somtdiskFull, somtdiskFullSL function ==== 
- 
-<code C> 
-SOMEXTERN int somtdiskFull(FILE *fp); 
-SOMEXTERN int SOMLINK somtdiskFullSL(FILE *fp); 
-</code> 
- 
-Note: somtdiskFull version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtfclose, somtfcloseSL function ==== 
- 
-<code C> 
-SOMEXTERN int somtfclose(FILE *fp); 
-SOMEXTERN int SOMLINK somtfcloseSL(FILE *fp); 
-</code> 
- 
-Same as C fclose function. 
- 
-Note: somtfclose version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
  
 ==== somtisparent, somtisparentSL function ==== ==== somtisparent, somtisparentSL function ====
Line 437: Line 384:
 Note: somtisparent version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtisparent version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
  
- 
-==== somtokremove, somtokremoveSL function ==== 
- 
-<code C> 
-SOMEXTERN int somtokremove(char *file); 
-SOMEXTERN int SOMLINK somtokremoveSL(char *file); 
-</code> 
- 
-Alias of C remove function. 
- 
-Note: somtokremove version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
  
 ==== somtunload, somtunloadSL function ==== ==== somtunload, somtunloadSL function ====
Line 492: Line 428:
  
 Note: somtcalcFileName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtcalcFileName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 ==== somtcleanFilesFatal, somtcleanFilesFatalSL function ==== ==== somtcleanFilesFatal, somtcleanFilesFatalSL function ====
  
Line 502: Line 439:
  
 Note: somtcleanFilesFatal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtcleanFilesFatal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somttraverseParents, somttraverseParentsSL function ====
 +
 +<code C>
 +SOMEXTERN int somttraverseParents(FILE *fp, Entry * cls, Entry *arg, int (*fn)(FILE*,Entry*,Entry*), SMTraverse flg);
 +SOMEXTERN int SOMLINK somttraverseParentsSL(FILE *fp, Entry * cls, Entry *arg, int (*fn)(FILE*,Entry*,Entry*), SMTraverse flg);
 +</code>
 +
 +Note: somttraverseParents version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somtokfopen, somtokfopenSL function ====
 +
 +<code C>
 +SOMEXTERN FILE * somtokfopen(char *path, char *mode);
 +SOMEXTERN FILE * SOMLINK somtokfopenSL(char *path, char *mode);
 +</code>
 +
 +Same as C fopen function.
 +
 +Note: somtokfopen version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somtokrename, somtokrenameSL function ====
 +
 +<code C>
 +SOMEXTERN int somtokrename(const char*, const char *);
 +SOMEXTERN int SOMLINK somtokrenameSL(const char*, const char *);
 +</code>
 +
 +Note: somtokrename version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somtopenEmitFile, somtopenEmitFileSL function ====
 +
 +<code C>
 +SOMEXTERN FILE * somtopenEmitFile(char *file, char *ext);
 +SOMEXTERN FILE * SOMLINK somtopenEmitFileSL(char *file, char *ext);
 +</code>
 +
 +Note: somtopenEmitFile version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somtdiskFull, somtdiskFullSL function ====
 +
 +<code C>
 +SOMEXTERN int somtdiskFull(FILE *fp);
 +SOMEXTERN int SOMLINK somtdiskFullSL(FILE *fp);
 +</code>
 +
 +Note: somtdiskFull version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +==== somtfclose, somtfcloseSL function ====
 +
 +<code C>
 +SOMEXTERN int somtfclose(FILE *fp);
 +SOMEXTERN int SOMLINK somtfcloseSL(FILE *fp);
 +</code>
 +
 +Same as C fclose function.
 +
 +Note: somtfclose version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
 +
 +==== somtokremove, somtokremoveSL function ====
 +
 +<code C>
 +SOMEXTERN int somtokremove(char *file);
 +SOMEXTERN int SOMLINK somtokremoveSL(char *file);
 +</code>
 +
 +Alias of C remove function.
 +
 +Note: somtokremove version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
 ==== somtemitTypes, somtemitTypesSL function ==== ==== somtemitTypes, somtemitTypesSL function ====
Line 511: Line 516:
  
 Note: somtemitTypes version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtemitTypes version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
-==== somtfatal function ====+==== somtfatal, somtfatalSL function ====
  
 <code c> <code c>
-SOMEXTERN void somtfatal(char *file, long lineno, char *fmt, ...);+SOMEXTERN void OPTLINK somtfatal(char *file, long lineno, char *fmt, ...);
 </code> </code>
  
 Used by: IBM SOM 2.1 NT in SOMIPC.EXE Used by: IBM SOM 2.1 NT in SOMIPC.EXE
 +
 +<code c>
 +SOMEXTERN void SOMLINK somtfatalSL(char *file, long lineno, char *fmt, ...);
 +</code>
 +
 +Used by: 
 +
 +
 ==== somtinternal, somtinternalSL function ==== ==== somtinternal, somtinternalSL function ====
  
Line 686: Line 699:
  
 Note: somtgenSeqName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtgenSeqName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
-==== somtmrifatal, somtmrifatalSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtmrifatal(char *file, long lineno, int msgnum,...); 
-SOMEXTERN void SOMLINK somtmrifatalSL(char *file, long lineno, int msgnum,...); 
-</code> 
- 
-Note: somtmrifatal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtmriinternal, somtmriinternalSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtmriinternal(char *file, long lineno, int msgnum,...); 
-SOMEXTERN void SOMLINK somtmriinternalSL(char *file, long lineno, int msgnum,...); 
-</code> 
- 
-Note: somtmriinternal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtmrierror, somtmrierrorSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtmrierror(char *file, long lineno, int msgnum,...); 
-SOMEXTERN void SOMLINK somtmrierrorSL(char *file, long lineno, int msgnum,...); 
-</code> 
- 
-Note: somtmrierror version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtmrimsg, somtmrimsgSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtmrimsg(char *file, long lineno, int msgnum,...); 
-SOMEXTERN void SOMLINK somtmrimsgSL(char *file, long lineno, int msgnum,...); 
-</code> 
- 
-Note: somtmrimsg version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtmriwarn, somtmriwarnSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtmriwarn(char *file, long lineno, int msgnum,...); 
-SOMEXTERN void SOMLINK somtmriwarnSL(char *file, long lineno, int msgnum,...); 
-</code> 
- 
-Note: somtmriwarn version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
-==== somtsetInternalMessages, somtsetInternalMessagesSL function ==== 
- 
-<code c> 
-SOMEXTERN void somtsetInternalMessages(char *too_long, char *cant_continue, char *segv, char *bus); 
-SOMEXTERN void SOMLINK somtsetInternalMessagesSL(char *too_long, char *cant_continue, char *segv, char *bus); 
-</code> 
- 
-Note: somtsetInternalMessages version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  
  
 ==== somtisvoid, somtisvoidSL function ==== ==== somtisvoid, somtisvoidSL function ====
Line 1265: Line 1230:
 Note: somtoidlComment version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtoidlComment version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-==== somtscmsg, somtscmsgSL function ====+==== Message functions ==== 
 + 
 +=== somtscmsg, somtscmsgSL function ===
  
 <code c> <code c>
Line 1273: Line 1240:
  
 Note: somtscmsg version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtscmsg version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtmrifatal, somtmrifatalSL function ===
 +
 +<code c>
 +SOMEXTERN void somtmrifatal(char *file, long lineno, int msgnum,...);
 +SOMEXTERN void SOMLINK somtmrifatalSL(char *file, long lineno, int msgnum,...);
 +</code>
 +
 +Note: somtmrifatal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtmriinternal, somtmriinternalSL function ===
 +
 +<code c>
 +SOMEXTERN void somtmriinternal(char *file, long lineno, int msgnum,...);
 +SOMEXTERN void SOMLINK somtmriinternalSL(char *file, long lineno, int msgnum,...);
 +</code>
 +
 +Note: somtmriinternal version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtmrierror, somtmrierrorSL function ===
 +
 +<code c>
 +SOMEXTERN void somtmrierror(char *file, long lineno, int msgnum,...);
 +SOMEXTERN void SOMLINK somtmrierrorSL(char *file, long lineno, int msgnum,...);
 +</code>
 +
 +Note: somtmrierror version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtmrimsg, somtmrimsgSL function ===
 +
 +<code c>
 +SOMEXTERN void somtmrimsg(char *file, long lineno, int msgnum,...);
 +SOMEXTERN void SOMLINK somtmrimsgSL(char *file, long lineno, int msgnum,...);
 +</code>
 +
 +Note: somtmrimsg version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtmriwarn, somtmriwarnSL function ===
 +
 +<code c>
 +SOMEXTERN void somtmriwarn(char *file, long lineno, int msgnum,...);
 +SOMEXTERN void SOMLINK somtmriwarnSL(char *file, long lineno, int msgnum,...);
 +</code>
 +
 +Note: somtmriwarn version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +=== somtsetInternalMessages, somtsetInternalMessagesSL function ===
 +
 +<code c>
 +SOMEXTERN void somtsetInternalMessages(char *too_long, char *cant_continue, char *segv, char *bus);
 +SOMEXTERN void SOMLINK somtsetInternalMessagesSL(char *too_long, char *cant_continue, char *segv, char *bus);
 +</code>
 +
 +Note: somtsetInternalMessages version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
 +
 +
 +
 +
 +
 +
 ==== somtshortDefine, somtshortDefineSL function ==== ==== somtshortDefine, somtshortDefineSL function ====
  
Line 1407: Line 1434:
  
 Note: somtGetReintroducedMethods version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.  Note: somtGetReintroducedMethods version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. 
-===== Symbol table support functions =====+==== Symbol table support functions ====
  
-===== somtallocBuf, somtallocBufSL function =====+=== somtallocBuf, somtallocBufSL function ===
  
 Note: somtallocBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtallocBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtuniqString, somtuniqStringSL function =====+=== somtuniqString, somtuniqStringSL function ===
  
 <code c> <code c>
Line 1424: Line 1451:
 Note: somtuniqString version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtuniqString version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtkeyword, somtkeywordSL function =====+=== somtkeyword, somtkeywordSL function ===
  
 <code C> <code C>
Line 1435: Line 1462:
 Note: somtkeyword version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtkeyword version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtaddEntry, somtaddEntrySL function =====+=== somtaddEntry, somtaddEntrySL function ===
  
 <code C> <code C>
Line 1446: Line 1473:
 Note: somtaddEntry version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtaddEntry version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtgetEntry, somtgetEntrySL function =====+=== somtgetEntry, somtgetEntrySL function ===
  
 <code C> <code C>
Line 1457: Line 1484:
 Note: somtgetEntry version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtgetEntry version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtstabFirst, somtstabFirstSL function =====+=== somtstabFirst, somtstabFirstSL function ===
  
 <code C> <code C>
Line 1468: Line 1495:
 Note: somtstabFirst version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtstabFirst version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtstabNext, somtstabNextSL function =====+=== somtstabNext, somtstabNextSL function ===
  
 <code C> <code C>
Line 1479: Line 1506:
 Note: somtstabNext version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtstabNext version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtstabFirstName, somtstabFirstNameSL function =====+=== somtstabFirstName, somtstabFirstNameSL function ===
  
 <code C> <code C>
Line 1490: Line 1517:
 Note: somtstabFirstName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtstabFirstName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtstabNextName, somtstabNextNameSL function =====+=== somtstabNextName, somtstabNextNameSL function ===
  
 <code C> <code C>
Line 1501: Line 1528:
 Note: somtstabNextName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtstabNextName version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtcreateMemBuf, somtcreateMemBufSL function =====+=== somtcreateMemBuf, somtcreateMemBufSL function ===
  
 <code c> <code c>
Line 1510: Line 1537:
 Note: somtcreateMemBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtcreateMemBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtcreateStab, somtcreateStabSL function =====+=== somtcreateStab, somtcreateStabSL function ===
  
 <code C> <code C>
Line 1521: Line 1548:
 Note: somtcreateStab version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtcreateStab version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somticstrcmp, somticstrcmpSL function =====+=== somticstrcmp, somticstrcmpSL function ===
  
 <code C> <code C>
Line 1532: Line 1559:
 Note: somticstrcmp version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somticstrcmp version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtaddEntryBuf, somtaddEntryBufSL function =====+=== somtaddEntryBuf, somtaddEntryBufSL function ===
  
 <code C> <code C>
Line 1543: Line 1570:
 Note: somtaddEntryBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtaddEntryBuf version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== somtfreeStab, somtfreeStabSL function =====+=== somtfreeStab, somtfreeStabSL function ===
  
 <code c> <code c>
Line 1552: Line 1579:
 Note: somtfreeStab version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink. Note: somtfreeStab version uses default compiler calling convention. For IBM SOM 3.0 for NT it is Optlink.
  
-===== 3. somFree Emitter Framework =====+===== somFree Emitter Framework =====
  
 ==== SOMTAttributeEntryC Class ==== ==== SOMTAttributeEntryC Class ====