summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright statements for 2013.Michael Jennings2013-03-224-4/+4
|
* Remove RCS keyword strings; Git doesn't support them.Michael Jennings2013-03-223-6/+0
|
* The MEMSET() macro is now an order of magnitude *slower* than glibc.Michael Jennings2013-03-053-12/+52
| | | | It has been removed and relegated to the annals of SCM history.
* remove .cvsignore filesBoris Faure2011-06-121-8/+0
| | | | SVN revision: 60246
* Revert coccinelle changes.Michael Jennings2010-08-231-23/+23
| | | | | | | | | | Using !! instead of != NULL results in significantly and unacceptably less readable code, and I refuse to accept those changes. Unfortunately, since they were all done at once, I have to revert the whole thing. Oh well. :( SVN revision: 51583
* Convert (hopefully) all comparisons to NULLLucas De Marchi2010-08-211-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apply badzero.cocci, badnull.coci and badnull2.cocci This should convert all cases where there's a comparison to NULL to simpler forms. This patch applies the following transformations: code before patch ||code after patch =============================================================== return a == NULL; return !a; return a != NULL; return !!a; func(a == NULL); func(!a); func(a != NULL); func(!!a); b = a == NULL; b = !a; b = a != NULL; b = !!a; b = a == NULL ? c : d; b = !a ? c : d; b = a != NULL ? c : d; b = a ? c : d; other cases: a == NULL !a a != NULL a SVN revision: 51487
* Fix a bug in perf test. Don't delete strings in use :)Nicholas Hughart2008-10-261-2/+1
| | | | SVN revision: 37185
* Sun Oct 26 15:56:20 2008 Michael Jennings (mej)Michael Jennings2008-10-262-182/+182
| | | | | | | | | | | Remove unnecessary typecasting macros. They were supposed to save typing and improve readability, but I've concluded that they tend to do neither. More cleanups to come; there appear to be some new warnings I need to deal with. ---------------------------------------------------------------------- SVN revision: 37181
* Thu Jul 13 14:02:08 2006 Michael Jennings (mej)Michael Jennings2006-07-131-222/+268
| | | | | | | | | | | | | Added thread, mutex, and condition interfaces along with their corresponding pthreads-based implementations. Not quite done yet, and not tested. Added dynamically-loadable module object class along with corresponding unit tests. Appears to work fine. ---------------------------------------------------------------------- SVN revision: 23882
* Tue Apr 25 10:19:10 2006 Michael Jennings (mej)Michael Jennings2006-04-251-2/+53
| | | | | | | | | | Added sprintf() routines for string classes. Began work on UTF-8/Unicode strings. ---------------------------------------------------------------------- SVN revision: 22350
* Thu Apr 20 16:44:39 2006 Michael Jennings (mej)Michael Jennings2006-04-201-0/+477
| | | | | | | | | | | | Added mbuff and ustr to testing routines. Fleshed out ustr class; doesn't do UTF-8 yet though. Fixed array removal code. I have no idea how that was working before. ---------------------------------------------------------------------- SVN revision: 22271
* Fri Feb 24 16:45:38 2006 Michael Jennings (mej)Michael Jennings2006-02-241-0/+1
| | | | | | | | | Make removal of options from argv[] optional and off by default. Fixes Eterm problem with WM_COMMAND entries being empty. ---------------------------------------------------------------------- SVN revision: 20765
* Mon Mar 7 17:28:00 2005 Michael Jennings (mej)Michael Jennings2005-03-071-0/+1
| | | | | | | | | | | Cleaner "make maintainer-clean" Finally found and fixed that stupid "Config file is designed for a newer version of FOO" bullshit warning. ---------------------------------------------------------------------- SVN revision: 13656
* Tue Dec 14 17:51:20 2004 Michael Jennings (mej)Michael Jennings2004-12-151-3/+3
| | | | | | | | | | | | | | | | | | | More work from my vacation. Turned the string class into both an interface and an implementation, and created a new multipurpose buffer class (untested) for arbitrary text/binary data. (Think "strings with embedded newlines" if that helps.) Now, if someone were so inclined, (s)he could create a LibAST implementation of the "str" interface based on glib strings, or QStrings, or whatever with almost no changes to the code using the libast string API (once the function calls like spif_str_new() are replaced with macro calls like SPIF_STR_NEW()). A UTF-8-based string implementation is forthcoming. ---------------------------------------------------------------------- SVN revision: 12473
* Tue Oct 26 13:58:45 2004 Michael Jennings (mej)Michael Jennings2004-10-262-6/+7
| | | | | | | | | Pre-parsing is kinda unique, and most applications probably won't need it. So now pre-parsing of options must be specifically requested. ---------------------------------------------------------------------- SVN revision: 12036
* Tue Oct 26 12:05:51 2004 Michael Jennings (mej)Michael Jennings2004-10-261-2/+9
| | | | | | | | | Upon return from spifopt_parse()'s postparsing run, argv[] will now contain only the non-option arguments left on the command line. ---------------------------------------------------------------------- SVN revision: 12033
* Fri Jul 23 17:36:45 2004 Michael Jennings (mej)Michael Jennings2004-07-231-434/+442
| | | | | | | | Finally we have strict C99 compliance. ---------------------------------------------------------------------- SVN revision: 10995
* Tue Jun 29 17:23:34 2004 Michael Jennings (mej)Michael Jennings2004-06-291-10/+10
| | | | | | | | Oops, forgot some re-ordering. ---------------------------------------------------------------------- SVN revision: 10643
* Tue Jun 29 17:14:13 2004 Michael Jennings (mej)Michael Jennings2004-06-291-0/+29
| | | | | | | | | | Some small fixes suggested by Charlie Gordon <gmane@chqrlie.org>. Minor build tweaks...updated to new release number. ---------------------------------------------------------------------- SVN revision: 10642
* Wed Mar 10 17:58:14 2004 Michael Jennings (mej)Michael Jennings2004-03-101-3/+1
| | | | | | | Added array and dlinked_list implementations of the map interface. SVN revision: 9317
* Wed Mar 10 17:15:14 2004 Michael Jennings (mej)Michael Jennings2004-03-101-0/+281
| | | | | | | | | Working map implementation using the linked_list class. Added some new string functions. SVN revision: 9316
* Thu Feb 5 16:31:43 2004 Michael Jennings (mej)Michael Jennings2004-02-051-0/+4
| | | | | | | | Plugged a few leaks and cleaned up one uninitialized parameter problem. SVN revision: 8821
* Wed Feb 4 17:24:56 2004 Michael Jennings (mej)Michael Jennings2004-02-042-4/+18
| | | | | | | Some test improvements. SVN revision: 8810
* Wed Feb 4 10:53:04 2004 Michael Jennings (mej)Michael Jennings2004-02-042-4/+3
| | | | | | | Should be all fixed now. SVN revision: 8800
* Tue Feb 3 18:18:32 2004 Michael Jennings (mej)Michael Jennings2004-02-031-5/+9
| | | | | | | Cleanups are done. Almost done with the NULL handling for lists too. SVN revision: 8790
* Mon Feb 2 17:22:42 2004 Michael Jennings (mej)Michael Jennings2004-02-021-1/+0
| | | | | | | More cleanups. And yes, I know "make test" doesn't work. SVN revision: 8772
* Fri Jan 30 17:55:47 2004 Michael Jennings (mej)Michael Jennings2004-01-301-3/+19
| | | | | | | | | | Working on adding assertions/requires for NULL object checks. Also making sure list elements can be NULL so insert_at() can resize a list. SVN revision: 8731
* Thu Jan 22 20:42:40 2004 Michael Jennings (mej)Michael Jennings2004-01-233-129/+473
| | | | | | | | | | | | | | | | Added a few new hashes. Fixed a typo in the old hashes. LibAST-ized the hash tests and made new performance tests. Anybody care to comment on the validity of my performance tests? All 6 algorithms end up with pretty much the same results. Do I need to use a dictionary instead of random "words?" That's kinda what I'm thinking.... SVN revision: 8623
* Wed Jan 21 18:19:49 2004 Michael Jennings (mej)Michael Jennings2004-01-211-0/+146
| | | | | | | Adding hash functions in preparation for a hash table implementation. SVN revision: 8605
* Sat Jan 10 16:12:42 2004 Michael Jennings (mej)Michael Jennings2004-01-104-4/+4
| | | | | | | | | Step #1: Update copyright statements. Step #2: ??? Step #3: Profit. SVN revision: 8333
* Fri Dec 12 22:01:42 2003 Michael Jennings (mej)Michael Jennings2003-12-132-104/+60
| | | | | | | Finished up namespace cleanups. SVN revision: 8107
* Wed Nov 26 21:07:16 2003 Michael Jennings (mej)Michael Jennings2003-11-272-17/+17
| | | | | | | Working on cleaning up namespace issues. SVN revision: 7954
* Wed Nov 26 17:18:20 2003 Michael Jennings (mej)Michael Jennings2003-11-262-7/+7
| | | | | | | | | Added sysdefs.h so that client programs who don't employ some/all of the AST_* m4 macros can still get all the #define's they need for the auto* stuff. SVN revision: 7951
* Wed Nov 19 17:39:01 2003 Michael Jennings (mej)Michael Jennings2003-11-191-2/+36
| | | | | | | | | | | | Added linked_list and dlinked_list implementations of the vector interface. Added iterator functionality for linked_list and dlinked_list. Added unit tests for the above. SVN revision: 7917
* Mon Jun 16 20:43:43 2003 Michael Jennings (mej)Michael Jennings2003-06-171-0/+1
| | | | | | | | | Additional documentation. Added support for versions containing "rc." SVN revision: 7038
* Wed Feb 19 16:09:32 2003 Michael Jennings (mej)Michael Jennings2003-02-194-4/+4
| | | | | | | Updated copyright statements for 2003. SVN revision: 6697
* Mon Dec 30 17:49:43 2002 Michael Jennings (mej)Michael Jennings2002-12-301-0/+133
| | | | | | | | | | | | | | | | | | | | | | | I added a new interface, this one called a "vector." The difference between a vector and a list is that a vector, as the name implies, is guaranteed to be "pointing in one direction," i.e. ordered. This interface should be used in preference to the "list" interface for ordered lists, specifically where search speed is vastly more important than insertion/deletion speed. The array implementation is now doing double-duty, as it implements both the list and the vector interfaces. Most of an AVL tree implementation is included in this commit as well. Brian Schenkenfelder <brians@nplus1.net> graciously offered me an AVL tree implementation that he'd written awhile back, which I modified to use the libast semantics. Unfortunately, he never implemented the removal code, so I'm hoping that some kind soul who has had a data structures class more recently than I have will jump in and finish it for me. (*hint hint*) :-) SVN revision: 6536
* Tue Aug 13 21:38:04 2002 Michael Jennings (mej)Michael Jennings2002-08-142-1/+344
| | | | | | | | | Working implementation of a regular expression object which supports (and abstracts) PCRE, POSIX, or BSD regular expression functionality. Also fixed some bugs with the list code and the cpp stuff. SVN revision: 6362
* Wed Jul 31 17:49:17 2002 Michael Jennings (mej)Michael Jennings2002-07-311-22/+122
| | | | | | | | | | | | | Added the _reverse() and _to_array() routines to all 3 list classes (finally). Also added unit tests for those. The tests for the socket code no longer download my home page. Now, I create a listening socket and a sending socket for a TCP/IP and a UNIX socket. Then I send/receive data across the socket and compare what I received with what I sent. Self-contained is better. :-) SVN revision: 6353
* Tue Jul 30 17:34:38 2002 Michael Jennings (mej)Michael Jennings2002-07-301-0/+15
| | | | | | | | | | | Send/receive on the socket works now. Also cleaned up the show method for strings to eliminate the 4K length limit. The current socket test will actually download the HTML for my home page. Uncomment the SPIF_SHOW() call in test_socket() to see it work. SVN revision: 6351
* Fri Jul 26 16:52:40 2002 Michael Jennings (mej)Michael Jennings2002-07-261-3/+11
| | | | | | | | More socket work. Also, permit muting of error/warning messages by supplying a NULL value for the program name. SVN revision: 6347
* Fri Jul 26 00:12:25 2002 Michael Jennings (mej)Michael Jennings2002-07-261-1/+37
| | | | | | | Mmmm, sockets that connect. :) SVN revision: 6346
* Sat Jul 13 23:26:12 2002 Michael Jennings (mej)Michael Jennings2002-07-141-0/+18
| | | | | | | | | | New function, version_compare(), which accurately compares package version numbers. Take a look at the various test cases to see what kinds of comparisons it can accurately make, and if you see any that aren't there, let me know. SVN revision: 6339
* Sun May 26 22:37:43 2002 Michael Jennings (mej)Michael Jennings2002-05-273-9/+31
| | | | | | | | | Updated performance testing to be scaled. The default is a quicker performance test than before, but now we can also choose to run anywhere from scratching the surface to a very thorough pounding. SVN revision: 6279
* Wed May 22 00:16:31 2002 Michael Jennings (mej)Michael Jennings2002-05-223-96/+354
| | | | | | | | Brought the performance tests up to date and cleaned up some memory leaks in them. SVN revision: 6266
* Tue May 21 00:15:37 2002 Michael Jennings (mej)Michael Jennings2002-05-211-6/+35
| | | | | | | | | | | Fixed a number of memory leaks in both the testing code and the object classes themselves. Also rearranged some header stuff and created a few new helper macros for object declarations. SVN revision: 6265
* Wed May 1 23:21:23 2002 Michael Jennings (mej)Michael Jennings2002-05-021-0/+67
| | | | | | | Fleshed out the URL class. SVN revision: 6198
* Tue Apr 30 22:17:27 2002 Michael Jennings (mej)Michael Jennings2002-05-011-5/+4
| | | | | | | | I really should be more careful when creating test cases. This should fix the parsing of boolean options with values. SVN revision: 6197
* Mon Apr 29 15:25:01 2002 Michael Jennings (mej)Michael Jennings2002-04-291-0/+101
| | | | | | | | | The options parser seems to be working now. It's fairly extensible and fixes a lot of the problems with the old one. It was rewritten more or less from scratch. SVN revision: 6192
* Fri Apr 19 18:35:21 2002 Michael Jennings (mej)Michael Jennings2002-04-191-68/+157
| | | | | | | | | Working tokenizer. The question is, how much do I need to add in the way of flexibility.... Shell-style parsing? Null-field support? *ponders* SVN revision: 6157