Commit Graph

206 Commits

Author SHA1 Message Date
fc9fd0c4dd #define E_THREAD_NONE as ((pthread_t)~0) and use that instead of ~0
* e-msgport.c: #define E_THREAD_NONE as ((pthread_t)~0) and use
	that instead of ~0 throughout. (pthread_t is a pointer type on my
	system, so there are lots of warnings without the cast.)

svn path=/trunk/; revision=7271
2001-01-05 20:04:15 +00:00
33e0d0e847 Added functions for encoding utf8 safely into libxml brokenness
svn path=/trunk/; revision=7225
2001-01-03 03:03:34 +00:00
95279feb14 Some debug commented out, static list intialiser.
svn path=/trunk/; revision=7221
2001-01-03 00:09:02 +00:00
5674966eeb Merge from camel-mt-branch.
2000-12-24  Not Zed  <NotZed@HelixCode.com>

        * Merge from camel-mt-branch.

svn path=/trunk/; revision=7152
2000-12-24 00:58:02 +00:00
9c08224bb7 Added e_xml_get_double_prop_by_name_with_default.
2000-12-23  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added
	e_xml_get_double_prop_by_name_with_default.

svn path=/trunk/; revision=7137
2000-12-23 05:42:37 +00:00
64e2a500f8 Check for null strings (e_pilot_utf8_from_pchar): ditto
2000-12-20  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-util.c (e_pilot_utf8_to_pchar): Check for null strings
	(e_pilot_utf8_from_pchar): ditto

svn path=/trunk/; revision=7106
2000-12-20 21:48:10 +00:00
fff1110610 Convert cal component strings to pilot character set
2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* conduits/calendar/calendar-conduit.c (local_record_from_comp):
	Convert cal component strings to pilot character set
	(comp_from_remote_record): vice versa

	* conduits/todo/todo-conduit.c: Same as above

2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* conduit/address-conduit.c (local_record_from_ecard): Convert ecard
	strings to pilot encodings

2000-12-19  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-util.c (e_pilot_utf8_to_pchar): Convert utf8 strings to
	pilot character set
	(e_pilot_utf8_from_pchar): vice versa

	* Makefile.am: Conditionally build e-pilot-util.[hc] because
	they depend on pilot-link stuff

svn path=/trunk/; revision=7090
2000-12-19 23:09:31 +00:00
5d5a132d18 Made the parameter type of e_strdup_string a const. Made it not call
2000-12-19  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/util/e-util.h (e_strdup_strip): Made the
	parameter type of e_strdup_string a const.  Made it not call
	isspace on signed characters.  Made the return type of
	e_strstrcase non const again.

svn path=/trunk/; revision=7078
2000-12-19 15:52:10 +00:00
9fc3ed958a make sure we actually make enough space for "&nbsp;".
2000-12-13  Larry Ewing  <lewing@helixcode.com>

	* e-html-utils.c (e_text_to_html): make sure we actually make
	enough space for "&nbsp;".

svn path=/trunk/; revision=6964
2000-12-13 08:52:53 +00:00
f0761e8f6c Fixed a warning by making e_strstrcase return a const gchar.
2000-12-11  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/util/e-util.h: Fixed a warning by making
	e_strstrcase return a const gchar.

svn path=/trunk/; revision=6936
2000-12-12 02:47:58 +00:00
e68b48fb6e Work to get a Gtk-Doc infrastructure in place for Gal.
Work to get a Gtk-Doc infrastructure in place for Gal.

Miguel.

svn path=/trunk/; revision=6883
2000-12-09 02:18:00 +00:00
10cab4c208 Updated documentation comment.
2000-12-08  Federico Mena Quintero  <federico@helixcode.com>

	* e-dialog-widgets.c (e_dialog_editable_get): Updated
	documentation comment.

svn path=/trunk/; revision=6869
2000-12-08 21:09:31 +00:00
bf5e92e96c Increased the version number to 0.3. Increased the so number.
2000-12-06  Christopher James Lahey  <clahey@helixcode.com>

	* configure.in: Increased the version number to 0.3.  Increased
	the so number.

	* gal/util/e-util.h: Removed unnecessary #define e_str_make_safe
	e_filename_make_safe.

svn path=/trunk/; revision=6824
2000-12-06 21:37:38 +00:00
3f2af99788 Fixed some warnings.
2000-12-06  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c, gal/widgets/e-font.c: Fixed some warnings.

svn path=/trunk/; revision=6818
2000-12-06 18:50:26 +00:00
8044585228 New `e-corba-utils.c' module, for now just containing a function to
get a safe CORBA string from a possibly NULL string pointer.

svn path=/trunk/; revision=6786
2000-12-04 23:16:05 +00:00
79737076b8 macro that calls e_filename_make_safe
2000-12-04  Jeffrey Stedfast  <fejj@helixcode.com>

	* gal/util/e-util.h (e_str_make_safe): macro that calls
	e_filename_make_safe

	* gal/util/e-util.c (e_filename_make_safe): Renamed from
	e_str_make_safe
	(e_strstrcase): go back to returning gchar * rather than const.

svn path=/trunk/; revision=6780
2000-12-04 20:19:12 +00:00
be13fec343 Bump the version to 0.2.99.4
2000-11-30  Jeffrey Stedfast  <fejj@helixcode.com>

	* configure.in: Bump the version to 0.2.99.4

	* gal/util/e-util.c (e_strstrcase): This should return a const
	gchar *.
	(e_str_make_safe): New convenience function to replace risky chars
	with an underscore.

svn path=/trunk/; revision=6744
2000-11-30 22:23:44 +00:00
3fa03e87ea Fix typename of args (for all funcs). (e_strv_set_ref): Assert the index
2000-11-30  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_strv_new): Fix typename of args (for all funcs).
        (e_strv_set_ref): Assert the index is in range.
        (e_strv_set_ref_free): "
        (e_strv_set): "
        (e_strv_get): "

svn path=/trunk/; revision=6733
2000-11-30 11:50:11 +00:00
fe151f1599 Plug a memleak, need to free results from term_eval(). (term_eval_gt):
2000-11-29  Not Zed  <NotZed@HelixCode.com>

        * e-sexp.c (term_eval_lt): Plug a memleak, need to free results
        from term_eval().
        (term_eval_gt):
        (term_eval_eq):

2000-11-27  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_mempool_new): Added some locking to global data.
        This should make the interfaces mt-safe, although each object is
        only per-thread safe.

svn path=/trunk/; revision=6710
2000-11-29 10:29:56 +00:00
17c69cb3be New function, set a reference to a string that is then owned/free'd by the
2000-11-22  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c
        (e_strv_set_ref_free): New function, set a reference to a string
        that is then owned/free'd by the strv.
        (e_strv_destroy): If there are any strings to destroy, free them
        here.

svn path=/trunk/; revision=6645
2000-11-22 00:45:40 +00:00
477df7090a If we dont get a big enough chunk in the first node, give up. Otherwise we
2000-11-22  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_mempool_alloc): If we dont get a big enough chunk
        in the first node, give up.  Otherwise we spend too much time
        searching.
        (e_mempool_strdup): Doh, and allocate enough for the terminating
        NUL at that.

svn path=/trunk/; revision=6631
2000-11-21 14:59:13 +00:00
bb09c40e2f New function to strdup into a mempool.
2000-11-21  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c
        (e_mempool_strdup): New function to strdup into a mempool.

svn path=/trunk/; revision=6630
2000-11-21 14:31:41 +00:00
4639aa999e New function to allocate a zero'd out chunk.
2000-11-21  Not Zed  <NotZed@HelixCode.com>

        * e-memory.c (e_memchunk_alloc0): New function to allocate a
        zero'd out chunk.

svn path=/trunk/; revision=6624
2000-11-21 04:01:10 +00:00
79f6be42c0 New routines for fast memory management and compact string array storage.
2000-11-20  Not Zed  <NotZed@HelixCode.com>

        * e-memory.[ch]: New routines for fast memory management and
        compact string array storage.

        * Makefile.am (libeutil_la_SOURCES): Added e-memory.[ch].

svn path=/trunk/; revision=6619
2000-11-20 23:57:32 +00:00
b24160aa2c oops thats func not *func
2000-11-09  JP Rosevear  <jpr@helixcode.com>

	* e-dbhash.h: oops thats func not *func

	* e-dbhash.c (e_dbhash_foreach_key): Memset the data DBT to 0

svn path=/trunk/; revision=6521
2000-11-09 22:18:17 +00:00
082bc288ff Build e-dbhash.[hc]
2000-11-07  JP Rosevear  <jpr@helixcode.com>

	* Makefile.am: Build e-dbhash.[hc]

	* e-dbhash.[hc]: New routines to manage a db database on disk that
	contains md5 hashed data and indexed by uids.  Provides comparison
	functions and such so the caller does not have to do the md5 bits.

2000-11-07  JP Rosevear  <jpr@helixcode.com>

	* backend/pas/pas-book.h: Update PASRequest structure

	* backend/pas/pas-book.c (impl_Evolution_Book_get_changes): update param name
	(pas_book_queue_get_changes): Use PASRequest change_id slot

	* backend/pas/pas-backend-file.c (pas_backend_file_book_view_copy):
	Properly copy change_id and change_context
	(pas_backend_file_book_view_free): Free change_id/change_context
	(pas_backend_file_changes_foreach_key): Callback to figure out the
	deleted cards
	(pas_backend_file_changes): Use new e-dbhash stuff to implement.
	Write out updated hash

	* backend/idl/addressbook.idl: Rename get_changes param

svn path=/trunk/; revision=6489
2000-11-07 22:25:34 +00:00
58909b5880 #include <string.h> to quench warning. #include <stdlib.h> for same
200-10-30  Kjartan Maraas  <kmaraas@gnome.org>

	* e-dialog-widgets.c: #include <string.h> to quench warning.
	* e-sexp.c: #include <stdlib.h> for same reason.

svn path=/trunk/; revision=6288
2000-10-31 13:36:26 +00:00
7
4edb2c4651 build md5-utils
2000-10-27    <jpr@helixcode.com>

	* Makefile.am: build md5-utils

	* md5-utils.c: Make part of util, get rid of camel stream util
	function include string.h

	* md5-utils.h: ditto

2000-10-27    <jpr@helixcode.com>

	* providers/pop3/Makefile.am: Tidy up build

	* providers/smtp/Makefile.am: ditto

	* Makefile.am:  Move md5-utils.[hc] to e-util because the
	addressbook is going to use md5 hashes for pilot syncing.
	Maybe the calendar conduits as well because this is a good idea
	Chris had.

svn path=/trunk/; revision=6234
2000-10-27 18:28:20 +00:00
7
d47425dac3 Return null if no pnode was found.
2000-10-27    <jpr@helixcode.com>

	* e-pilot-map.c (e_pilot_map_lookup_uid): Return null if no
	pnode was found.

svn path=/trunk/; revision=6229
2000-10-27 15:52:58 +00:00
dfdfa72ec5 Added an "allow_newlines" argument.
2000-10-27  Christopher James Lahey  <clahey@helixcode.com>

	* gal/e-text/e-entry.c,
	gal/e-text/e-text-event-processor-emacs-like.c,
	gal/e-text/e-text-event-processor-emacs-like.h,
	gal/e-text/e-text-event-processor.c,
	gal/e-text/e-text-event-processor.h, gal/e-text/e-text.c: Added an
	"allow_newlines" argument.

svn path=/trunk/; revision=6226
2000-10-27 14:48:20 +00:00
e071cdeeb4 Get archive field while parsing (map_write_foreach): Write out archive
2000-10-27  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-map.c (map_sax_start_element): Get archive field while
	parsing
	(map_write_foreach): Write out archive field
	(e_pilot_map_pid_is_archived): implement
	(e_pilot_map_uid_is_archived): ditto
	(e_pilot_map_insert): Insert new node structures
	(e_pilot_map_lookup_pid): Take into account the list is now
	a list of structures
	(e_pilot_map_lookup_uid): ditto

svn path=/trunk/; revision=6224
2000-10-27 12:30:27 +00:00
74c9e1118f unsigned chars.
2000-10-26  Michael Meeks  <michael@helixcode.com>

	* ename/e-address-western.c (e_address_western_is_postal):
	unsigned chars.

	* ename/e-name-western.c (e_name_western_get_one_prefix_at_str):
	cast to unsigned char.

svn path=/trunk/; revision=6212
2000-10-26 21:20:51 +00:00
56704ecef4 Add another marshalling function.
* gal/util/e-util.c (e_marshal_NONE__POINTER_POINTER_INT): Add
	another marshalling function.

svn path=/trunk/; revision=6171
2000-10-25 18:59:36 +00:00
0b2c3f424b Deal properly with URLs at the end of the buffer. (The old code would
* e-html-utils.c (e_text_to_html): Deal properly with URLs at the
	end of the buffer. (The old code would append a "&#0;" to the
	text.)

svn path=/trunk/; revision=6169
2000-10-25 16:07:20 +00:00
e504870c44 Lookup a pid by uid. (e_pilot_map_lookup_uid): Lookup a uid by pid. Now
2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-map.c (e_pilot_map_lookup_pid): Lookup a pid by uid.
	(e_pilot_map_lookup_uid): Lookup a uid by pid.
	Now this is wrapped, we can store archive info internally

	* e-pilot-map.h: New accessor prototype

2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* conduits/todo/todo-conduit.c (local_record_from_comp): Use
	new e-pilot-map lookup function
	(match): ditto

	* conduits/calendar/calendar-conduit.c (local_record_from_comp): Use
	new e-pilot-map lookup function
	(match): ditto

svn path=/trunk/; revision=6146
2000-10-24 16:21:10 +00:00
babd37f2f7 Remove unused GNOMELOCALEDIR setting.
* ename/Makefile.am (INCLUDES): Remove unused GNOMELOCALEDIR
	setting.

svn path=/trunk/; revision=6142
2000-10-24 03:11:20 +00:00
ecb43703f8 Use new libeconduit calls and abstraction
2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* conduit/address-conduit.h: Use new libeconduit calls and
	abstraction

	* conduit/address-conduit.c: ditto

2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* conduits/todo/todo-conduit.h: Use new libeconduit calls and
	abstraction

	* conduits/calendar/calendar-conduit.c: ditto

	* conduits/calendar/calendar-conduit.h: ditto

	* conduits/todo/todo-conduit.c: ditto

	* conduits/calendar/Makefile.am: Add libeconduit-static.la

	* conduits/calendar/calendar-conduit.c (post_sync): Use e_pilot_map_write
	(pre_sync): Use e_pilot_map_read

2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-map.c: Operate with EPilotMap structure so things are
	abstract to the caller
	(e_pilot_map_pid_is_archived): Infrastructure for marking records
	as archived
	(e_pilot_map_uid_is_archived): ditto

	* e-pilot-map.h: Add more to public interface, including EPilotMap
	structure

svn path=/trunk/; revision=6134
2000-10-23 22:18:44 +00:00
61008a12e1 Pilot map functions grabbed from existing conduits
2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* e-pilot-map.c: Pilot map functions grabbed from existing conduits

	* e-pilot-map.h (e_pilot_map_write): Header

2000-10-23  JP Rosevear  <jpr@helixcode.com>

	* conduits/todo/Makefile.am: Add libeconduit-static.la

	* conduits/todo/todo-conduit.c (post_sync): Use e_pilot_map_write
	(pre_sync): Use e_pilot_map_read

svn path=/trunk/; revision=6116
2000-10-23 18:27:21 +00:00
4a7322cfec Made the number keys on the number pad work in ETexts and ECellTexts.
2000-10-19  Christopher James Lahey  <clahey@helixcode.com>

	* gal/e-text/e-text-event-processor-emacs-like.c: Made the number
	keys on the number pad work in ETexts and ECellTexts.

svn path=/trunk/; revision=6027
2000-10-19 04:49:47 +00:00
c03848ecdf If unicode_get_utf8 returns -1, assume it was actually undeclared
* e-html-utils.c (e_text_to_html): If unicode_get_utf8 returns -1,
	assume it was actually undeclared iso-8859-1 text.

svn path=/trunk/; revision=6002
2000-10-18 18:59:21 +00:00
84aca4e2c8 *** empty log message ***
svn path=/trunk/; revision=5969
2000-10-17 20:22:43 +00:00
ef1a4fb6e8 g_strconcat needs a NULL.
svn path=/trunk/; revision=5861
2000-10-11 20:39:02 +00:00
4d5ebbc363 Included a missing #include.
2000-10-11  Christopher James Lahey  <clahey@helixcode.com>

	* gal/util/e-util.c: Included a missing #include.

	* gal/util/e-xml-utils.c, gal/util/e-xml-utils.h: Added
	e_xml_get_bool_prop_by_name, e_xml_set_bool_prop_by_name, and
	e_xml_get_translated_string_prop_by_name.  Reindented prototypes.

svn path=/trunk/; revision=5835
2000-10-11 07:54:51 +00:00
9acde37ac5 New function to make a directory and (if needed), its parents
* gal/util/e-util.c (e_mkdir_hier): New function to make a
	directory and (if needed), its parents

svn path=/trunk/; revision=5778
2000-10-07 19:41:42 +00:00
d71561a2ae Added $(EXTRA_GNOME_CFLAGS).
Tue Sep 26 16:48:49 2000  Christopher James Lahey  <clahey@helixcode.com>

	* Makefile.am: Added $(EXTRA_GNOME_CFLAGS).

svn path=/trunk/; revision=5597
2000-09-26 20:48:20 +00:00
098953653a add ename as a SUBDIR
2000-09-25  Jeffrey Stedfast  <fejj@helixcode.com>

	* Makefile.am: add ename as a SUBDIR

svn path=/trunk/; revision=5580
2000-09-25 20:47:23 +00:00
d4c1adb839 Added a ton of new prefixes and suffixes.
2000-09-25  Nat Friedman  <nat@helixcode.com>

	* ename/e-name-western-tables.h: Added a ton of new prefixes and
	suffixes.

svn path=/trunk/; revision=5571
2000-09-25 18:34:05 +00:00
2a20e41b57 Fixed operation of the keypad keys in EText and ECellText.
2000-09-22  Christopher James Lahey  <clahey@helixcode.com>

	* gal/e-text/e-text-event-processor-emacs-like.c: Fixed operation
	of the keypad keys in EText and ECellText.

svn path=/trunk/; revision=5548
2000-09-22 13:10:42 +00:00
1771bc9932 Made e_list a bit more reentrant. If a iterator gets its data pulled out
2000-09-18  Christopher James Lahey  <clahey@helixcode.com>

	* e-list-iterator.c, e-list.c, e-list.h: Made e_list a bit more
	reentrant.  If a iterator gets its data pulled out from under it
	while in a loop, it goes back one so that loops will be able to
	continue.

svn path=/trunk/; revision=5533
2000-09-21 07:18:26 +00:00
a3de274f7c Moved files, fixed header files and paths - Federico
svn path=/trunk/; revision=5513
2000-09-19 22:57:58 +00:00