IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/collections/psBitSet.c

    r1842 r2204  
    1111 *  @author Robert DeSonia, MHPCC
    1212 *
    13  *  @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2004-09-21 23:17:52 $
     13 *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2004-10-27 00:57:31 $
    1515 *
    1616 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2121#include <ctype.h>
    2222#include <math.h>
    23 #include <stdbool.h>
    2423
    2524#include "psBitSet.h"
     
    4847 *  @return  char*: Pointer to byte in which bit is contained.
    4948 */
    50 static char mask(int bit)
     49static char mask(psS32 bit)
    5150{
    5251    char mask = (char)0x01;
     
    6766}
    6867
    69 psBitSet* psBitSetAlloc(int n)
    70 {
    71     int numBytes = 0;
     68psBitSet* psBitSetAlloc(psS32 n)
     69{
     70    psS32 numBytes = 0;
    7271    psBitSet* newObj = NULL;
    7372
     
    9594
    9695psBitSet* psBitSetSet(psBitSet* inBitSet,
    97                       int bit)
     96                      psS32 bit)
    9897{
    9998    char *byte = NULL;
     
    120119
    121120psBitSet* psBitSetClear(psBitSet* inBitSet,
    122                         int bit)
     121                        psS32 bit)
    123122{
    124123    char *byte = NULL;
     
    144143}
    145144
    146 bool psBitSetTest(const psBitSet* inBitSet,
    147                   int bit)
     145psBool psBitSetTest(const psBitSet* inBitSet,
     146                    psS32 bit)
    148147{
    149148    char *byte = NULL;
     
    173172                     const psBitSet* restrict inBitSet2)
    174173{
    175     int i = 0;
    176     int n = 0;
     174    psS32 i = 0;
     175    psS32 n = 0;
    177176    char* outBits = NULL;
    178177    char* inBits1 = NULL;
    179178    char* inBits2 = NULL;
    180     int op = UNKNOWN_OP;
     179    psS32 op = UNKNOWN_OP;
    181180
    182181    if (inBitSet1 == NULL) {
     
    198197
    199198    // make operator all caps
    200     int tempStrLen = strlen(operator);
     199    psS32 tempStrLen = strlen(operator);
    201200    char* tempStr = psAlloc(tempStrLen+1);
    202201
    203     for (int lcv=0;lcv<tempStrLen;lcv++) {
     202    for (psS32 lcv=0;lcv<tempStrLen;lcv++) {
    204203        tempStr[lcv] = (char)toupper(operator[lcv]);
    205204    }
     
    308307char *psBitSetToString(const psBitSet* restrict inBitSet)
    309308{
    310     int i = 0;
    311     int numBits = inBitSet->n * 8;
     309    psS32 i = 0;
     310    psS32 numBits = inBitSet->n * 8;
    312311    char *outString = psAlloc((size_t) numBits + 1);
    313312
Note: See TracChangeset for help on using the changeset viewer.