| 1 |
|
| #include "EXTERN.h" |
| 2 |
|
| #include "perl.h" |
| 3 |
|
| #include "XSUB.h" |
| 4 |
|
| |
| 5 |
|
| /* FIXME: omg, this is a buffer overflow. Store nothing in Judy::SL |
| 6 |
|
| that is larger than this. */ |
| 7 |
|
| #define MAXLINELEN 1000000 |
| 8 |
|
| #define MAXLINELEN_S "1000000" |
| 9 |
|
| |
| 10 |
|
| /* --- hint for SvPVbyte --- |
| 11 |
|
| Does not work in perl-5.6.1, ppport.h implements a version |
| 12 |
|
| borrowed from perl-5.7.3. */ |
| 13 |
|
| #define NEED_sv_2pvbyte |
| 14 |
|
| #include "ppport.h" |
| 15 |
|
| |
| 16 |
|
| /* Redefine Judy's error handling. Judy's default is to write this |
| 17 |
|
| message to stderr and exit(1). That's unfriendly to a perl |
| 18 |
|
| programmer. This does roughly the same thing but since it is perl's |
| 19 |
|
| own croak(), the warning can be caught. |
| 20 |
|
| |
| 21 |
|
| This redefinition must occur prior to including Judy.h */ |
| 22 |
|
| #define JUDYERROR(CallerFile,CallerLine,JudyFunc,JudyErrno,JudyErrID) \ |
| 23 |
|
| croak("File '%s', line %d: %s(), JU_ERRNO_* == %d, ID == %d\n", \ |
| 24 |
|
| CallerFile, CallerLine, \ |
| 25 |
|
| JudyFunc, JudyErrno, JudyErrID); |
| 26 |
|
| |
| 27 |
|
| /* Judy.h comes from Judy at http://judy.sourceforge.net and is |
| 28 |
|
| automatically installed for you by Alien::Judy. If you're |
| 29 |
|
| having problems, please file a bug or better, fix it |
| 30 |
|
| and post the patch. */ |
| 31 |
|
| #include "Judy.h" |
| 32 |
|
| |
| 33 |
|
| /* pjudy.h includes whatever I need to share between Judy.xs and the |
| 34 |
|
| test suite. */ |
| 35 |
|
| #include "pjudy.h" |
| 36 |
|
| |
| 37 |
|
| #if PTRSIZE == 4 |
| 38 |
|
| # define PDEADBEEF (void*)0xdeadbeef |
| 39 |
|
| #else |
| 40 |
|
| # define PDEADBEEF (void*)0xdeadbeefdeadbeef |
| 41 |
|
| #endif |
| 42 |
|
| |
| 43 |
|
| #if LONGSIZE == 4 |
| 44 |
|
| # define DEADBEEF 0xdeadbeef |
| 45 |
|
| #else |
| 46 |
|
| # define DEADBEEF 0xdeadbeefdeadbeef |
| 47 |
|
| #endif |
| 48 |
|
| |
| 49 |
|
| |
| 50 |
|
| int trace = 0; |
| 51 |
|
| #define OOGA(...)\ |
| 52 |
|
| do {\ |
| 53 |
|
| if ( trace ) {\ |
| 54 |
|
| PerlIO_printf(PerlIO_stdout(),__VA_ARGS__);\ |
| 55 |
|
| PerlIO_flush(PerlIO_stdout());\ |
| 56 |
|
| }\ |
| 57 |
|
| } while (0); |
| 58 |
|
| |
| 59 |
|
| /* Pre-declare function signatures */ |
| 60 |
|
| UWord_t |
| 61 |
|
| pvtJudyHSMemUsedV(Pvoid_t PJLArray, UWord_t remainingLength, UWord_t keyLength ); |
| 62 |
|
| |
| 63 |
|
| /* TODO: document this */ |
| 64 |
|
| UWord_t |
| 65 |
0 |
| pvtJudyHSMemUsedV(Pvoid_t PJLArray, UWord_t remainingLength, UWord_t keyLength ) |
| 66 |
|
| { |
| 67 |
0 |
▶ | if ( remainingLength > LONGSIZE ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( remainingLength > LONGSIZE ) { |
0 |
0 |
0 |
|
| 68 |
0 |
▶ | if ( JLAP_INVALID & (int)PJLArray ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( JLAP_INVALID & (int)PJLArray ) { |
0 |
0 |
0 |
|
| 69 |
0 |
▶ | OOGA("keyLength=%lu sizeof(Word_t)=%u\n",keyLength,sizeof(Word_t)); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("keyLength=%lu sizeof(Word_t)=%u\n",keyLength,sizeof(Word_t)); |
0 |
0 |
0 |
|
| 70 |
0 |
| return keyLength + sizeof( Word_t ); |
| 71 |
|
| } |
| 72 |
0 |
▶ | else if ( PJLArray ) { |
Branch: 1 branch
| Branch | True | False | Total |
| else if ( PJLArray ) { |
0 |
0 |
0 |
|
| 73 |
0 |
| UWord_t sum = 0; |
| 74 |
0 |
| UWord_t Index = 0; |
| 75 |
0 |
| Pvoid_t *innerL = NULL; |
| 76 |
|
| |
| 77 |
|
| /* Iterate over semi-colliding keys */ |
| 78 |
0 |
▶ | JLF( innerL, PJLArray, Index ); |
Branch: 1 branch
| Branch | True | False | Total |
| JLF( innerL, PJLArray, Index ); |
0 |
0 |
0 |
|
| 79 |
0 |
▶ | OOGA("innerL=%lx\n",(UWord_t)innerL); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("innerL=%lx\n",(UWord_t)innerL); |
0 |
0 |
0 |
|
| 80 |
|
| |
| 81 |
0 |
▶ | while ( innerL ) { |
Branch: 1 branch
| Branch | True | False | Total |
| while ( innerL ) { |
0 |
0 |
0 |
|
| 82 |
0 |
▶ | OOGA("*innerL=%lx\n",(UWord_t)*innerL); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("*innerL=%lx\n",(UWord_t)*innerL); |
0 |
0 |
0 |
|
| 83 |
0 |
▶ | if ( *innerL ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( *innerL ) { |
0 |
0 |
0 |
|
| 84 |
0 |
▶ | OOGA("JudyLMemUsed=%lu\n",JudyLMemUsed(*innerL)); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("JudyLMemUsed=%lu\n",JudyLMemUsed(*innerL)); |
0 |
0 |
0 |
|
| 85 |
0 |
| sum += JudyLMemUsed( *innerL ); |
| 86 |
|
| |
| 87 |
0 |
▶ | OOGA("pvtMemUsedJudyHSTree(%lx,%lu)\n",(UWord_t)*innerL,keyLength); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("pvtMemUsedJudyHSTree(%lx,%lu)\n",(UWord_t)*innerL,keyLength); |
0 |
0 |
0 |
|
| 88 |
0 |
| sum += pvtJudyHSMemUsedV( *innerL, keyLength - LONGSIZE, keyLength ); |
| 89 |
|
| } |
| 90 |
|
| |
| 91 |
0 |
▶ | JLN( innerL, PJLArray, Index ); |
Branch: 1 branch
| Branch | True | False | Total |
| JLN( innerL, PJLArray, Index ); |
0 |
0 |
0 |
|
| 92 |
0 |
▶ | OOGA("innerL=%lx\n",(UWord_t)innerL); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("innerL=%lx\n",(UWord_t)innerL); |
0 |
0 |
0 |
|
| 93 |
|
| } |
| 94 |
|
| } |
| 95 |
|
| } |
| 96 |
|
| else { |
| 97 |
0 |
▶ | OOGA("keyLength=%lu sizeof(Word_t)=%u\n",keyLength,sizeof(Word_t)); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("keyLength=%lu sizeof(Word_t)=%u\n",keyLength,sizeof(Word_t)); |
0 |
0 |
0 |
|
| 98 |
0 |
| return keyLength + sizeof( Word_t ); |
| 99 |
|
| } |
| 100 |
0 |
| } |
| 101 |
|
| |
| 102 |
|
| /* TODO: document this */ |
| 103 |
|
| UWord_t |
| 104 |
0 |
| pvtJudyHSMemUsed( Pvoid_t PJHSArray ) |
| 105 |
|
| { |
| 106 |
|
| UWord_t sum; |
| 107 |
0 |
| UWord_t keyLength = 0; |
| 108 |
|
| Pvoid_t *hashL; |
| 109 |
|
| |
| 110 |
|
| /* Count the size of the base JudyL array that maps from key length |
| 111 |
|
| * to hashes containing values with keys only that length. |
| 112 |
|
| */ |
| 113 |
0 |
| sum = JudyLMemUsed( PJHSArray ); |
| 114 |
|
| |
| 115 |
|
| /* Iterate over all key lengths and the hashes */ |
| 116 |
0 |
▶ | JLF( hashL, PJHSArray, keyLength ); |
Branch: 1 branch
| Branch | True | False | Total |
| JLF( hashL, PJHSArray, keyLength ); |
0 |
0 |
0 |
|
| 117 |
0 |
▶ | while ( hashL ) { |
Branch: 1 branch
| Branch | True | False | Total |
| while ( hashL ) { |
0 |
0 |
0 |
|
| 118 |
|
| /* Count the size of this hash */ |
| 119 |
0 |
| sum += JudyLMemUsed( *hashL ); |
| 120 |
|
| |
| 121 |
|
| /* Count the space consumed by all values in this hash */ |
| 122 |
0 |
| sum += pvtJudyHSMemUsedV( *hashL, keyLength, keyLength ); |
| 123 |
|
| |
| 124 |
0 |
▶ | JLN( hashL, PJHSArray, keyLength ); |
Branch: 1 branch
| Branch | True | False | Total |
| JLN( hashL, PJHSArray, keyLength ); |
0 |
0 |
0 |
|
| 125 |
|
| } |
| 126 |
|
| |
| 127 |
0 |
| return sum; |
| 128 |
|
| } |
| 129 |
|
| |
| 130 |
|
| MODULE = Judy PACKAGE = Judy PREFIX = lj_ |
| 131 |
|
| |
| 132 |
|
| PROTOTYPES: ENABLE |
| 133 |
|
| |
| 134 |
|
| =for FIXME Constants aren't used as constants. The functions are |
| 135 |
|
| getting called anyway. |
| 136 |
|
| |
| 137 |
|
| =cut |
| 138 |
|
| |
| 139 |
|
| void |
| 140 |
|
| trace( x ) |
| 141 |
|
| int x |
| 142 |
|
| CODE: |
| 143 |
0 |
| trace = x; |
| 144 |
|
| |
| 145 |
|
| Pvoid_t |
| 146 |
|
| lj_PJERR() |
| 147 |
|
| PROTOTYPE: |
| 148 |
|
| CODE: |
| 149 |
0 |
| RETVAL = PJERR; |
| 150 |
|
| OUTPUT: |
| 151 |
|
| RETVAL |
| 152 |
|
| |
| 153 |
|
| UWord_t |
| 154 |
|
| lj_JLAP_INVALID() |
| 155 |
|
| PROTOTYPE: |
| 156 |
|
| CODE: |
| 157 |
0 |
| RETVAL = JLAP_INVALID; |
| 158 |
|
| OUTPUT: |
| 159 |
|
| RETVAL |
| 160 |
|
| |
| 161 |
|
| |
| 162 |
|
| |
| 163 |
|
| |
| 164 |
|
| |
| 165 |
|
| |
| 166 |
|
| MODULE = Judy PACKAGE = Judy::Mem PREFIX = ljme_ |
| 167 |
|
| |
| 168 |
|
| PROTOTYPES: DISABLE |
| 169 |
|
| |
| 170 |
|
| void* |
| 171 |
|
| ljme_String2Ptr(in) |
| 172 |
|
| Str in |
| 173 |
|
| INIT: |
| 174 |
0 |
| void *out = PDEADBEEF; |
| 175 |
|
| CODE: |
| 176 |
0 |
| Newx(out,in.length + 1,char); |
| 177 |
0 |
| Copy(in.ptr,out,in.length,char); |
| 178 |
0 |
| *((char*)(out + in.length)) = '\0'; |
| 179 |
0 |
▶ | RETVAL = out; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = out; |
0 |
0 |
0 |
|
| 180 |
|
| OUTPUT: |
| 181 |
|
| RETVAL |
| 182 |
|
| |
| 183 |
|
| Str |
| 184 |
|
| ljme_Ptr2String(in) |
| 185 |
|
| void *in |
| 186 |
|
| CODE: |
| 187 |
|
| /* Guess about the length of the string. Use Ptr2String2 if there are nulls. */ |
| 188 |
0 |
| RETVAL.ptr = in; |
| 189 |
0 |
| RETVAL.length = 0; |
| 190 |
|
| OUTPUT: |
| 191 |
|
| RETVAL |
| 192 |
|
| |
| 193 |
|
| Str |
| 194 |
|
| ljme_Ptr2String2(in,length) |
| 195 |
|
| void *in |
| 196 |
|
| STRLEN length |
| 197 |
|
| CODE: |
| 198 |
0 |
| RETVAL.ptr = in; |
| 199 |
0 |
| RETVAL.length = length; |
| 200 |
|
| OUTPUT: |
| 201 |
|
| RETVAL |
| 202 |
|
| |
| 203 |
|
| void |
| 204 |
|
| ljme_Free(ptr) |
| 205 |
|
| void *ptr |
| 206 |
|
| CODE: |
| 207 |
0 |
| Safefree(ptr); |
| 208 |
|
| |
| 209 |
|
| IV |
| 210 |
|
| Peek(ptr) |
| 211 |
|
| PWord_t ptr |
| 212 |
|
| CODE: |
| 213 |
0 |
▶ | OOGA("%s:%d Peek(%#lx)\n",__FILE__,__LINE__,(long)ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d Peek(%#lx)\n",__FILE__,__LINE__,(long)ptr); |
0 |
0 |
0 |
|
| 214 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)ptr); |
0 |
0 |
0 |
|
| 215 |
0 |
▶ | OOGA("%"IVdf"\n",(IV)*ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%"IVdf"\n",(IV)*ptr); |
0 |
0 |
0 |
|
| 216 |
0 |
▶ | RETVAL = (Word_t)*ptr; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = (Word_t)*ptr; |
0 |
0 |
0 |
|
| 217 |
|
| OUTPUT: |
| 218 |
|
| RETVAL |
| 219 |
|
| |
| 220 |
|
| void |
| 221 |
|
| Poke(ptr,sv) |
| 222 |
|
| PWord_t ptr |
| 223 |
|
| SV *sv |
| 224 |
|
| CODE: |
| 225 |
0 |
▶ | OOGA("%s:%d Poke(%#lx,%"IVdf")\n",__FILE__,__LINE__,(long)ptr,SvIV(sv)); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d Poke(%#lx,%"IVdf")\n",__FILE__,__LINE__,(long)ptr,SvIV(sv)); |
0 |
0 |
0 |
|
| 226 |
0 |
| *ptr = SvIV(sv); |
| 227 |
|
| |
| 228 |
|
| |
| 229 |
|
| |
| 230 |
|
| |
| 231 |
|
| |
| 232 |
|
| |
| 233 |
|
| MODULE = Judy PACKAGE = Judy::1 PREFIX = lj1_ |
| 234 |
|
| |
| 235 |
|
| IV |
| 236 |
|
| lj1_Set( PJ1Array, Key ) |
| 237 |
|
| Pvoid_t PJ1Array |
| 238 |
|
| UWord_t Key |
| 239 |
|
| INIT: |
| 240 |
0 |
| int Rc_int = DEADBEEF; |
| 241 |
|
| CODE: |
| 242 |
0 |
▶ | OOGA("%s:%d J1S(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1S(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 243 |
0 |
▶ | J1S(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1S(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 244 |
0 |
▶ | OOGA("%s:%d .J1S(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1S(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 245 |
|
| |
| 246 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 247 |
|
| OUTPUT: |
| 248 |
|
| PJ1Array |
| 249 |
|
| RETVAL |
| 250 |
|
| |
| 251 |
|
| IV |
| 252 |
|
| lj1_Unset( PJ1Array, Key ) |
| 253 |
|
| Pvoid_t PJ1Array |
| 254 |
|
| UWord_t Key |
| 255 |
|
| INIT: |
| 256 |
0 |
| int Rc_int = DEADBEEF; |
| 257 |
|
| CODE: |
| 258 |
0 |
▶ | OOGA("%s:%d J1U(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1U(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 259 |
0 |
▶ | J1U(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1U(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 260 |
0 |
▶ | OOGA("%s:%d .J1U(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1U(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 261 |
|
| |
| 262 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 263 |
|
| OUTPUT: |
| 264 |
|
| PJ1Array |
| 265 |
|
| RETVAL |
| 266 |
|
| |
| 267 |
|
| IV |
| 268 |
|
| lj1_Test( PJ1Array, Key ) |
| 269 |
|
| Pvoid_t PJ1Array |
| 270 |
|
| UWord_t Key |
| 271 |
|
| INIT: |
| 272 |
0 |
| int Rc_int = DEADBEEF; |
| 273 |
|
| CODE: |
| 274 |
0 |
▶ | OOGA("%s:%d J1T(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1T(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 275 |
0 |
| J1T(Rc_int,PJ1Array,Key); |
| 276 |
0 |
▶ | OOGA("%s:%d .J1T(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1T(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 277 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 278 |
|
| OUTPUT: |
| 279 |
|
| PJ1Array |
| 280 |
|
| RETVAL |
| 281 |
|
| |
| 282 |
|
| UV |
| 283 |
|
| lj1_Count( PJ1Array, Key1, Key2 ) |
| 284 |
|
| Pvoid_t PJ1Array |
| 285 |
|
| UWord_t Key1 |
| 286 |
|
| UWord_t Key2 |
| 287 |
|
| INIT: |
| 288 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 289 |
|
| JError_t JError; |
| 290 |
|
| CODE: |
| 291 |
|
| /* TODO: Upgrade the returned IV to a UV if the count would be |
| 292 |
|
| "negative" */ |
| 293 |
|
| |
| 294 |
0 |
▶ | OOGA("%s:%d Judy1Count(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PJ1Array,Key1,Key2,(long)&JError); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d Judy1Count(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PJ1Array,Key1,Key2,(long)&JError); |
0 |
0 |
0 |
|
| 295 |
0 |
| Rc_word = Judy1Count(PJ1Array,Key1,Key2,&JError); |
| 296 |
0 |
▶ | OOGA("%s:%d Judy1Count(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PJ1Array,Key1,Key2,(long)&JError); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d Judy1Count(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PJ1Array,Key1,Key2,(long)&JError); |
0 |
0 |
0 |
|
| 297 |
0 |
▶ | if ( Rc_word ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_word ) { |
0 |
0 |
0 |
|
| 298 |
0 |
| RETVAL = Rc_word; |
| 299 |
|
| } |
| 300 |
|
| else { |
| 301 |
0 |
▶ | if ( JU_ERRNO(&JError) == JU_ERRNO_NONE ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( JU_ERRNO(&JError) == JU_ERRNO_NONE ) { |
0 |
0 |
0 |
|
| 302 |
0 |
| RETVAL = 0; |
| 303 |
|
| } |
| 304 |
0 |
▶ | else if ( JU_ERRNO(&JError) == JU_ERRNO_FULL ) { |
Branch: 1 branch
| Branch | True | False | Total |
| else if ( JU_ERRNO(&JError) == JU_ERRNO_FULL ) { |
0 |
0 |
0 |
|
| 305 |
|
| /* On a 32-bit machine, this value is |
| 306 |
|
| * indistinguishable from the count of 2^32. On a |
| 307 |
|
| * 64-bit machine, this value cannot be triggered. |
| 308 |
|
| */ |
| 309 |
0 |
| RETVAL = ULONG_MAX; |
| 310 |
|
| } |
| 311 |
0 |
▶ | else if ( JU_ERRNO(&JError) > JU_ERRNO_NFMAX ) { |
Branch: 1 branch
| Branch | True | False | Total |
| else if ( JU_ERRNO(&JError) > JU_ERRNO_NFMAX ) { |
0 |
0 |
0 |
|
| 312 |
|
| /* Defer to back to the default implementation for |
| 313 |
|
| * error handling in the J1C macro. |
| 314 |
|
| */ |
| 315 |
0 |
| J_E("Judy1Count",&JError); |
| 316 |
|
| } |
| 317 |
|
| } |
| 318 |
|
| OUTPUT: |
| 319 |
|
| RETVAL |
| 320 |
|
| |
| 321 |
|
| void |
| 322 |
|
| lj1_Nth( PJ1Array, Nth ) |
| 323 |
|
| Pvoid_t PJ1Array |
| 324 |
|
| UWord_t Nth |
| 325 |
|
| INIT: |
| 326 |
0 |
| UWord_t Index = DEADBEEF; |
| 327 |
0 |
| int Rc_int = DEADBEEF; |
| 328 |
|
| PPCODE: |
| 329 |
0 |
▶ | OOGA("%s:%d J1BC(%#x,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1BC(%#x,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Nth,Index); |
0 |
0 |
0 |
|
| 330 |
0 |
▶ | J1BC(Rc_int,PJ1Array,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| J1BC(Rc_int,PJ1Array,Nth,Index); |
0 |
0 |
0 |
|
| 331 |
0 |
▶ | OOGA("%s:%d .J1BC(%#x,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1BC(%#x,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Nth,Index); |
0 |
0 |
0 |
|
| 332 |
|
| |
| 333 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 334 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Index))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Index))); |
0 |
0 |
0 |
|
| 335 |
|
| } |
| 336 |
|
| |
| 337 |
|
| UV |
| 338 |
|
| lj1_Free( PJ1Array ) |
| 339 |
|
| Pvoid_t PJ1Array |
| 340 |
|
| INIT: |
| 341 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 342 |
|
| CODE: |
| 343 |
0 |
▶ | OOGA("%s:%d J1FA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1FA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
0 |
0 |
0 |
|
| 344 |
0 |
▶ | J1FA(Rc_word,PJ1Array); |
Branch: 1 branch
| Branch | True | False | Total |
| J1FA(Rc_word,PJ1Array); |
0 |
0 |
0 |
|
| 345 |
0 |
▶ | OOGA("%s:%d .J1FA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1FA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
0 |
0 |
0 |
|
| 346 |
0 |
▶ | RETVAL = Rc_word; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_word; |
0 |
0 |
0 |
|
| 347 |
|
| OUTPUT: |
| 348 |
|
| PJ1Array |
| 349 |
|
| RETVAL |
| 350 |
|
| |
| 351 |
|
| UV |
| 352 |
|
| lj1_MemUsed( PJ1Array ) |
| 353 |
|
| Pvoid_t PJ1Array |
| 354 |
|
| INIT: |
| 355 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 356 |
|
| CODE: |
| 357 |
0 |
▶ | OOGA("%s:%d M1MU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d M1MU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
0 |
0 |
0 |
|
| 358 |
0 |
| J1MU(Rc_word,PJ1Array); |
| 359 |
0 |
▶ | OOGA("%s:%d M1MU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d M1MU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJ1Array); |
0 |
0 |
0 |
|
| 360 |
0 |
▶ | RETVAL = Rc_word; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_word; |
0 |
0 |
0 |
|
| 361 |
|
| OUTPUT: |
| 362 |
|
| PJ1Array |
| 363 |
|
| RETVAL |
| 364 |
|
| |
| 365 |
|
| void |
| 366 |
|
| lj1_First( PJ1Array, Key ) |
| 367 |
|
| Pvoid_t PJ1Array |
| 368 |
|
| UWord_t Key |
| 369 |
|
| INIT: |
| 370 |
0 |
| int Rc_int = DEADBEEF; |
| 371 |
|
| PPCODE: |
| 372 |
0 |
▶ | OOGA("%s:%d J1F(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1F(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 373 |
0 |
▶ | J1F(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1F(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 374 |
0 |
▶ | OOGA("%s:%d .J1F(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1F(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 375 |
|
| |
| 376 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 377 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 378 |
|
| } |
| 379 |
|
| |
| 380 |
|
| |
| 381 |
|
| void |
| 382 |
|
| lj1_Next( PJ1Array, Key ) |
| 383 |
|
| Pvoid_t PJ1Array |
| 384 |
|
| UWord_t Key |
| 385 |
|
| INIT: |
| 386 |
0 |
| int Rc_int = DEADBEEF; |
| 387 |
|
| PPCODE: |
| 388 |
0 |
▶ | OOGA("%s:%d J1N(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1N(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 389 |
0 |
▶ | J1N(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1N(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 390 |
0 |
▶ | OOGA("%s:%d .J1N(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1N(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 391 |
|
| |
| 392 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 393 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 394 |
|
| } |
| 395 |
|
| |
| 396 |
|
| |
| 397 |
|
| |
| 398 |
|
| void |
| 399 |
|
| lj1_Last( PJ1Array, Key ) |
| 400 |
|
| Pvoid_t PJ1Array |
| 401 |
|
| UWord_t Key |
| 402 |
|
| INIT: |
| 403 |
0 |
| int Rc_int = DEADBEEF; |
| 404 |
|
| PPCODE: |
| 405 |
0 |
▶ | OOGA("%s:%d J1L(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1L(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 406 |
0 |
▶ | J1L(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1L(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 407 |
0 |
▶ | OOGA("%s:%d .J1L(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1L(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 408 |
|
| |
| 409 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 410 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 411 |
|
| } |
| 412 |
|
| |
| 413 |
|
| |
| 414 |
|
| void |
| 415 |
|
| lj1_Prev( PJ1Array, Key ) |
| 416 |
|
| Pvoid_t PJ1Array |
| 417 |
|
| UWord_t Key |
| 418 |
|
| INIT: |
| 419 |
0 |
| int Rc_int = DEADBEEF; |
| 420 |
|
| PPCODE: |
| 421 |
0 |
▶ | OOGA("%s:%d J1P(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1P(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 422 |
0 |
▶ | J1P(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1P(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 423 |
0 |
▶ | OOGA("%s:%d .J1P(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1P(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 424 |
|
| |
| 425 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 426 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 427 |
|
| } |
| 428 |
|
| |
| 429 |
|
| void |
| 430 |
|
| lj1_FirstEmpty( PJ1Array, Key ) |
| 431 |
|
| Pvoid_t PJ1Array |
| 432 |
|
| UWord_t Key |
| 433 |
|
| INIT: |
| 434 |
0 |
| int Rc_int = DEADBEEF; |
| 435 |
|
| PPCODE: |
| 436 |
0 |
▶ | OOGA("%s:%d J1FE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1FE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 437 |
0 |
▶ | J1FE(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1FE(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 438 |
0 |
▶ | OOGA("%s:%d .J1FE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1FE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 439 |
|
| |
| 440 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 441 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 442 |
|
| } |
| 443 |
|
| |
| 444 |
|
| |
| 445 |
|
| void |
| 446 |
|
| lj1_NextEmpty( PJ1Array, Key ) |
| 447 |
|
| Pvoid_t PJ1Array |
| 448 |
|
| UWord_t Key |
| 449 |
|
| INIT: |
| 450 |
0 |
| int Rc_int = DEADBEEF; |
| 451 |
|
| PPCODE: |
| 452 |
0 |
▶ | OOGA("%s:%d J1NE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1NE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 453 |
0 |
▶ | J1NE(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1NE(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 454 |
0 |
▶ | OOGA("%s:%d .J1NE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1NE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 455 |
|
| |
| 456 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 457 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 458 |
|
| } |
| 459 |
|
| |
| 460 |
|
| void |
| 461 |
|
| lj1_LastEmpty( PJ1Array, Key ) |
| 462 |
|
| Pvoid_t PJ1Array |
| 463 |
|
| UWord_t Key |
| 464 |
|
| INIT: |
| 465 |
0 |
| int Rc_int = DEADBEEF; |
| 466 |
|
| PPCODE: |
| 467 |
0 |
▶ | OOGA("%s:%d J1LE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1LE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 468 |
0 |
▶ | J1LE(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1LE(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 469 |
0 |
▶ | OOGA("%s:%d .J1LE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1LE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 470 |
|
| |
| 471 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 472 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 473 |
|
| } |
| 474 |
|
| |
| 475 |
|
| void |
| 476 |
|
| lj1_PrevEmpty( PJ1Array, Key ) |
| 477 |
|
| Pvoid_t PJ1Array |
| 478 |
|
| UWord_t Key |
| 479 |
|
| INIT: |
| 480 |
0 |
| int Rc_int = DEADBEEF; |
| 481 |
|
| PPCODE: |
| 482 |
0 |
▶ | OOGA("%s:%d J1PE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d J1PE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 483 |
0 |
▶ | J1PE(Rc_int,PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| J1PE(Rc_int,PJ1Array,Key); |
0 |
0 |
0 |
|
| 484 |
0 |
▶ | OOGA("%s:%d .J1PE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .J1PE(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJ1Array,Key); |
0 |
0 |
0 |
|
| 485 |
|
| |
| 486 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 487 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 488 |
|
| } |
| 489 |
|
| |
| 490 |
|
| |
| 491 |
|
| |
| 492 |
|
| |
| 493 |
|
| |
| 494 |
|
| |
| 495 |
|
| MODULE = Judy PACKAGE = Judy::L PREFIX = ljl_ |
| 496 |
|
| |
| 497 |
|
| PWord_t |
| 498 |
|
| ljl_Set( PJLArray, Key, Value ) |
| 499 |
|
| Pvoid_t PJLArray |
| 500 |
|
| UWord_t Key |
| 501 |
|
| IWord_t Value |
| 502 |
|
| INIT: |
| 503 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 504 |
|
| CODE: |
| 505 |
0 |
▶ | OOGA("%s:%d JLI(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLI(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 506 |
0 |
▶ | JLI(PValue,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLI(PValue,PJLArray,Key); |
0 |
0 |
0 |
|
| 507 |
0 |
▶ | OOGA("%s:%d .JLI(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLI(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 508 |
0 |
| *PValue = Value; |
| 509 |
0 |
▶ | RETVAL = PValue; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = PValue; |
0 |
0 |
0 |
|
| 510 |
|
| OUTPUT: |
| 511 |
|
| PJLArray |
| 512 |
|
| RETVAL |
| 513 |
|
| |
| 514 |
|
| |
| 515 |
|
| int |
| 516 |
|
| ljl_Delete( PJLArray, Key ) |
| 517 |
|
| Pvoid_t PJLArray |
| 518 |
|
| UWord_t Key |
| 519 |
|
| INIT: |
| 520 |
0 |
| int Rc_int = DEADBEEF; |
| 521 |
|
| CODE: |
| 522 |
0 |
▶ | OOGA("%s:%d JLD(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLD(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 523 |
0 |
▶ | JLD(Rc_int,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLD(Rc_int,PJLArray,Key); |
0 |
0 |
0 |
|
| 524 |
0 |
▶ | OOGA("%s:%d .JLD(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLD(%#x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 525 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 526 |
|
| OUTPUT: |
| 527 |
|
| PJLArray |
| 528 |
|
| RETVAL |
| 529 |
|
| |
| 530 |
|
| void |
| 531 |
|
| ljl_Get( PJLArray, Key ) |
| 532 |
|
| Pvoid_t PJLArray |
| 533 |
|
| UWord_t Key |
| 534 |
|
| INIT: |
| 535 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 536 |
|
| PPCODE: |
| 537 |
0 |
▶ | OOGA("%s:%d JLG(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLG(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 538 |
0 |
| JLG(PValue,PJLArray,Key); |
| 539 |
0 |
▶ | OOGA("%s:%d .JLG(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLG(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 540 |
|
| |
| 541 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 542 |
0 |
▶ | OOGA("%s:%d *%#lx,",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx,",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 543 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 544 |
0 |
▶ | EXTEND(SP,2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,2); |
0 |
0 |
0 |
|
| 545 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 546 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 547 |
|
| } |
| 548 |
|
| |
| 549 |
|
| UWord_t |
| 550 |
|
| ljl_Count( PJLArray, Key1, Key2 ) |
| 551 |
|
| Pvoid_t PJLArray |
| 552 |
|
| UWord_t Key1 |
| 553 |
|
| UWord_t Key2 |
| 554 |
|
| INIT: |
| 555 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 556 |
|
| CODE: |
| 557 |
0 |
▶ | OOGA("%s:%d JLC(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Key1,Key2); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLC(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Key1,Key2); |
0 |
0 |
0 |
|
| 558 |
0 |
▶ | JLC(Rc_word,PJLArray,Key1,Key2); |
Branch: 2 branches
| Branch | True | False | Total |
| JLC(Rc_word,PJLArray,Key1,Key2); |
0 |
0 |
0 |
| JLC(Rc_word,PJLArray,Key1,Key2); |
0 |
0 |
0 |
|
| 559 |
0 |
▶ | OOGA("%s:%d .JLC(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Key1,Key2); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLC(%#lx,%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Key1,Key2); |
0 |
0 |
0 |
|
| 560 |
|
| |
| 561 |
0 |
| RETVAL = Rc_word; |
| 562 |
|
| OUTPUT: |
| 563 |
|
| RETVAL |
| 564 |
|
| |
| 565 |
|
| void |
| 566 |
|
| ljl_Nth( PJLArray, Nth ) |
| 567 |
|
| Pvoid_t PJLArray |
| 568 |
|
| UWord_t Nth |
| 569 |
|
| INIT: |
| 570 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 571 |
0 |
| UWord_t Index = DEADBEEF; |
| 572 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 573 |
|
| PPCODE: |
| 574 |
0 |
▶ | OOGA("%s:%d JLBC(%#lx,%#lx,%ld,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLBC(%#lx,%#lx,%ld,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Nth,Index); |
0 |
0 |
0 |
|
| 575 |
0 |
▶ | JLBC(PValue,PJLArray,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JLBC(PValue,PJLArray,Nth,Index); |
0 |
0 |
0 |
|
| 576 |
0 |
▶ | OOGA("%s:%d .JLBC(%#lx,%#lx,%ld,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Nth,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLBC(%#lx,%#lx,%ld,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray,Nth,Index); |
0 |
0 |
0 |
|
| 577 |
|
| |
| 578 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 579 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 580 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 581 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 582 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 583 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 584 |
0 |
| PUSHs(sv_2mortal(newSVuv(Index))); |
| 585 |
|
| } |
| 586 |
|
| |
| 587 |
|
| UWord_t |
| 588 |
|
| ljl_Free( PJLArray ) |
| 589 |
|
| Pvoid_t PJLArray |
| 590 |
|
| INIT: |
| 591 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 592 |
|
| CODE: |
| 593 |
0 |
▶ | OOGA("%s:%d JLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
0 |
0 |
0 |
|
| 594 |
0 |
▶ | JLFA(Rc_word,PJLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| JLFA(Rc_word,PJLArray); |
0 |
0 |
0 |
|
| 595 |
0 |
▶ | OOGA("%s:%d .JLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
0 |
0 |
0 |
|
| 596 |
|
| |
| 597 |
0 |
▶ | RETVAL = Rc_word; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_word; |
0 |
0 |
0 |
|
| 598 |
|
| OUTPUT: |
| 599 |
|
| PJLArray |
| 600 |
|
| RETVAL |
| 601 |
|
| |
| 602 |
|
| UWord_t |
| 603 |
|
| ljl_MemUsed( PJLArray ) |
| 604 |
|
| Pvoid_t PJLArray |
| 605 |
|
| INIT: |
| 606 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 607 |
|
| CODE: |
| 608 |
0 |
▶ | OOGA("%s:%d JLMU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLMU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
0 |
0 |
0 |
|
| 609 |
0 |
| JLMU(Rc_word,PJLArray); |
| 610 |
0 |
▶ | OOGA("%s:%d .JLMU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLMU(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJLArray); |
0 |
0 |
0 |
|
| 611 |
|
| |
| 612 |
0 |
| RETVAL = Rc_word; |
| 613 |
|
| OUTPUT: |
| 614 |
|
| RETVAL |
| 615 |
|
| |
| 616 |
|
| void |
| 617 |
|
| ljl_First( PJLArray, Key ) |
| 618 |
|
| Pvoid_t PJLArray |
| 619 |
|
| UWord_t Key |
| 620 |
|
| INIT: |
| 621 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 622 |
|
| PPCODE: |
| 623 |
0 |
▶ | OOGA("%s:%d JLF(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLF(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 624 |
0 |
▶ | JLF(PValue,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLF(PValue,PJLArray,Key); |
0 |
0 |
0 |
|
| 625 |
0 |
▶ | OOGA("%s:%d .JLF(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLF(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 626 |
|
| |
| 627 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 628 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 629 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 630 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 631 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 632 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 633 |
0 |
| PUSHs(sv_2mortal(newSVuv(Key))); |
| 634 |
|
| } |
| 635 |
|
| |
| 636 |
|
| |
| 637 |
|
| void |
| 638 |
|
| ljl_Next( PJLArray, Key ) |
| 639 |
|
| Pvoid_t PJLArray |
| 640 |
|
| UWord_t Key |
| 641 |
|
| INIT: |
| 642 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 643 |
|
| PPCODE: |
| 644 |
0 |
▶ | OOGA("%s:%d JLN(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLN(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 645 |
0 |
▶ | JLN(PValue,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLN(PValue,PJLArray,Key); |
0 |
0 |
0 |
|
| 646 |
0 |
▶ | OOGA("%s:%d .JLN(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLN(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 647 |
|
| |
| 648 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 649 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 650 |
0 |
▶ | OOGA("%#lx\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx\n",*PValue); |
0 |
0 |
0 |
|
| 651 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 652 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 653 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 654 |
0 |
| PUSHs(sv_2mortal(newSVuv(Key))); |
| 655 |
|
| } |
| 656 |
|
| |
| 657 |
|
| |
| 658 |
|
| |
| 659 |
|
| void |
| 660 |
|
| ljl_Last( PJLArray, Key ) |
| 661 |
|
| Pvoid_t PJLArray |
| 662 |
|
| UWord_t Key |
| 663 |
|
| INIT: |
| 664 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 665 |
|
| PPCODE: |
| 666 |
0 |
▶ | OOGA("%s:%d JLL(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLL(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 667 |
0 |
▶ | JLL(PValue,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLL(PValue,PJLArray,Key); |
0 |
0 |
0 |
|
| 668 |
0 |
▶ | OOGA("%s:%d .JLL(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLL(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 669 |
|
| |
| 670 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 671 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 672 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 673 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 674 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 675 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 676 |
0 |
| PUSHs(sv_2mortal(newSVuv(Key))); |
| 677 |
|
| } |
| 678 |
|
| |
| 679 |
|
| |
| 680 |
|
| void |
| 681 |
|
| ljl_Prev( PJLArray, Key ) |
| 682 |
|
| Pvoid_t PJLArray |
| 683 |
|
| UWord_t Key |
| 684 |
|
| INIT: |
| 685 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 686 |
|
| PPCODE: |
| 687 |
0 |
▶ | OOGA("%s:%d JLP(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLP(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 688 |
0 |
▶ | JLP(PValue,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLP(PValue,PJLArray,Key); |
0 |
0 |
0 |
|
| 689 |
0 |
▶ | OOGA("%s:%d .JLP(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLP(%#lx,%#lx,%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 690 |
|
| |
| 691 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 692 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 693 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 694 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 695 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 696 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 697 |
0 |
| PUSHs(sv_2mortal(newSVuv(Key))); |
| 698 |
|
| } |
| 699 |
|
| |
| 700 |
|
| void |
| 701 |
|
| ljl_FirstEmpty( PJLArray, Key ) |
| 702 |
|
| Pvoid_t PJLArray |
| 703 |
|
| UWord_t Key |
| 704 |
|
| INIT: |
| 705 |
0 |
| int Rc_int = DEADBEEF; |
| 706 |
|
| PPCODE: |
| 707 |
0 |
▶ | OOGA("%s:%d JLFE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLFE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 708 |
0 |
▶ | JLFE(Rc_int,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLFE(Rc_int,PJLArray,Key); |
0 |
0 |
0 |
|
| 709 |
0 |
▶ | OOGA("%s:%d .JLFE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLFE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 710 |
|
| |
| 711 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 712 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 713 |
|
| } |
| 714 |
|
| |
| 715 |
|
| |
| 716 |
|
| void |
| 717 |
|
| ljl_NextEmpty( PJLArray, Key ) |
| 718 |
|
| Pvoid_t PJLArray |
| 719 |
|
| UWord_t Key |
| 720 |
|
| INIT: |
| 721 |
0 |
| int Rc_int = DEADBEEF; |
| 722 |
|
| PPCODE: |
| 723 |
0 |
▶ | OOGA("%s:%d JLNE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLNE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 724 |
0 |
▶ | JLNE(Rc_int,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLNE(Rc_int,PJLArray,Key); |
0 |
0 |
0 |
|
| 725 |
0 |
▶ | OOGA("%s:%d .JLNE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLNE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 726 |
|
| |
| 727 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 728 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 729 |
|
| } |
| 730 |
|
| |
| 731 |
|
| void |
| 732 |
|
| ljl_LastEmpty( PJLArray, Key ) |
| 733 |
|
| Pvoid_t PJLArray |
| 734 |
|
| UWord_t Key |
| 735 |
|
| INIT: |
| 736 |
0 |
| int Rc_int = DEADBEEF; |
| 737 |
|
| PPCODE: |
| 738 |
0 |
▶ | OOGA("%s:%d JLLE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLLE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 739 |
0 |
▶ | JLLE(Rc_int,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLLE(Rc_int,PJLArray,Key); |
0 |
0 |
0 |
|
| 740 |
0 |
▶ | OOGA("%s:%d .JLLE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLLE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 741 |
|
| |
| 742 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 743 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 744 |
|
| } |
| 745 |
|
| |
| 746 |
|
| void |
| 747 |
|
| ljl_PrevEmpty( PJLArray, Key ) |
| 748 |
|
| Pvoid_t PJLArray |
| 749 |
|
| UWord_t Key |
| 750 |
|
| INIT: |
| 751 |
0 |
| int Rc_int = DEADBEEF; |
| 752 |
|
| PPCODE: |
| 753 |
0 |
▶ | OOGA("%s:%d JLPE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JLPE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 754 |
0 |
▶ | JLPE(Rc_int,PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| JLPE(Rc_int,PJLArray,Key); |
0 |
0 |
0 |
|
| 755 |
0 |
▶ | OOGA("%s:%d .JLPE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JLPE(0x%x,%#lx,%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJLArray,Key); |
0 |
0 |
0 |
|
| 756 |
|
| |
| 757 |
0 |
▶ | if ( Rc_int ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Rc_int ) { |
0 |
0 |
0 |
|
| 758 |
0 |
▶ | XPUSHs(sv_2mortal(newSVuv(Key))); |
Branch: 1 branch
| Branch | True | False | Total |
| XPUSHs(sv_2mortal(newSVuv(Key))); |
0 |
0 |
0 |
|
| 759 |
|
| } |
| 760 |
|
| |
| 761 |
|
| |
| 762 |
|
| |
| 763 |
|
| |
| 764 |
|
| |
| 765 |
|
| |
| 766 |
|
| MODULE = Judy PACKAGE = Judy::SL PREFIX = ljsl_ |
| 767 |
|
| |
| 768 |
|
| PWord_t |
| 769 |
|
| ljsl_Set( PJSLArray, Key, Value ) |
| 770 |
|
| Pvoid_t PJSLArray |
| 771 |
|
| Str Key |
| 772 |
|
| IWord_t Value |
| 773 |
|
| INIT: |
| 774 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 775 |
|
| uint8_t Index[MAXLINELEN]; |
| 776 |
|
| CODE: |
| 777 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 778 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 779 |
|
| } |
| 780 |
0 |
| Copy((const char* const)Key.ptr,Index,(const int)Key.length,char); |
| 781 |
0 |
| Index[Key.length] = '\0'; |
| 782 |
|
| |
| 783 |
|
| /* Cast from (char*) to (const uint8_t*) to silence a warning. */ |
| 784 |
0 |
▶ | OOGA("%s:%d JSLI(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)&Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLI(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)&Index); |
0 |
0 |
0 |
|
| 785 |
0 |
▶ | JSLI(PValue,PJSLArray,(const uint8_t* const)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLI(PValue,PJSLArray,(const uint8_t* const)Index); |
0 |
0 |
0 |
|
| 786 |
0 |
▶ | OOGA("%s:%d .JSLI(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)&Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLI(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)&Index); |
0 |
0 |
0 |
|
| 787 |
|
| |
| 788 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 789 |
0 |
| *PValue = Value; |
| 790 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 791 |
|
| |
| 792 |
0 |
▶ | RETVAL = PValue; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = PValue; |
0 |
0 |
0 |
|
| 793 |
|
| OUTPUT: |
| 794 |
|
| PJSLArray |
| 795 |
|
| RETVAL |
| 796 |
|
| |
| 797 |
|
| int |
| 798 |
|
| ljsl_Delete( PJSLArray, Key ) |
| 799 |
|
| Pvoid_t PJSLArray |
| 800 |
|
| Str Key |
| 801 |
|
| INIT: |
| 802 |
0 |
| int Rc_int = DEADBEEF; |
| 803 |
|
| CODE: |
| 804 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 805 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 806 |
|
| } |
| 807 |
|
| |
| 808 |
|
| /* Cast from (char*) to (const uint8_t*) to silence a warning. */ |
| 809 |
0 |
▶ | OOGA("%s:%d JSLD(0x%x,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJSLArray,Key.ptr,(long)Key.ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLD(0x%x,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJSLArray,Key.ptr,(long)Key.ptr); |
0 |
0 |
0 |
|
| 810 |
0 |
▶ | JSLD(Rc_int,PJSLArray,(const uint8_t*)Key.ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLD(Rc_int,PJSLArray,(const uint8_t*)Key.ptr); |
0 |
0 |
0 |
|
| 811 |
0 |
▶ | OOGA("%s:%d .JSLD(0x%x,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJSLArray,Key.ptr,(long)Key.ptr); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLD(0x%x,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,Rc_int,(long)PJSLArray,Key.ptr,(long)Key.ptr); |
0 |
0 |
0 |
|
| 812 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 813 |
|
| OUTPUT: |
| 814 |
|
| PJSLArray |
| 815 |
|
| RETVAL |
| 816 |
|
| |
| 817 |
|
| void |
| 818 |
|
| ljsl_Get( PJSLArray, Key ) |
| 819 |
|
| Pvoid_t PJSLArray |
| 820 |
|
| Str Key |
| 821 |
|
| INIT: |
| 822 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 823 |
|
| uint8_t Index[MAXLINELEN]; |
| 824 |
|
| PPCODE: |
| 825 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 826 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 827 |
|
| } |
| 828 |
0 |
| Copy(Key.ptr,Index,Key.length,uint8_t); |
| 829 |
0 |
| Index[Key.length] = '\0'; |
| 830 |
|
| |
| 831 |
|
| /* Cast from (char*) to (const uint8_t*) to silence a warning. */ |
| 832 |
0 |
▶ | OOGA("%s:%d PSLG(%#lx,%#lx,\"%s\"@%d)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Key.ptr,Key.length); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d PSLG(%#lx,%#lx,\"%s\"@%d)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Key.ptr,Key.length); |
0 |
0 |
0 |
|
| 833 |
0 |
▶ | JSLG(PValue,PJSLArray,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLG(PValue,PJSLArray,Index); |
0 |
0 |
0 |
|
| 834 |
0 |
▶ | OOGA("%s:%d PSLG(%#lx,%#lx,\"%s\"@%d)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Key.ptr,Key.length); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d PSLG(%#lx,%#lx,\"%s\"@%d)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Key.ptr,Key.length); |
0 |
0 |
0 |
|
| 835 |
|
| |
| 836 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 837 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 838 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 839 |
0 |
▶ | EXTEND(SP,2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,2); |
0 |
0 |
0 |
|
| 840 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 841 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 842 |
|
| } |
| 843 |
|
| |
| 844 |
|
| UWord_t |
| 845 |
|
| ljsl_Free( PJSLArray ) |
| 846 |
|
| Pvoid_t PJSLArray |
| 847 |
|
| INIT: |
| 848 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 849 |
|
| CODE: |
| 850 |
0 |
▶ | OOGA("%s:%d JSLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJSLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJSLArray); |
0 |
0 |
0 |
|
| 851 |
0 |
▶ | JSLFA(Rc_word,PJSLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLFA(Rc_word,PJSLArray); |
0 |
0 |
0 |
|
| 852 |
0 |
▶ | OOGA("%s:%d .JSLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJSLArray); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLFA(%#lx,%#lx)\n",__FILE__,__LINE__,Rc_word,(long)PJSLArray); |
0 |
0 |
0 |
|
| 853 |
|
| |
| 854 |
0 |
▶ | RETVAL = Rc_word; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_word; |
0 |
0 |
0 |
|
| 855 |
|
| OUTPUT: |
| 856 |
|
| PJSLArray |
| 857 |
|
| RETVAL |
| 858 |
|
| |
| 859 |
|
| void |
| 860 |
|
| ljsl_First( PJSLArray, Key ) |
| 861 |
|
| Pvoid_t PJSLArray |
| 862 |
|
| Str Key |
| 863 |
|
| INIT: |
| 864 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 865 |
|
| uint8_t Index[MAXLINELEN]; |
| 866 |
|
| PPCODE: |
| 867 |
|
| /* Copy Index because it is both input and output. */ |
| 868 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 869 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 870 |
|
| } |
| 871 |
0 |
| Copy(Key.ptr,Index,Key.length,uint8_t); |
| 872 |
0 |
| Index[Key.length] = '\0'; |
| 873 |
|
| |
| 874 |
|
| /* Cast from (char*) to (uint8_t*) to silence a warning. */ |
| 875 |
0 |
▶ | OOGA("%s:%d JSLF(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLF(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 876 |
0 |
▶ | JSLF(PValue,PJSLArray,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLF(PValue,PJSLArray,Index); |
0 |
0 |
0 |
|
| 877 |
0 |
▶ | OOGA("%s:%d .JSLF(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLF(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 878 |
|
| |
| 879 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 880 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 881 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 882 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 883 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 884 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 885 |
0 |
| PUSHs(sv_2mortal(newSVpv((char*)Index,0))); |
| 886 |
|
| } |
| 887 |
|
| |
| 888 |
|
| void |
| 889 |
|
| ljsl_Next( PJSLArray, Key ) |
| 890 |
|
| Pvoid_t PJSLArray |
| 891 |
|
| Str Key |
| 892 |
|
| INIT: |
| 893 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 894 |
|
| uint8_t Index[MAXLINELEN]; |
| 895 |
|
| PPCODE: |
| 896 |
|
| /* Copy Index because it is both input and output. */ |
| 897 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 898 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 899 |
|
| } |
| 900 |
0 |
| Copy(Key.ptr,Index,Key.length,uint8_t); |
| 901 |
0 |
| Index[Key.length] = '\0'; |
| 902 |
|
| |
| 903 |
|
| /* Cast from (char*) to (uint8_t*) to silence a warning. */ |
| 904 |
0 |
▶ | OOGA("%s:%d JSLN(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLN(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 905 |
0 |
▶ | JSLN(PValue,PJSLArray,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLN(PValue,PJSLArray,Index); |
0 |
0 |
0 |
|
| 906 |
0 |
▶ | OOGA("%s:%d .JSLN(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLN(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 907 |
|
| |
| 908 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 909 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 910 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 911 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 912 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 913 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 914 |
0 |
| PUSHs(sv_2mortal(newSVpv((char*)Index,0))); |
| 915 |
|
| } |
| 916 |
|
| |
| 917 |
|
| void |
| 918 |
|
| ljsl_Last( PJSLArray, Key ) |
| 919 |
|
| Pvoid_t PJSLArray |
| 920 |
|
| Str Key |
| 921 |
|
| INIT: |
| 922 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 923 |
|
| uint8_t Index[MAXLINELEN]; |
| 924 |
|
| PPCODE: |
| 925 |
|
| /* Copy Index because it is both input and output. */ |
| 926 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 927 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 928 |
|
| } |
| 929 |
0 |
| Copy(Key.ptr,Index,Key.length,uint8_t); |
| 930 |
0 |
| Index[Key.length] = '\0'; |
| 931 |
|
| |
| 932 |
|
| /* Cast from (char*) to (uint8_t*) to silence a warning. */ |
| 933 |
0 |
▶ | OOGA("%s:%d JSLL(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLL(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 934 |
0 |
▶ | JSLL(PValue,PJSLArray,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLL(PValue,PJSLArray,Index); |
0 |
0 |
0 |
|
| 935 |
0 |
▶ | OOGA("%s:%d .JSLL(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLL(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 936 |
|
| |
| 937 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 938 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 939 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 940 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 941 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 942 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 943 |
0 |
| PUSHs(sv_2mortal(newSVpv((char*)Index,0))); |
| 944 |
|
| } |
| 945 |
|
| |
| 946 |
|
| void |
| 947 |
|
| ljsl_Prev( PJSLArray, Key ) |
| 948 |
|
| Pvoid_t PJSLArray |
| 949 |
|
| Str Key |
| 950 |
|
| INIT: |
| 951 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 952 |
|
| uint8_t Index[MAXLINELEN]; |
| 953 |
|
| PPCODE: |
| 954 |
|
| /* Copy Index because it is both input and output. */ |
| 955 |
0 |
▶ | if ( Key.length > MAXLINELEN ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( Key.length > MAXLINELEN ) { |
0 |
0 |
0 |
|
| 956 |
0 |
| croak("Sorry, can't use keys longer than "MAXLINELEN_S" for now. This is a bug."); |
| 957 |
|
| } |
| 958 |
0 |
| Copy(Key.ptr,Index,Key.length,uint8_t); |
| 959 |
0 |
| Index[Key.length] = '\0'; |
| 960 |
|
| |
| 961 |
|
| /* Cast from (char*) to (uint8_t*) to silence a warning. */ |
| 962 |
0 |
▶ | OOGA("%s:%d JSLP(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d JSLP(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 963 |
0 |
▶ | JSLP(PValue,PJSLArray,Index); |
Branch: 1 branch
| Branch | True | False | Total |
| JSLP(PValue,PJSLArray,Index); |
0 |
0 |
0 |
|
| 964 |
0 |
▶ | OOGA("%s:%d .JSLP(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d .JSLP(%#lx,%#lx,\"%s\"@%#lx)\n",__FILE__,__LINE__,(long)PValue,(long)PJSLArray,Index,(long)Index); |
0 |
0 |
0 |
|
| 965 |
|
| |
| 966 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 967 |
0 |
▶ | OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%s:%d *%#lx=",__FILE__,__LINE__,(long)PValue); |
0 |
0 |
0 |
|
| 968 |
0 |
▶ | OOGA("%#lx)\n",*PValue); |
Branch: 1 branch
| Branch | True | False | Total |
| OOGA("%#lx)\n",*PValue); |
0 |
0 |
0 |
|
| 969 |
0 |
▶ | EXTEND(SP,3); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,3); |
0 |
0 |
0 |
|
| 970 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 971 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 972 |
0 |
| PUSHs(sv_2mortal(newSVpv((char*)Index,0))); |
| 973 |
|
| } |
| 974 |
|
| |
| 975 |
|
| |
| 976 |
|
| |
| 977 |
|
| |
| 978 |
|
| |
| 979 |
|
| |
| 980 |
|
| MODULE = Judy PACKAGE = Judy::HS PREFIX = ljhs_ |
| 981 |
|
| |
| 982 |
|
| UWord_t |
| 983 |
|
| ljhs_MemUsed( PJHSArray ) |
| 984 |
|
| Pvoid_t PJHSArray |
| 985 |
|
| CODE: |
| 986 |
0 |
| RETVAL = pvtJudyHSMemUsed( PJHSArray ); |
| 987 |
|
| OUTPUT: |
| 988 |
|
| RETVAL |
| 989 |
|
| |
| 990 |
|
| UWord_t |
| 991 |
|
| ljhs_Duplicates( PJHSArray, Key ) |
| 992 |
|
| Pvoid_t PJHSArray |
| 993 |
|
| Str Key |
| 994 |
|
| INIT: |
| 995 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 996 |
|
| CODE: |
| 997 |
0 |
▶ | JHSI(PValue,PJHSArray,Key.ptr,Key.length); |
Branch: 1 branch
| Branch | True | False | Total |
| JHSI(PValue,PJHSArray,Key.ptr,Key.length); |
0 |
0 |
0 |
|
| 998 |
0 |
| RETVAL = *PValue; |
| 999 |
0 |
▶ | ++*PValue; |
Branch: 1 branch
| Branch | True | False | Total |
| ++*PValue; |
0 |
0 |
0 |
|
| 1000 |
|
| OUTPUT: |
| 1001 |
|
| PJHSArray |
| 1002 |
|
| RETVAL |
| 1003 |
|
| |
| 1004 |
|
| |
| 1005 |
|
| |
| 1006 |
|
| PWord_t |
| 1007 |
|
| ljhs_Set( PJHSArray, Key, Value ) |
| 1008 |
|
| Pvoid_t PJHSArray |
| 1009 |
|
| Str Key |
| 1010 |
|
| IWord_t Value |
| 1011 |
|
| INIT: |
| 1012 |
0 |
| IWord_t *PValue = PDEADBEEF; |
| 1013 |
|
| CODE: |
| 1014 |
0 |
▶ | JHSI(PValue,PJHSArray,Key.ptr,Key.length); |
Branch: 1 branch
| Branch | True | False | Total |
| JHSI(PValue,PJHSArray,Key.ptr,Key.length); |
0 |
0 |
0 |
|
| 1015 |
0 |
| *PValue = Value; |
| 1016 |
0 |
▶ | RETVAL = PValue; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = PValue; |
0 |
0 |
0 |
|
| 1017 |
|
| OUTPUT: |
| 1018 |
|
| PJHSArray |
| 1019 |
|
| RETVAL |
| 1020 |
|
| |
| 1021 |
|
| int |
| 1022 |
|
| ljhs_Delete( PJHSArray, Key ) |
| 1023 |
|
| Pvoid_t PJHSArray |
| 1024 |
|
| Str Key |
| 1025 |
|
| INIT: |
| 1026 |
0 |
| int Rc_int = DEADBEEF; |
| 1027 |
|
| CODE: |
| 1028 |
0 |
▶ | JHSD(Rc_int,PJHSArray,Key.ptr,Key.length); |
Branch: 1 branch
| Branch | True | False | Total |
| JHSD(Rc_int,PJHSArray,Key.ptr,Key.length); |
0 |
0 |
0 |
|
| 1029 |
0 |
▶ | RETVAL = Rc_int; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_int; |
0 |
0 |
0 |
|
| 1030 |
|
| OUTPUT: |
| 1031 |
|
| PJHSArray |
| 1032 |
|
| RETVAL |
| 1033 |
|
| |
| 1034 |
|
| void |
| 1035 |
|
| ljhs_Get( PJHSArray, Key ) |
| 1036 |
|
| Pvoid_t PJHSArray |
| 1037 |
|
| Str Key |
| 1038 |
|
| INIT: |
| 1039 |
0 |
| PWord_t PValue = PDEADBEEF; |
| 1040 |
|
| PPCODE: |
| 1041 |
0 |
| JHSG(PValue,PJHSArray,Key.ptr,Key.length); |
| 1042 |
|
| |
| 1043 |
|
| /* OUTPUT */ |
| 1044 |
0 |
▶ | if ( PValue ) { |
Branch: 1 branch
| Branch | True | False | Total |
| if ( PValue ) { |
0 |
0 |
0 |
|
| 1045 |
0 |
▶ | EXTEND(SP,2); |
Branch: 1 branch
| Branch | True | False | Total |
| EXTEND(SP,2); |
0 |
0 |
0 |
|
| 1046 |
0 |
| PUSHs(sv_2mortal(newSVuv(INT2PTR(UV,PValue)))); |
| 1047 |
0 |
| PUSHs(sv_2mortal(newSViv((signed long int)*PValue))); |
| 1048 |
|
| } |
| 1049 |
|
| |
| 1050 |
|
| UWord_t |
| 1051 |
|
| ljhs_Free( PJHSArray ) |
| 1052 |
|
| Pvoid_t PJHSArray |
| 1053 |
|
| INIT: |
| 1054 |
0 |
| UWord_t Rc_word = DEADBEEF; |
| 1055 |
|
| CODE: |
| 1056 |
0 |
▶ | JHSFA(Rc_word,PJHSArray); |
Branch: 1 branch
| Branch | True | False | Total |
| JHSFA(Rc_word,PJHSArray); |
0 |
0 |
0 |
|
| 1057 |
0 |
▶ | RETVAL = Rc_word; |
Branch: 1 branch
| Branch | True | False | Total |
| RETVAL = Rc_word; |
0 |
0 |
0 |
|
| 1058 |
|
| OUTPUT: |
| 1059 |
|
| PJHSArray |
| 1060 |
|
| RETVAL |
| 1061 |
|
| |
| 1062 |
|
| |
| 1063 |
|
| |
| 1064 |
|
| |
| 1065 |
|
| |
| 1066 |
|
| |
| 1067 |
|
| MODULE = Judy PACKAGE = Judy PREFIX = lj_ |
| 1068 |
|
| |
| 1069 |
|
| # Switch back to the base Judy namespace. xsubpp requires this. |
| 1070 |
|
| # |
| 1071 |
|
| # Also, avoid terminating in =pod because ExtUtils::ParseXS throws |
| 1072 |
|
| # warnings. This paragraph used to be in =pod/cut comments. |