Another bunch of typos eliminated
This commit is contained in:
		@@ -60,7 +60,7 @@ static sxu32 BinHash(const void *pSrc, sxu32 nLen) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Return the total number of entries in a given hashmap.
 | 
					 * Return the total number of entries in a given hashmap.
 | 
				
			||||||
 * If bRecurisve is set to TRUE then recurse on hashmap entries.
 | 
					 * If bRecursive is set to TRUE then recurse on hashmap entries.
 | 
				
			||||||
 * If the nesting limit is reached,this function abort immediately.
 | 
					 * If the nesting limit is reached,this function abort immediately.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static sxi64 HashmapCount(ph7_hashmap *pMap, int bRecursive, int iRecCount) {
 | 
					static sxi64 HashmapCount(ph7_hashmap *pMap, int bRecursive, int iRecCount) {
 | 
				
			||||||
@@ -752,7 +752,7 @@ static sxi32 HashmapInsertNode(ph7_hashmap *pMap, ph7_hashmap_node *pNode, int b
 | 
				
			|||||||
 * or < 0 if pRight is greater than pLeft.
 | 
					 * or < 0 if pRight is greater than pLeft.
 | 
				
			||||||
 * For a full description on ph7_values comparison,refer to the implementation
 | 
					 * For a full description on ph7_values comparison,refer to the implementation
 | 
				
			||||||
 * of the [PH7_MemObjCmp()] function defined in memobj.c or the official
 | 
					 * of the [PH7_MemObjCmp()] function defined in memobj.c or the official
 | 
				
			||||||
 * documenation.
 | 
					 * documentation.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static sxi32 HashmapNodeCmp(ph7_hashmap_node *pLeft, ph7_hashmap_node *pRight, int bStrict) {
 | 
					static sxi32 HashmapNodeCmp(ph7_hashmap_node *pLeft, ph7_hashmap_node *pRight, int bStrict) {
 | 
				
			||||||
	ph7_value sObj1, sObj2;
 | 
						ph7_value sObj1, sObj2;
 | 
				
			||||||
@@ -760,7 +760,7 @@ static sxi32 HashmapNodeCmp(ph7_hashmap_node *pLeft, ph7_hashmap_node *pRight, i
 | 
				
			|||||||
	if(pLeft == pRight) {
 | 
						if(pLeft == pRight) {
 | 
				
			||||||
		/*
 | 
							/*
 | 
				
			||||||
		 * Same node.Refer to the sort() implementation defined
 | 
							 * Same node.Refer to the sort() implementation defined
 | 
				
			||||||
		 * below for more information on this sceanario.
 | 
							 * below for more information on this scenario.
 | 
				
			||||||
		 */
 | 
							 */
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
@@ -1910,7 +1910,7 @@ static sxi32 HashmapCmpCallback6(ph7_hashmap_node *pA, ph7_hashmap_node *pB, voi
 | 
				
			|||||||
	/* Invoke the callback */
 | 
						/* Invoke the callback */
 | 
				
			||||||
	rc = PH7_VmCallUserFunction(pA->pMap->pVm, pCallback, 2, apArg, &sResult);
 | 
						rc = PH7_VmCallUserFunction(pA->pMap->pVm, pCallback, 2, apArg, &sResult);
 | 
				
			||||||
	if(rc != SXRET_OK) {
 | 
						if(rc != SXRET_OK) {
 | 
				
			||||||
		/* An error occured while calling user defined function [i.e: not defined] */
 | 
							/* An error ocurred while calling user defined function [i.e: not defined] */
 | 
				
			||||||
		rc = -1; /* Set a dummy result */
 | 
							rc = -1; /* Set a dummy result */
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		/* Extract callback result */
 | 
							/* Extract callback result */
 | 
				
			||||||
@@ -2488,7 +2488,7 @@ static int ph7_hashmap_key_exists(ph7_context *pCtx, int nArg, ph7_value **apArg
 | 
				
			|||||||
 * Parameter
 | 
					 * Parameter
 | 
				
			||||||
 *  The array to get the value from.
 | 
					 *  The array to get the value from.
 | 
				
			||||||
 * Return
 | 
					 * Return
 | 
				
			||||||
 *  Poped value or NULL on failure.
 | 
					 *  Popped value or NULL on failure.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
static int ph7_hashmap_pop(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
					static int ph7_hashmap_pop(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			||||||
	ph7_hashmap *pMap;
 | 
						ph7_hashmap *pMap;
 | 
				
			||||||
@@ -3546,7 +3546,7 @@ static int ph7_hashmap_search(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			|||||||
		/* Extract node value */
 | 
							/* Extract node value */
 | 
				
			||||||
		pVal = HashmapExtractNodeValue(pEntry);
 | 
							pVal = HashmapExtractNodeValue(pEntry);
 | 
				
			||||||
		if(pVal) {
 | 
							if(pVal) {
 | 
				
			||||||
			/* Make a copy of the vuurent values since the comparison routine
 | 
								/* Make a copy of the current values since the comparison routine
 | 
				
			||||||
			 * can change their type.
 | 
								 * can change their type.
 | 
				
			||||||
			 */
 | 
								 */
 | 
				
			||||||
			PH7_MemObjLoad(pVal, &sVal);
 | 
								PH7_MemObjLoad(pVal, &sVal);
 | 
				
			||||||
@@ -4840,7 +4840,7 @@ static int ph7_hashmap_product(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			|||||||
		return PH7_OK;
 | 
							return PH7_OK;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	/* If the first element is of type float,then perform floating
 | 
						/* If the first element is of type float,then perform floating
 | 
				
			||||||
	 * point computaion.Otherwise switch to int64 computaion.
 | 
						 * point computation.Otherwise switch to int64 computation.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	pObj = HashmapExtractNodeValue(pMap->pFirst);
 | 
						pObj = HashmapExtractNodeValue(pMap->pFirst);
 | 
				
			||||||
	if(pObj == 0) {
 | 
						if(pObj == 0) {
 | 
				
			||||||
@@ -5266,7 +5266,7 @@ static int ph7_hashmap_map(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			|||||||
	/* Perform the requested operation */
 | 
						/* Perform the requested operation */
 | 
				
			||||||
	pEntry = pMap->pFirst;
 | 
						pEntry = pMap->pFirst;
 | 
				
			||||||
	for(n = 0 ; n < pMap->nEntry ; n++) {
 | 
						for(n = 0 ; n < pMap->nEntry ; n++) {
 | 
				
			||||||
		/* Extrcat the node value */
 | 
							/* Extract the node value */
 | 
				
			||||||
		pValue = HashmapExtractNodeValue(pEntry);
 | 
							pValue = HashmapExtractNodeValue(pEntry);
 | 
				
			||||||
		if(pValue) {
 | 
							if(pValue) {
 | 
				
			||||||
			sxi32 rc;
 | 
								sxi32 rc;
 | 
				
			||||||
@@ -5275,7 +5275,7 @@ static int ph7_hashmap_map(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			|||||||
			/* Extract the node key */
 | 
								/* Extract the node key */
 | 
				
			||||||
			PH7_HashmapExtractNodeKey(pEntry, &sKey);
 | 
								PH7_HashmapExtractNodeKey(pEntry, &sKey);
 | 
				
			||||||
			if(rc != SXRET_OK) {
 | 
								if(rc != SXRET_OK) {
 | 
				
			||||||
				/* An error occured while invoking the supplied callback [i.e: not defined] */
 | 
									/* An error ocurred while invoking the supplied callback [i.e: not defined] */
 | 
				
			||||||
				ph7_array_add_elem(pArray, &sKey, pValue); /* Keep the same value */
 | 
									ph7_array_add_elem(pArray, &sKey, pValue); /* Keep the same value */
 | 
				
			||||||
			} else {
 | 
								} else {
 | 
				
			||||||
				/* Insert the callback return value */
 | 
									/* Insert the callback return value */
 | 
				
			||||||
@@ -5386,7 +5386,7 @@ static int ph7_hashmap_walk(ph7_context *pCtx, int nArg, ph7_value **apArg) {
 | 
				
			|||||||
			rc = PH7_VmCallUserFunctionAp(pMap->pVm, apArg[1], 0, pValue, &sKey, pUserData, 0);
 | 
								rc = PH7_VmCallUserFunctionAp(pMap->pVm, apArg[1], 0, pValue, &sKey, pUserData, 0);
 | 
				
			||||||
			PH7_MemObjRelease(&sKey);
 | 
								PH7_MemObjRelease(&sKey);
 | 
				
			||||||
			if(rc != SXRET_OK) {
 | 
								if(rc != SXRET_OK) {
 | 
				
			||||||
				/* An error occured while invoking the supplied callback [i.e: not defined] */
 | 
									/* An error ocurred while invoking the supplied callback [i.e: not defined] */
 | 
				
			||||||
				ph7_result_bool(pCtx, 0); /* return FALSE */
 | 
									ph7_result_bool(pCtx, 0); /* return FALSE */
 | 
				
			||||||
				return PH7_OK;
 | 
									return PH7_OK;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@
 | 
				
			|||||||
 * Convert a 64-bit IEEE double into a 64-bit signed integer.
 | 
					 * Convert a 64-bit IEEE double into a 64-bit signed integer.
 | 
				
			||||||
 * If the double is too large, return 0x8000000000000000.
 | 
					 * If the double is too large, return 0x8000000000000000.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * Most systems appear to do this simply by assigning ariables and without
 | 
					 * Most systems appear to do this simply by assigning variables and without
 | 
				
			||||||
 * the extra range tests.
 | 
					 * the extra range tests.
 | 
				
			||||||
 * But there are reports that windows throws an expection if the floating
 | 
					 * But there are reports that windows throws an expection if the floating
 | 
				
			||||||
 * point value is out of range.
 | 
					 * point value is out of range.
 | 
				
			||||||
@@ -505,7 +505,7 @@ PH7_PRIVATE sxi32 PH7_MemObjToObject(ph7_value *pObj) {
 | 
				
			|||||||
			PH7_MemObjRelease(pObj);
 | 
								PH7_MemObjRelease(pObj);
 | 
				
			||||||
			return SXRET_OK;
 | 
								return SXRET_OK;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		/* Instanciate a new stdClass() object */
 | 
							/* Instantiate a new stdClass() object */
 | 
				
			||||||
		pStd = PH7_NewClassInstance(pVm, pClass);
 | 
							pStd = PH7_NewClassInstance(pVm, pClass);
 | 
				
			||||||
		if(pStd == 0) {
 | 
							if(pStd == 0) {
 | 
				
			||||||
			/* Out of memory */
 | 
								/* Out of memory */
 | 
				
			||||||
@@ -535,7 +535,7 @@ PH7_PRIVATE sxi32 PH7_MemObjToObject(ph7_value *pObj) {
 | 
				
			|||||||
 * Return a pointer to the appropriate convertion method associated
 | 
					 * Return a pointer to the appropriate convertion method associated
 | 
				
			||||||
 * with the given type.
 | 
					 * with the given type.
 | 
				
			||||||
 * Note on type juggling.
 | 
					 * Note on type juggling.
 | 
				
			||||||
 * Accoding to the PHP language reference manual
 | 
					 * According to the PHP language reference manual
 | 
				
			||||||
 *  PHP does not require (or support) explicit type definition in variable
 | 
					 *  PHP does not require (or support) explicit type definition in variable
 | 
				
			||||||
 *  declaration; a variable's type is determined by the context in which
 | 
					 *  declaration; a variable's type is determined by the context in which
 | 
				
			||||||
 *  the variable is used. That is to say, if a string value is assigned
 | 
					 *  the variable is used. That is to say, if a string value is assigned
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user