本文整理汇总了C++中PrintLongInteger函数的典型用法代码示例。如果您正苦于以下问题:C++ PrintLongInteger函数的具体用法?C++ PrintLongInteger怎么用?C++ PrintLongInteger使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PrintLongInteger函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: PrintFactJNGetVar2
globle void PrintFactJNGetVar2(
void *theEnv,
const char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarJN2Call *hack;
hack = (struct factGetVarJN2Call *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(fact-jn-getvar-2");
EnvPrintRouter(theEnv,logicalName," p");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern + 1);
EnvPrintRouter(theEnv,logicalName," s");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
if (hack->lhs)
{ EnvPrintRouter(theEnv,logicalName," L"); }
else if (hack->rhs)
{ EnvPrintRouter(theEnv,logicalName," R"); }
EnvPrintRouter(theEnv,logicalName,")");
#else
#if MAC_XCD
#pragma unused(theEnv)
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例2: PrintFactPNConstant2
globle void PrintFactPNConstant2(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factConstantPN2Call *hack;
hack = (struct factConstantPN2Call *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,(char*)"(fact-pn-constant2 ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
EnvPrintRouter(theEnv,logicalName,(char*)" ");
PrintLongInteger(theEnv,logicalName,(long long) hack->offset);
if (hack->testForEquality) EnvPrintRouter(theEnv,logicalName,(char*)" = ");
else EnvPrintRouter(theEnv,logicalName,(char*)" != ");
PrintAtom(theEnv,logicalName,GetFirstArgument()->type,GetFirstArgument()->value);
EnvPrintRouter(theEnv,logicalName,(char*)")");
#else
#endif
}
示例3: PrintObjectGetVarJN2
static void PrintObjectGetVarJN2(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct ObjectMatchVar2 *hack;
hack = (struct ObjectMatchVar2 *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(obj-slot-quick-var ");
PrintLongInteger(theEnv,logicalName,(long) hack->whichPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->whichSlot)));
if (hack->fromBeginning)
{
EnvPrintRouter(theEnv,logicalName," B");
PrintLongInteger(theEnv,logicalName,(long) (hack->beginningOffset + 1));
}
if (hack->fromEnd)
{
EnvPrintRouter(theEnv,logicalName," E");
PrintLongInteger(theEnv,logicalName,(long) (hack->endOffset + 1));
}
EnvPrintRouter(theEnv,logicalName,")");
#else
#if MAC_MCW || IBM_MCW || MAC_XCD
#pragma unused(theEnv)
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例4: PrintFactJNGetVar3
globle void PrintFactJNGetVar3(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarJN3Call *hack;
hack = (struct factGetVarJN3Call *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,(char*)"(fact-jn-getvar-3 ");
if (hack->fromBeginning) EnvPrintRouter(theEnv,logicalName,(char*)"t ");
else EnvPrintRouter(theEnv,logicalName,(char*)"f ");
if (hack->fromEnd) EnvPrintRouter(theEnv,logicalName,(char*)"t ");
else EnvPrintRouter(theEnv,logicalName,(char*)"f ");
PrintLongInteger(theEnv,logicalName,(long long) hack->beginOffset);
EnvPrintRouter(theEnv,logicalName,(char*)" ");
PrintLongInteger(theEnv,logicalName,(long long) hack->endOffset);
EnvPrintRouter(theEnv,logicalName,(char*)" ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
EnvPrintRouter(theEnv,logicalName,(char*)" p");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern + 1);
if (hack->lhs)
{ EnvPrintRouter(theEnv,logicalName,(char*)" L"); }
else if (hack->rhs)
{ EnvPrintRouter(theEnv,logicalName,(char*)" R"); }
EnvPrintRouter(theEnv,logicalName,(char*)")");
#else
#endif
}
示例5: PrintFactPNGetVar3
globle void PrintFactPNGetVar3(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarPN3Call *hack;
hack = (struct factGetVarPN3Call *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,(char*)"(fact-pn-getvar-3 ");
if (hack->fromBeginning) EnvPrintRouter(theEnv,logicalName,(char*)"t ");
else EnvPrintRouter(theEnv,logicalName,(char*)"f ");
if (hack->fromEnd) EnvPrintRouter(theEnv,logicalName,(char*)"t B");
else EnvPrintRouter(theEnv,logicalName,(char*)"f B");
PrintLongInteger(theEnv,logicalName,(long long) hack->beginOffset);
EnvPrintRouter(theEnv,logicalName,(char*)" E");
PrintLongInteger(theEnv,logicalName,(long long) hack->endOffset);
EnvPrintRouter(theEnv,logicalName,(char*)" S");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
EnvPrintRouter(theEnv,logicalName,(char*)")");
#else
#endif
}
示例6: EnvArgRangeCheck
globle int EnvArgRangeCheck(
void *theEnv,
char *functionName,
int min,
int max)
{
int numberOfArguments;
numberOfArguments = EnvRtnArgCount(theEnv);
if ((numberOfArguments < min) || (numberOfArguments > max))
{
PrintErrorID(theEnv,"ARGACCES",1,FALSE);
EnvPrintRouter(theEnv,WERROR,"Function ");
EnvPrintRouter(theEnv,WERROR,functionName);
EnvPrintRouter(theEnv,WERROR," expected at least ");
PrintLongInteger(theEnv,WERROR,(long) min);
EnvPrintRouter(theEnv,WERROR," and no more than ");
PrintLongInteger(theEnv,WERROR,(long) max);
EnvPrintRouter(theEnv,WERROR," arguments.\n");
SetHaltExecution(theEnv,TRUE);
SetEvaluationError(theEnv,TRUE);
return(-1);
}
return(numberOfArguments);
}
示例7: PrintFactJNGetVar1
globle void PrintFactJNGetVar1(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarJN1Call *hack;
hack = (struct factGetVarJN1Call *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,(char*)"(fact-jn-getvar-1 ");
if (hack->factAddress) EnvPrintRouter(theEnv,logicalName,(char*)"t ");
else EnvPrintRouter(theEnv,logicalName,(char*)"f ");
if (hack->allFields) EnvPrintRouter(theEnv,logicalName,(char*)"t ");
else EnvPrintRouter(theEnv,logicalName,(char*)"f ");
EnvPrintRouter(theEnv,logicalName,(char*)"p");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern + 1);
EnvPrintRouter(theEnv,logicalName,(char*)" ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichField);
EnvPrintRouter(theEnv,logicalName,(char*)" s");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
if (hack->lhs)
{ EnvPrintRouter(theEnv,logicalName,(char*)" L"); }
else if (hack->rhs)
{ EnvPrintRouter(theEnv,logicalName,(char*)" R"); }
EnvPrintRouter(theEnv,logicalName,(char*)")");
#else
#endif
}
示例8: PrintFactPNConstant2
globle void PrintFactPNConstant2(
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factConstantPN2Call *hack;
hack = (struct factConstantPN2Call *) ValueToBitMap(theValue);
PrintRouter(logicalName,"(fact-pn-constant2 ");
PrintLongInteger(logicalName,(long) hack->whichSlot);
PrintRouter(logicalName," ");
PrintLongInteger(logicalName,(long) hack->offset);
if (hack->testForEquality) PrintRouter(logicalName," = ");
else PrintRouter(logicalName," != ");
PrintAtom(logicalName,GetFirstArgument()->type,GetFirstArgument()->value);
PrintRouter(logicalName,")");
#else
#if MAC_MPW || MAC_MCW
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例9: PrintObjectGetVarJN1
static void PrintObjectGetVarJN1(
void *theEnv,
const char *logicalName,
void *theValue)
{
#if DEVELOPER
struct ObjectMatchVar1 *hack;
hack = (struct ObjectMatchVar1 *) ValueToBitMap(theValue);
if (hack->objectAddress)
{
EnvPrintRouter(theEnv,logicalName,"(obj-ptr ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern);
}
else if (hack->allFields)
{
EnvPrintRouter(theEnv,logicalName,"(obj-slot-contents ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->whichSlot)));
}
else
{
EnvPrintRouter(theEnv,logicalName,"(obj-slot-var ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->whichSlot)));
EnvPrintRouter(theEnv,logicalName," ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichField);
}
EnvPrintRouter(theEnv,logicalName,")");
#else
#endif
}
示例10: PrintFactPNGetVar1
globle void PrintFactPNGetVar1(
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarPN1Call *hack;
hack = (struct factGetVarPN1Call *) ValueToBitMap(theValue);
PrintRouter(logicalName,"(fact-pn-getvar-1 ");
if (hack->factAddress) PrintRouter(logicalName,"t ");
else PrintRouter(logicalName,"f ");
if (hack->allFields) PrintRouter(logicalName,"t F");
else PrintRouter(logicalName,"f F");
PrintLongInteger(logicalName,(long) hack->whichField);
PrintRouter(logicalName," S");
PrintLongInteger(logicalName,(long) hack->whichSlot);
PrintRouter(logicalName,")");
#else
#if MAC_MPW || MAC_MCW
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例11: PrintFactPNGetVar3
globle void PrintFactPNGetVar3(
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factGetVarPN3Call *hack;
hack = (struct factGetVarPN3Call *) ValueToBitMap(theValue);
PrintRouter(logicalName,"(fact-pn-getvar-3 ");
if (hack->fromBeginning) PrintRouter(logicalName,"t ");
else PrintRouter(logicalName,"f ");
if (hack->fromEnd) PrintRouter(logicalName,"t B");
else PrintRouter(logicalName,"f B");
PrintLongInteger(logicalName,(long) hack->beginOffset);
PrintRouter(logicalName," E");
PrintLongInteger(logicalName,(long) hack->endOffset);
PrintRouter(logicalName," S");
PrintLongInteger(logicalName,(long) hack->whichSlot);
PrintRouter(logicalName,")");
#else
#if MAC_MPW || MAC_MCW
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例12: PrintObjectGetVarPN2
static void PrintObjectGetVarPN2(
void *theEnv,
const char *logicalName,
void *theValue)
{
#if DEVELOPER
struct ObjectMatchVar2 *hack;
hack = (struct ObjectMatchVar2 *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(ptn-obj-slot-quick-var ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->whichSlot)));
if (hack->fromBeginning)
{
EnvPrintRouter(theEnv,logicalName," B");
PrintLongInteger(theEnv,logicalName,(long long) (hack->beginningOffset + 1));
}
if (hack->fromEnd)
{
EnvPrintRouter(theEnv,logicalName," E");
PrintLongInteger(theEnv,logicalName,(long long) (hack->endOffset + 1));
}
EnvPrintRouter(theEnv,logicalName,")");
#else
#endif
}
示例13: PrintJNSimpleCompareFunction3
static void PrintJNSimpleCompareFunction3(
void *theEnv,
const char *logicalName,
void *theValue)
{
#if DEVELOPER
struct ObjectCmpJoinSingleSlotVars3 *hack;
hack = (struct ObjectCmpJoinSingleSlotVars3 *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(jslot-cmp3 ");
EnvPrintRouter(theEnv,logicalName,hack->pass ? "p " : "n ");
PrintLongInteger(theEnv,logicalName,(long long) hack->firstPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->firstSlot)));
EnvPrintRouter(theEnv,logicalName,hack->firstFromBeginning ? " B" : " E");
PrintLongInteger(theEnv,logicalName,(long long) hack->firstOffset);
EnvPrintRouter(theEnv,logicalName," ");
PrintLongInteger(theEnv,logicalName,(long long) hack->secondPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->secondSlot)));
EnvPrintRouter(theEnv,logicalName,hack->secondFromBeginning ? " B" : " E");
PrintLongInteger(theEnv,logicalName,(long long) hack->secondOffset);
EnvPrintRouter(theEnv,logicalName,")");
#else
#endif
}
示例14: PrintJNSimpleCompareFunction2
static void PrintJNSimpleCompareFunction2(
void *theEnv,
char *logicalName,
void *theValue)
{
#if DEVELOPER
struct ObjectCmpJoinSingleSlotVars2 *hack;
hack = (struct ObjectCmpJoinSingleSlotVars2 *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(jslot-cmp2 ");
EnvPrintRouter(theEnv,logicalName,hack->pass ? "p " : "n ");
PrintLongInteger(theEnv,logicalName,(long) hack->firstPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->firstSlot)));
EnvPrintRouter(theEnv,logicalName,hack->fromBeginning ? " B" : " E");
PrintLongInteger(theEnv,logicalName,(long) hack->offset);
EnvPrintRouter(theEnv,logicalName," ");
PrintLongInteger(theEnv,logicalName,(long) hack->secondPattern);
EnvPrintRouter(theEnv,logicalName," ");
EnvPrintRouter(theEnv,logicalName,ValueToString(FindIDSlotName(theEnv,(unsigned) hack->secondSlot)));
EnvPrintRouter(theEnv,logicalName,")");
#else
#if MAC_MCW || IBM_MCW || MAC_XCD
#pragma unused(theEnv)
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}
示例15: PrintFactSlotLength
globle void PrintFactSlotLength(
void *theEnv,
const char *logicalName,
void *theValue)
{
#if DEVELOPER
struct factCheckLengthPNCall *hack;
hack = (struct factCheckLengthPNCall *) ValueToBitMap(theValue);
EnvPrintRouter(theEnv,logicalName,"(slot-length ");
PrintLongInteger(theEnv,logicalName,(long long) hack->whichSlot);
EnvPrintRouter(theEnv,logicalName," ");
if (hack->exactly) EnvPrintRouter(theEnv,logicalName,"= ");
else EnvPrintRouter(theEnv,logicalName,">= ");
PrintLongInteger(theEnv,logicalName,(long long) hack->minLength);
EnvPrintRouter(theEnv,logicalName,")");
#else
#if MAC_XCD
#pragma unused(theEnv)
#pragma unused(logicalName)
#pragma unused(theValue)
#endif
#endif
}