Menu

[r3316]: / trunk / src / xmlrpc_struct.c  Maximize  Restore  History

Download this file

712 lines (560 with data), 23.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
#include <stdio.h>
#include "xmlrpc_config.h"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "xmlrpc-c/base.h"
#include "xmlrpc-c/base_int.h"
#include "int.h"
#define KEY_ERROR_BUFFER_SZ (32)
static uint32_t
hashStructKey(const char * const key,
size_t const keyLen) {
uint32_t hash;
size_t i;
XMLRPC_ASSERT(key != NULL);
/* This is the Bernstein hash, optimized for lower case ASCII
keys. Note that the bytes of such a key differ only in their
lower 5 bits.
*/
for (hash = 0, i = 0; i < keyLen; ++i)
hash = hash + key[i] + (hash << 5);
return hash;
}
static void
changeMemberValue(xmlrpc_value * const structP,
unsigned int const mbrIndex,
xmlrpc_value * const newValueP) {
/*----------------------------------------------------------------------------
Change the value of an existing member. (But be careful--the original and
new values might be the same object, so watch the order of INCREF and DECREF
calls!)
-----------------------------------------------------------------------------*/
_struct_member * const members =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
_struct_member * const memberP = &members[mbrIndex];
xmlrpc_value * const oldValueP = memberP->value;
/* Juggle our references. */
memberP->value = newValueP;
xmlrpc_INCREF(memberP->value);
xmlrpc_DECREF(oldValueP);
}
static void
addNewMember(xmlrpc_env * const envP,
xmlrpc_value * const structP,
xmlrpc_value * const keyvalP,
xmlrpc_value * const valueP) {
/*----------------------------------------------------------------------------
Add a new member. Assume no member already exists with this key.
-----------------------------------------------------------------------------*/
const char * const key =
XMLRPC_MEMBLOCK_CONTENTS(char, keyvalP->blockP);
size_t const keyLen =
XMLRPC_MEMBLOCK_SIZE(char, keyvalP->blockP) - 1;
_struct_member newMember;
newMember.keyHash = hashStructKey(key, keyLen);
newMember.key = keyvalP;
newMember.value = valueP;
XMLRPC_MEMBLOCK_APPEND(_struct_member, envP, structP->blockP,
&newMember, 1);
if (!envP->fault_occurred) {
xmlrpc_INCREF(keyvalP);
xmlrpc_INCREF(valueP);
}
}
void
xmlrpc_destroyStruct(xmlrpc_value * const structP) {
/*----------------------------------------------------------------------------
Dispose of the contents of struct *structP (but not the struct value
itself). The value is not valid after this.
-----------------------------------------------------------------------------*/
_struct_member * const members =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
size_t const size =
XMLRPC_MEMBLOCK_SIZE(_struct_member, structP->blockP);
unsigned int i;
for (i = 0; i < size; ++i) {
xmlrpc_DECREF(members[i].key);
xmlrpc_DECREF(members[i].value);
}
XMLRPC_MEMBLOCK_FREE(_struct_member, structP->blockP);
}
/*=========================================================================
** xmlrpc_struct_new
**=========================================================================
** Create a new <struct> value. The corresponding destructor code
** currently lives in xmlrpc_DECREF.
**
** We store the individual members in an array of _struct_member. This
** contains a key, a hash code, and a value. We look up keys by doing
** a linear search of the hash codes.
*/
xmlrpc_value *
xmlrpc_struct_new(xmlrpc_env * const envP) {
xmlrpc_value * valP;
XMLRPC_ASSERT_ENV_OK(envP);
xmlrpc_createXmlrpcValue(envP, &valP);
if (!envP->fault_occurred) {
valP->_type = XMLRPC_TYPE_STRUCT;
valP->blockP = XMLRPC_MEMBLOCK_NEW(_struct_member, envP, 0);
if (envP->fault_occurred)
free(valP);
}
return valP;
}
xmlrpc_value *
xmlrpc_struct_new_value(xmlrpc_env * const envP,
xmlrpc_value * const valueP) {
xmlrpc_value * structP;
if (valueP->_type != XMLRPC_TYPE_STRUCT) {
xmlrpc_env_set_fault_formatted(envP, XMLRPC_TYPE_ERROR,
"Value is not a structure. "
"It is type #%d", valueP->_type);
structP = NULL;
} else {
xmlrpc_createXmlrpcValue(envP, &structP);
if (!envP->fault_occurred) {
structP->_type = XMLRPC_TYPE_STRUCT;
structP->blockP = XMLRPC_MEMBLOCK_NEW(_struct_member, envP, 0);
if (envP->fault_occurred)
free(structP);
else {
_struct_member * const srcMemberList =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, valueP->blockP);
size_t const size =
XMLRPC_MEMBLOCK_SIZE(_struct_member, valueP->blockP);
unsigned int i;
for (i = 0; i < size && !envP->fault_occurred; ++i) {
const _struct_member * const thisMemberP =
&srcMemberList[i];
xmlrpc_value * keyValP =
xmlrpc_string_new_value(envP, thisMemberP->key);
if (!envP->fault_occurred) {
xmlrpc_value * valueP =
xmlrpc_value_new(envP, thisMemberP->value);
if (!envP->fault_occurred) {
addNewMember(envP, structP, keyValP, valueP);
xmlrpc_DECREF(valueP);
}
xmlrpc_DECREF(keyValP);
}
}
if (envP->fault_occurred)
xmlrpc_destroyStruct(structP);
}
if (envP->fault_occurred)
free(structP);
}
}
return structP;
}
/*=========================================================================
** xmlrpc_struct_size
**=========================================================================
** Return the number of key-value pairs contained in the struct. If the
** value is not a struct, return -1 and set a fault.
*/
int
xmlrpc_struct_size(xmlrpc_env * const envP,
xmlrpc_value * const structP) {
int retval;
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
if (structP->_type != XMLRPC_TYPE_STRUCT) {
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR, "Value is not a struct. It is type #%d",
structP->_type);
retval = -1;
} else {
size_t const size =
XMLRPC_MEMBLOCK_SIZE(_struct_member, structP->blockP);
assert((size_t)(int)size == size);
/* Because structs are defined to have few enough members */
retval = (int)size;
}
return retval;
}
static void
findMember(xmlrpc_value * const structP,
const char * const key,
size_t const keyLen,
bool * const foundP,
unsigned int * const indexP) {
size_t size, i;
uint32_t searchHash;
_struct_member * contents; /* array */
bool found;
size_t foundIndex; /* Meaningful only when 'found' is true */
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT(key != NULL);
foundIndex = 0; /* defeat used-before-set compiler warning */
/* Look for our key. */
searchHash = hashStructKey(key, keyLen);
size = XMLRPC_MEMBLOCK_SIZE(_struct_member, structP->blockP);
contents = XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
for (i = 0, found = false; i < size && !found; ++i) {
if (contents[i].keyHash == searchHash) {
xmlrpc_value * const keyvalP = contents[i].key;
const char * const keystr =
XMLRPC_MEMBLOCK_CONTENTS(char, keyvalP->blockP);
size_t const keystrSize =
XMLRPC_MEMBLOCK_SIZE(char, keyvalP->blockP)-1;
if (keystrSize == keyLen && memcmp(key, keystr, keyLen) == 0) {
found = true;
foundIndex = i;
}
}
}
if (found) {
assert((size_t)(int)foundIndex == foundIndex);
/* Definition of structure says it has few enough members */
if (indexP)
*indexP = foundIndex;
}
*foundP = found;
}
/*=========================================================================
** xmlrpc_struct_has_key
**=========================================================================
*/
int
xmlrpc_struct_has_key(xmlrpc_env * const envP,
xmlrpc_value * const strctP,
const char * const key) {
XMLRPC_ASSERT(key != NULL);
return xmlrpc_struct_has_key_n(envP, strctP, key, strlen(key));
}
int
xmlrpc_struct_has_key_n(xmlrpc_env * const envP,
xmlrpc_value * const structP,
const char * const key,
size_t const keyLen) {
int retval;
/* Suppress a compiler warning about uninitialized variables. */
retval = 0;
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT(key != NULL);
if (structP->_type != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault(envP, XMLRPC_TYPE_ERROR,
"Value is not a struct");
else {
bool found;
findMember(structP, key, keyLen, &found, NULL);
retval = found ? 1 : 0;
}
return retval;
}
/*=========================================================================
** xmlrpc_struct_find_value...
**=========================================================================
** These functions look up a specified key value in a specified struct.
** If it exists, they return the value of the struct member. If not,
** they return a NULL to indicate such.
*/
/* It would be a nice extension to be able to look up a key that is
not a text string.
*/
void
xmlrpc_struct_find_value(xmlrpc_env * const envP,
xmlrpc_value * const structP,
const char * const key,
xmlrpc_value ** const valuePP) {
/*----------------------------------------------------------------------------
Given a key, retrieve a value from the struct. If the key is not
present, return NULL as *valuePP.
-----------------------------------------------------------------------------*/
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT_PTR_OK(key);
if (structP->_type != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR, "Value is not a struct. It is type #%d",
structP->_type);
else {
bool found;
unsigned int index;
/* Get our member index. */
findMember(structP, key, strlen(key), &found, &index);
if (!found)
*valuePP = NULL;
else {
_struct_member * const members =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
*valuePP = members[index].value;
XMLRPC_ASSERT_VALUE_OK(*valuePP);
xmlrpc_INCREF(*valuePP);
}
}
}
void
xmlrpc_struct_find_value_v(xmlrpc_env * const envP,
xmlrpc_value * const structP,
xmlrpc_value * const keyP,
xmlrpc_value ** const valuePP) {
/*----------------------------------------------------------------------------
Given a key, retrieve a value from the struct. If the key is not
present, return NULL as *valuePP.
-----------------------------------------------------------------------------*/
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT_VALUE_OK(keyP);
if (structP->_type != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR, "Value is not a struct. It is type #%d",
structP->_type);
else {
if (keyP->_type != XMLRPC_TYPE_STRING)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR, "Key value is not a string. "
"It is type #%d",
keyP->_type);
else {
bool found;
unsigned int index;
/* Get our member index. */
findMember(structP,
XMLRPC_MEMBLOCK_CONTENTS(char, keyP->blockP),
XMLRPC_MEMBLOCK_SIZE(char, keyP->blockP)-1,
&found, &index);
if (!found)
*valuePP = NULL;
else {
_struct_member * const members =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
*valuePP = members[index].value;
XMLRPC_ASSERT_VALUE_OK(*valuePP);
xmlrpc_INCREF(*valuePP);
}
}
}
}
/*=========================================================================
** xmlrpc_struct_read_value...
**=========================================================================
** These fail if no member with the specified key exists.
** Otherwise, they are the same as xmlrpc_struct_find_value...
*/
void
xmlrpc_struct_read_value_v(xmlrpc_env * const envP,
xmlrpc_value * const structP,
xmlrpc_value * const keyP,
xmlrpc_value ** const valuePP) {
xmlrpc_struct_find_value_v(envP, structP, keyP, valuePP);
if (!envP->fault_occurred) {
if (*valuePP == NULL) {
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_INDEX_ERROR, "No member of struct has key '%.*s'",
(int)XMLRPC_MEMBLOCK_SIZE(char, keyP->blockP),
XMLRPC_MEMBLOCK_CONTENTS(char, keyP->blockP));
}
}
}
void
xmlrpc_struct_read_value(xmlrpc_env * const envP,
xmlrpc_value * const structP,
const char * const key,
xmlrpc_value ** const valuePP) {
xmlrpc_struct_find_value(envP, structP, key, valuePP);
if (!envP->fault_occurred) {
if (*valuePP == NULL) {
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_INDEX_ERROR, "No member of struct has key '%s'",
key);
/* We should fix the error message to format the key for display */
}
}
}
/*=========================================================================
** xmlrpc_struct_get_value...
**=========================================================================
** These are for backward compatibility. They used to be the only ones.
** They're deprecated because they don't acquire a reference to the
** value they return.
*/
xmlrpc_value *
xmlrpc_struct_get_value_n(xmlrpc_env * const envP,
xmlrpc_value * const structP,
const char * const key,
size_t const keyLen) {
xmlrpc_value * retval;
xmlrpc_value * keyP; /* 'key' as an XML-RPC string */
keyP = xmlrpc_string_new_lp(envP, keyLen, key);
if (!envP->fault_occurred) {
xmlrpc_struct_find_value_v(envP, structP, keyP, &retval);
if (!envP->fault_occurred) {
if (retval == NULL) {
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_INDEX_ERROR,
"No member of struct has key '%.*s'",
(int)keyLen, key);
/* We should fix the error message to format the key
for display */
} else
/* For backward compatibility. */
xmlrpc_DECREF(retval);
}
xmlrpc_DECREF(keyP);
}
return retval;
}
xmlrpc_value *
xmlrpc_struct_get_value(xmlrpc_env * const envP,
xmlrpc_value * const strctP,
const char * const key) {
XMLRPC_ASSERT(key != NULL);
return xmlrpc_struct_get_value_n(envP, strctP, key, strlen(key));
}
/*=========================================================================
** xmlrpc_struct_set_value
**=========================================================================
*/
void
xmlrpc_struct_set_value(xmlrpc_env * const envP,
xmlrpc_value * const strctP,
const char * const key,
xmlrpc_value * const valueP) {
XMLRPC_ASSERT(key != NULL);
xmlrpc_struct_set_value_n(envP, strctP, key, strlen(key), valueP);
}
void
xmlrpc_struct_set_value_n(xmlrpc_env * const envP,
xmlrpc_value * const strctP,
const char * const key,
size_t const keyLen,
xmlrpc_value * const valueP) {
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT(key != NULL);
if (xmlrpc_value_type(strctP) != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR,
"Trying to set value in something not a struct. "
"Type is %d; struct is %d",
xmlrpc_value_type(strctP), XMLRPC_TYPE_STRUCT);
else {
xmlrpc_value * keyvalP; /* 'key' as an XML-RPC string */
keyvalP = xmlrpc_string_new_lp(envP, keyLen, key);
if (!envP->fault_occurred)
xmlrpc_struct_set_value_v(envP, strctP, keyvalP, valueP);
xmlrpc_DECREF(keyvalP);
}
}
void
xmlrpc_struct_set_value_v(xmlrpc_env * const envP,
xmlrpc_value * const structP,
xmlrpc_value * const keyvalP,
xmlrpc_value * const valueP) {
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT_VALUE_OK(keyvalP);
XMLRPC_ASSERT_VALUE_OK(valueP);
if (structP->_type != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault(envP, XMLRPC_TYPE_ERROR,
"Value is not a struct");
else if (keyvalP->_type != XMLRPC_TYPE_STRING)
xmlrpc_env_set_fault(envP, XMLRPC_TYPE_ERROR,
"Key value is not a string");
else {
const char * const key =
XMLRPC_MEMBLOCK_CONTENTS(char, keyvalP->blockP);
size_t const keyLen =
XMLRPC_MEMBLOCK_SIZE(char, keyvalP->blockP) - 1;
bool found;
unsigned int index;
findMember(structP, key, keyLen, &found, &index);
if (found)
changeMemberValue(structP, index, valueP);
else
addNewMember(envP, structP, keyvalP, valueP);
}
}
/* Note that the order of keys and values is undefined, and may change
when you modify the struct.
*/
void
xmlrpc_struct_read_member(xmlrpc_env * const envP,
xmlrpc_value * const structP,
unsigned int const index,
xmlrpc_value ** const keyvalP,
xmlrpc_value ** const valueP) {
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT_PTR_OK(keyvalP);
XMLRPC_ASSERT_PTR_OK(valueP);
if (structP->_type != XMLRPC_TYPE_STRUCT)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_TYPE_ERROR, "Attempt to read a struct member "
"of something that is not a struct");
else {
_struct_member * const members =
XMLRPC_MEMBLOCK_CONTENTS(_struct_member, structP->blockP);
size_t const size =
XMLRPC_MEMBLOCK_SIZE(_struct_member, structP->blockP);
if (index >= size)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_INDEX_ERROR, "Index %u is beyond the end of "
"the %u-member structure", index, (unsigned int)size);
else {
_struct_member * const memberP = &members[index];
*keyvalP = memberP->key;
xmlrpc_INCREF(memberP->key);
*valueP = memberP->value;
xmlrpc_INCREF(memberP->value);
}
}
}
void
xmlrpc_struct_get_key_and_value(xmlrpc_env * const envP,
xmlrpc_value * const structP,
int const index,
xmlrpc_value ** const keyvalP,
xmlrpc_value ** const valueP) {
/*----------------------------------------------------------------------------
Same as xmlrpc_struct_read_member(), except doesn't take a reference
to the returned value.
This is obsolete.
-----------------------------------------------------------------------------*/
XMLRPC_ASSERT_ENV_OK(envP);
XMLRPC_ASSERT_VALUE_OK(structP);
XMLRPC_ASSERT_PTR_OK(keyvalP);
XMLRPC_ASSERT_PTR_OK(valueP);
if (index < 0)
xmlrpc_env_set_fault_formatted(
envP, XMLRPC_INDEX_ERROR, "Index %d is negative.", index);
else {
xmlrpc_struct_read_member(envP, structP, index, keyvalP, valueP);
if (!envP->fault_occurred) {
xmlrpc_DECREF(*keyvalP);
xmlrpc_DECREF(*valueP);
}
}
if (envP->fault_occurred) {
*keyvalP = NULL;
*valueP = NULL;
}
}
/* Copyright (C) 2001 by First Peer, Inc. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
** 1. Redistributions of source code must retain the above copyright
** notice, this list of conditions and the following disclaimer.
** 2. Redistributions in binary form must reproduce the above copyright
** notice, this list of conditions and the following disclaimer in the
** documentation and/or other materials provided with the distribution.
** 3. The name of the author may not be used to endorse or promote products
** derived from this software without specific prior written permission.
**
** THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
** ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
** OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
** LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
** OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
** SUCH DAMAGE. */
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.