| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
It has been removed and relegated to the annals of SCM history.
|
|
|
|
| |
SVN revision: 60246
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
SVN revision: 37185
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Added sprintf() routines for string classes.
Began work on UTF-8/Unicode strings.
----------------------------------------------------------------------
SVN revision: 22350
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Make removal of options from argv[] optional and off by default.
Fixes Eterm problem with WM_COMMAND entries being empty.
----------------------------------------------------------------------
SVN revision: 20765
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Finally we have strict C99 compliance.
----------------------------------------------------------------------
SVN revision: 10995
|
|
|
|
|
|
|
|
| |
Oops, forgot some re-ordering.
----------------------------------------------------------------------
SVN revision: 10643
|
|
|
|
|
|
|
|
|
|
| |
Some small fixes suggested by Charlie Gordon <gmane@chqrlie.org>.
Minor build tweaks...updated to new release number.
----------------------------------------------------------------------
SVN revision: 10642
|
|
|
|
|
|
|
| |
Added array and dlinked_list implementations of the map interface.
SVN revision: 9317
|
|
|
|
|
|
|
|
|
| |
Working map implementation using the linked_list class.
Added some new string functions.
SVN revision: 9316
|
|
|
|
|
|
|
|
| |
Plugged a few leaks and cleaned up one uninitialized parameter
problem.
SVN revision: 8821
|
|
|
|
|
|
|
| |
Some test improvements.
SVN revision: 8810
|
|
|
|
|
|
|
| |
Should be all fixed now.
SVN revision: 8800
|
|
|
|
|
|
|
| |
Cleanups are done. Almost done with the NULL handling for lists too.
SVN revision: 8790
|
|
|
|
|
|
|
| |
More cleanups. And yes, I know "make test" doesn't work.
SVN revision: 8772
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Adding hash functions in preparation for a hash table implementation.
SVN revision: 8605
|
|
|
|
|
|
|
|
|
| |
Step #1: Update copyright statements.
Step #2: ???
Step #3: Profit.
SVN revision: 8333
|
|
|
|
|
|
|
| |
Finished up namespace cleanups.
SVN revision: 8107
|
|
|
|
|
|
|
| |
Working on cleaning up namespace issues.
SVN revision: 7954
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Additional documentation.
Added support for versions containing "rc."
SVN revision: 7038
|
|
|
|
|
|
|
| |
Updated copyright statements for 2003.
SVN revision: 6697
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
More socket work. Also, permit muting of error/warning messages by
supplying a NULL value for the program name.
SVN revision: 6347
|
|
|
|
|
|
|
| |
Mmmm, sockets that connect. :)
SVN revision: 6346
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Brought the performance tests up to date and cleaned up some memory
leaks in them.
SVN revision: 6266
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Fleshed out the URL class.
SVN revision: 6198
|
|
|
|
|
|
|
|
| |
I really should be more careful when creating test cases. This
should fix the parsing of boolean options with values.
SVN revision: 6197
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|