| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Reformatted some macros in libast.h.
Fixed the sprintf() methods of the str, ustr, and mbuff classes.
Added check for compiler support of compound statement expressions.
Fixed a spec file bug.
|
|
|
|
|
|
|
|
|
|
|
| |
Revert previous patch generated by badnull.cocci script, and apply the new one.
The main difference is that assert and assert-like functions are not touched
anymore.
SVN revision: 51650
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Finally we have strict C99 compliance.
----------------------------------------------------------------------
SVN revision: 10995
|
|
|
|
|
|
|
|
| |
Tasty treats!
----------------------------------------------------------------------
SVN revision: 10948
|
|
|
|
|
|
|
|
|
| |
Working map implementation using the linked_list class.
Added some new string functions.
SVN revision: 9316
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
Step #1: Update copyright statements.
Step #2: ???
Step #3: Profit.
SVN revision: 8333
|
|
|
|
|
|
|
| |
Finished up namespace cleanups.
SVN revision: 8107
|
|
|
|
|
|
|
| |
More namespace cleaning. Just one more set to go.
SVN revision: 7956
|
|
|
|
|
|
|
|
|
| |
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 assertions/requirements for string member functions.
Changed pointer printouts to %010p instead of %8p, since the latter
didn't account for the possibility of a leading "0x".
Fixed typos in hex_dump().
SVN revision: 7860
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes to string class find/splice routines.
Added SPIF_DEFINE_PROPERTY_FUNC_NONOBJ() macro for defining get/set
methods of a property which is not an object. It should be used in
place of SPIF_DEFINE_PROPERTY_FUNC() for spif_*_t types that are not
objects, such as spif_int32_t and spif_sockport_t.
SVN revision: 7774
|
|
|
|
|
|
|
|
|
|
| |
Added support for object "properties." A property is a member
variable with corresponding get/set methods.
I'll probably flesh this out more as I use it more.
SVN revision: 7769
|
|
|
|
|
|
|
| |
Forgot to fix these before committing. :(
SVN revision: 7111
|
|
|
|
|
|
|
|
| |
Finished documenting libast_internal.h. Also some 64-bit cleanliness
fixes.
SVN revision: 6838
|
|
|
|
|
|
|
| |
Updated copyright statements for 2003.
SVN revision: 6697
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Mmmm, sockets that connect. :)
SVN revision: 6346
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Fix "make distcheck"
SVN revision: 6128
|
|
|
|
|
|
|
|
| |
The list interface is complete (for now) as is its first
implementation: the linked_list class. Unit tests are also in.
SVN revision: 6127
|
|
|
|
|
|
|
| |
Oops...
SVN revision: 6107
|
|
|
|
|
|
|
| |
Re-indenting code.
SVN revision: 6106
|
|
|
|
|
|
|
|
|
|
|
| |
Lots of updates. This should compile, but if it doesn't, don't blame
me. (Well, blame me, just don't whine at me.) :-)
Also a bit of a design doc here...hopefully it will clarify some
things.
SVN revision: 6105
|
|
|
|
|
|
|
| |
Mmmmm...reusability. :-)
SVN revision: 5955
|
|
|
|
|
|
|
|
| |
Hopefully now this will make more sense. The string class is now
fleshed out...along with a complete set of unit tests. :)
SVN revision: 5945
|
|
|
|
|
|
|
| |
Still not fleshed out, but at least the warnings are gone. :-)
SVN revision: 5925
|
|
Please ignore the warnings during compile. I didn't want to check
this in just yet, but I kinda broke Eterm and committed it. :(
SVN revision: 5919
|