1. 21 Dec, 2001 1 commit
  2. 20 Dec, 2001 4 commits
  3. 26 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      add OPER_SET. ditto. ditto. (expr_tree_equal) : ditto. (expr_eval_real) : · 217a63bd
      Jody Goldberg authored
      2001-11-25  Jody Goldberg <jody@gnome.org>
      
      	* src/eval.c (handle_tree_deps) : add OPER_SET.
      	* src/expr-name.c (name_refer_circular) :  ditto.
      	* src/expr.c (do_expr_tree_unref) : ditto.
      	(expr_tree_equal) : ditto.
      	(expr_eval_real) : ditto.
      	(expr_rewrite) : ditto.
      	(do_expr_tree_as_string) : ditto.
      	(expr_tree_new_funcall) : use ExprList.
      	(expr_parse_string) : delete.
      	(expr_tree_new_set) : new.
      	(expr_list_unref) : new.
      	(expr_list_equal) : new.
      	(expr_list_as_string) : new.
      
      	* src/gnumeric.h : Add ExprList and ExprSet
      
      	* src/parser.y (expr_parse_str) : renamed from gnumeric_expr_parser.
      	  Add support for multiple expressions.
      	(line) : add support for multiple expressions.
      
      	* src/ranges.c (global_range_parse) : Use expr_parse_str
      	(global_range_list_parse) : rewrite to use expr_parse_str and use the
      	  new multi-expression support in the parser.
      
      	* src/commands.c (cmd_area_set_text_redo) : Use expr_parse_str.
      	* src/xml-io.c (xml_read_style_condition_chain) : ditto.
      	(xml_cell_set_array_expr) : ditto.
      	* src/workbook-view.c (wb_view_auto_expr) : ditto.
      	* src/workbook-edit.c (wbcg_edit_finish) : ditto.
      	* src/sheet-object-widget.c (sheet_widget_checkbox_read_xml) : ditto.
      	* src/parse-util.c (parse_text_value_or_expr) : ditto.
      
      	* src/auto-format.c (do_af_suggest) : Use ExprList instead of GList
      	(do_af_suggest_list) : ditto.
      	* src/collect.c (collect_floats) : ditto.
      	(collect_floats_value) : ditto.
      	(float_range_function) : ditto.
      	* src/consolidate.c (simple_consolidate) : ditto.
      	(colrow_formula_args_build) : ditto.
      	(consolidate_apply) : ditto.
      217a63bd
  4. 19 Nov, 2001 1 commit
  5. 16 Nov, 2001 1 commit
  6. 09 Nov, 2001 1 commit
  7. 08 Nov, 2001 1 commit
  8. 06 Nov, 2001 1 commit
  9. 04 Nov, 2001 1 commit
  10. 02 Nov, 2001 1 commit
    • Jukka-Pekka Iivonen's avatar
      Implemented. This function needs, however, coupdays, coupdaybs, and · 708608dd
      Jukka-Pekka Iivonen authored
      2001-11-02  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
      
              * fn-financial.c (gnumeric_price): Implemented.  This function
              needs, however, coupdays, coupdaybs, and coupdaysnc to be finished
              to work correctly.
              (gnumeric_yield): Implemented the case where the number of coupon
              periods is one.  The same comment above applies, however.
              (coupdaysnc): Added a stub.
      708608dd
  11. 27 Oct, 2001 1 commit
  12. 26 Oct, 2001 2 commits
  13. 16 Oct, 2001 1 commit
  14. 09 Oct, 2001 1 commit
    • Jukka-Pekka Iivonen's avatar
      Fixed frequency 1. · 5254a34a
      Jukka-Pekka Iivonen authored
      2001-10-09  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
      
      	* fn-financial.c (coupdays): Fixed frequency 1.
      5254a34a
  15. 03 Oct, 2001 1 commit
  16. 22 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Prefer absolute lowest y-value in cases where we have only one side of · 4a6dcac2
      Morten Welinder authored
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* src/goal-seek.c (update_data): Prefer absolute lowest y-value in
       	cases where we have only one side of zero.
      
      2001-06-22  Morten Welinder  <terra@diku.dk>
      
      	* fn-financial.c (gnumeric_rate, gnumeric_irr): No longer respect
       	sign of guess.  It's a nice idea, but breaks tests.
      
      
      (White-space samba in plugins/excel/ms-excel-read.c)
      4a6dcac2
  17. 18 Jun, 2001 1 commit
  18. 01 Jun, 2001 1 commit
    • Morten Welinder's avatar
      Use value_peek_string. · 19b0b593
      Morten Welinder authored
      2001-05-29  Morten Welinder  <terra@diku.dk>
      
      	* fn-information.c (gnumeric_cell, gnumeric_info, gnumeric_error,
       	gnumeric_n): Use value_peek_string.
      
      	* fn-financial.c (gnumeric_coupdaybs, gnumeric_coupdays,
       	gnumeric_coupncd, gnumeric_coupnum): Remove mysterious and
       	unnecessary references to VALUE_ERROR.
      	(gnumeric_db): Improve error checking.
      
      	* fn-eng.c (gnumeric_complex): Fix using value_peek_string.
      	(gnumeric_convert): Get rid of one_C_to_K and introduce
       	C_K_offset.  Fix using value_peek_string.
      	(get_constant_of_unit): Constify.
      	(convert): Constify.
      	(help_erfc): complement, not compliment, :-)
      
      	* fn-date.c (gnumeric_datedif): Use value_peek_string.
      19b0b593
  19. 28 May, 2001 1 commit
  20. 26 May, 2001 1 commit
    • Jody Goldberg's avatar
      new routine. This looks ugly. We should be able to avoid replicating this · f1b88ce2
      Jody Goldberg authored
      
      2001-05-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value.c (value_diff) : new routine.  This looks ugly.  We should
      	  be able to avoid replicating this code.
      
      	* src/cell.c (cell_eval_content) : support iteration.
      
      	* src/format.c (render_number) : make the buffer big enough.
      	  The assumtion that mantissa and exp are both maxed should leave
      	  enough room for thousand separators.
      f1b88ce2
  21. 25 May, 2001 2 commits
  22. 14 May, 2001 1 commit
  23. 24 Feb, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added files: plugin-service.[ch], plugin-loader.[ch], · a924975e
      Chyla Zbigniew authored
      
      * src/Makefile.am: Added files:  plugin-service.[ch],
      plugin-loader.[ch], plugin-loader-module.[ch], module-plugin-defs.h.
      
      * src/error-info.[ch] (error_info_new_from_errno): New function.
      
      * src/file.c
      (struct _FileOpener, struct _FileSaver): Moved from file.h
      (file_opener_get_format_description, file_opener_has_probe,
      file_saver_get_extension,  file_saver_get_format_description):
      New accessor functions.
      (file_opener_probe, file_opener_open, file_saver_save,
      file_opener_set_user_data, file_opener_get_user_data,
      file_saver_set_user_data, file_saver_get_user_data): New
      functions.
      (get_file_opener_by_id, get_file_saver_by_id): Removed
      Now using FileOpener*/FileSaver* instead of FileOpenerId/FileSaverId
      everywhere.
      
      * src/file.h
      (struct _FileOpener, struct _FileSaver): Moved to file.c.
      Adjusted to file.c.
      
      * src/gui-file.c: Adjusted to file.[ch], now FileSaver.extension
      field should contain real extension (without a dot).
      
      * src/func.[ch]
      (enum FunctionFlags, struct _FunctionDefinition): Moved from func.h
      to func.c.
      (struct _FunctionCategory): Added "internal_name" and "display_name"
      in place of "name" field.
      (function_get_category_with_translation,
      function_category_remove_func, func_get_ref_count, function_remove,
      function_add_name_only): New functions.
      Now it's possible to load function implementation on demand (after
      registering function using function_add_name_only() and providing
      function of type FunctionGetFullInfoCallback).
      Rename fd and fndef to fn_def for consistency.
      
      * src/functions/fn-database.c (database_functions_init),
      src/functions/fn-date.c (date_functions_init),
      src/functions/fn-eng.c (eng_functions_init),
      src/functions/fn-financial.c (finance_functions_init),
      src/functions/fn-information.c (information_functions_init),
      src/functions/fn-logical.c (logical_functions_init),
      src/functions/fn-lookup.c (lookup_functions_init),
      src/functions/fn-math.c (math_functions_init),
      src/functions/fn-sheet.c (sheet_functions_init),
      src/functions/fn-stat.c (stat_functions_init),
      src/functions/fn-string.c (string_functions_init):
      Use function_get_category_with_translation, instead of
      function_get_category.
      
      * src/plugin.[ch]
      (struct _PluginInfo): Removed many fields.
      (plugin_info_get_extra_info_list):
      Just call gnumeric_plugin_loader_get_extra_info_list.
      (plugin_info_peek_services_data, plugin_info_peek_loader_type_str):
      New accessor functions.
      (plugin_info_read_service_list, plugin_info_read_loader,
      plugin_info_read):
      Read services and loader info, use functions from
      gal/util/e-xml-utils.h everywhere.
      (activate_plugin, deactivate_plugin): Just activate/deactivate all
      plugin services.
      (plugin_can_deactivate): Ask plugin services.
      (plugin_load_service, plugin_unload_service,
      plugin_info_offers_loader_by_type_str,
      plugin_loader_register_type, plugin_loader_register_id_only,
      plugin_loader_get_by_id, plugin_loader_is_available_by_id,
      plugin_list_sort_by_dependency):
      New functions.
      (plugin_db_activate_plugin_list): Activate plugins in correct order,
      using plugin_list_sort_by_dependency function.
      (plugin_info_print): Removed.
      (module_plugin_print_info, module_plugin_info_get_extra_info_list,
      module_plugin_free, module_plugin_info_read, module_plugin_activate,
      module_plugin_deactivate, module_plugin_can_deactivate): Removed,
      most code  moved to plugin-loader.c and plugin-loader-module.c.
      
      * src/plugin-service.[ch]: New files, support for plugin services
      (five types of these so far).
      
      * src/plugin-loader.[ch]: New files, base class for plugin loaders.
      
      * src/plugin-loader-module.[ch]: New files, support for "g_module"
      plugins.
      
      * src/plugin-util.[ch] (gnumeric_fopen_error_info,
      gnumeric_open_error_info, gnumeric_mmap_error_info): New functions.
      
      * src/gutils.[ch] (g_list_free_custom, g_slist_free_custom,
      gnumeric_time_counter_push, gnumeric_time_counter_pop):
      New functions.
      
      * src/io-context-priv.h (struct _IOContext): Added error_info field.
      
      * src/io-context.[ch] (gnumeric_io_context_new,
      gnumeric_io_context_free, gnumeric_io_error_info_set,
      gnumeric_io_error_info_push, gnumeric_io_error_info_pop,
      gnumeric_io_error_info_clear, gnumeric_io_error_info_display,
      gnumeric_io_has_error_info): New functions, quick hack to add
      support for ErrorInfo.
      
      * src/module-plugin-defs.h: New file, should be included be every
      g_module plugin.
      
      * src/auto-format.c: Use accessor function from func.h.
      
      * src/bonobo-io.c (gnumeric_bonobo_write_workbook,
      gnumeric_bonobo_read_workbook, gnumeric_bonobo_io_probe),
      src/stf.c (stf_read_workbook, stf_write_workbook),
      src/xml-io.[ch] (xml_probe, gnumeric_xml_read_workbook,
      gnumeric_xml_write_workbook):
      Signature changes.
      
      * src/workbook.c: Adjusted to
      workbook_load_from/gnumeric_xml_write_workbook signature change.
      
      * src/dialogs/dialog-function-select.c: Adjust to func.[ch].
      
      * src/dialogs/dialog-plugin-manager.c
      Adjust to plugin.[ch].
      (cb_pm_button_activate_plugin_clicked): Check if loader for current
      plugin is available, suggest activating loader plugin otherwise.
      a924975e
  24. 31 Jan, 2001 1 commit
  25. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  26. 24 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Suppress some warnings and make non-bonobo build clean. · a9a20284
      Jody Goldberg authored
      2000-09-24  Jody Goldberg <jgoldberg@home.com>
      
      	* src/normal-args.c : Suppress warning.
      
      	* src/functions/fn*.c : Add a prototype of the _init routine to
      	  suppress warning.
      
      	* src/eval.c (cell_recalc_dependencies ) : Comment out until it is
      	  implemented.
      
      	* src/sheet-object-widget.c (sheet_object_widget_new) : delete.
      a9a20284
  27. 12 Sep, 2000 1 commit
    • Morten Welinder's avatar
      Constify. Plug leak. · 2e4c2694
      Morten Welinder authored
      2000-09-11  Morten Welinder  <terra@diku.dk>
      
      	* color-group.c (color_group_new_named): Constify.  Plug leak.
      
      	* color-palette.c (color_palette_new_with_vals): Constify.
      	(color_palette_new): Constify.
      2e4c2694
  28. 30 Aug, 2000 2 commits
    • Morten Welinder's avatar
      Fixup IRR same as RATE. · 6fb55943
      Morten Welinder authored
      6fb55943
    • Morten Welinder's avatar
      Fix a few type errors. · a9807ec1
      Morten Welinder authored
      2000-08-30  Morten Welinder  <terra@diku.dk>
      
      	* src/print-cell.c (print_show_iso8859_1): Fix a few type errors.
      
      	* src/functions/fn-financial.c (gnumeric_rate): Respect the sign
       	of the guess.  Work much harder at getting an answer.
      
      	* src/goal-seek.c (goal_seek_point): New function.
      a9807ec1
  29. 29 Aug, 2000 1 commit
  30. 28 Aug, 2000 1 commit
    • Morten Welinder's avatar
      Fix special case. · 9c4cd9b7
      Morten Welinder authored
      2000-08-28  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-financial.c (gnumeric_rate): Fix special case.
      9c4cd9b7
  31. 21 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Improve regexps. · 9ad38a63
      Jody Goldberg authored
      
      2000-08-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Improve regexps.
      
      	* src/formats.c (cell_format_is_number) : Format always uses standard
      	  decimal chars.
      
      	* src/format.c (gnumeric_setlocale) : New routine that clears cached
      	  locale info.
      	(format_get_decimal) : Improve use mon_decimal.
      	(format_get_thousand) : Improve use mon_thousands_sep.
      	(format_get_arg_sep) : New func.
      	(format_get_col_sep) : New func.
      	(format_destroy) : Use GPtrArray.
      	(render_number) : Improve localization.
      	(format_add_thousand) : rename format_toggle_thousands. De-localize.
      	(find_decimal_char) : De-localize.
      	(format_remove_decimal) : Ditto.
      	(format_add_decimal) : Ditto.
      	(format_number) : Ditto.
      
      	* src/expr.c (do_expr_tree_to_string) : Use format_get_arg_sep.
      
      	* src/cell.c (cell_get_format) : Update for the changes to StyleFormat.
      
      	* src/auto-format.c (auto_style_format_suggest) :
      	  style_format_new -> style_format_new_XL
      
      	* src/mstyle.c (mstyle_element_dump) : There is no direct access to
      	  the format string anymore.
      	(mstyle_set_format_text) : Add a warning.
      
      	* src/gutils.[ch] (float_get_from_range) : Delete.
      	(int_get_from_range) : Ditto.
      
      	* src/parser.y : Revamp lexer to use strtol, and strtod for number
      	  parsing.  Begin hooks for supporting row & col selection. (3:4 or A:B)
      
      	* src/print-info.c (render_value_with_format) : Changes to StyleFormat.
      
      	* src/sheet.h : Move SpanCalcFlags.
      	* src/gnumeric.h : here.
      
      	* src/style.[ch] : Privatize StyleFormat, move it to format.[ch]
      
      	* src/value.c (value_get_as_string) : Correctly localize things for
      	  output.
      
      	* src/workbook-format-toolbar.c (modify_cell_format) : format
      	  modification callback modifies the StyleFormat.
      
      	* src/workbook.c (workbook_set_auto_expr) : Use gnumeric_setlocale.
      
      	* src/xml-io.c (xml_workbook_read) : Use gnumeric_setlocale.
      	(xml_workbook_write) : Ditto.
      	(xml_read_cell) : Use style_format_new_XL.
      	(xml_write_cell_and_position) : Store the number formats in non localized XL form.
      	(xml_write_style) : Ditto.
      
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_format_page) :
      	  Display localized number formats.
      	(fillin_negative_samples) : Not need to localize generated number
      	  formats.
      
      	* src/dialogs/dialog-function-wizard.c (formula_guru_set_expr) : Use
      	  format_get_arg_sep.
      
      	* src/dialogs/dialog-stf-format-page.c
      	  (stf_dialog_format_page_prepare) : StyleFormats are now explicitly
      	  stored in a locale neutral format.
      
      	* src/functions/fn-string.c (gnumeric_text) : changes to
      	  style_format_new.
      
      	* src/functions/fn-financial.c (coupdayb) : Silence some warnings.
      
      	* src/functions/fn-information.c (translate_cell_format) : This should
      	  now work for different locales.
      
      2000-08-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (compute_value) : Extend the match algorithms to
      	  handle the new regexps.
      
      	* src/format.c (format_get_thousand) : provide a better default for
      	  countries using ',' as a decimal point.
      9ad38a63
  32. 09 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Some simple auditing of the functions. · de2dbf79
      Jody Goldberg authored
      They were not handling error arguments nicely.
      This sort of things should really be handled in a more centralized manner.
      
      2000-08-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-date.c (gnumeric_datevalue) : Handle error values.
      	(gnumeric_timevalue) : Ditto.
      	(gnumeric_year) : Ditto.
      	(gnumeric_month) : Ditto.
      	(gnumeric_day) : Ditto.
      	(gnumeric_weekday) : Ditto.
      	(gnumeric_days360) : Ditto.
      	(gnumeric_eomonth) : Ditto.
      	(gnumeric_workday) : Ditto.
      	(networkdays_holiday_callback) : Ditto.
      	(gnumeric_networkdays) : Ditto.
      
      	* src/functions/fn-financial.c (gnumeric_coupdaybs) : Ditto.
      	(gnumeric_coupdays) : Ditto.
      	(gnumeric_coupncd) : Ditto.
      	(gnumeric_coupnum) : Ditto.
      de2dbf79
  33. 08 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Handle blanks as 0. (callback_function_make_list) : Ditto. · c644804f
      Jody Goldberg authored
      
      2000-08-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-stat.c (callback_function_stat) : Handle blanks as 0.
      	(callback_function_make_list) : Ditto.
      	(callback_function_ttest) : Ditto.
      	(gnumeric_mode) : Explicitly ignore blanks.
      	(gnumeric_count) : Ditto.
      	(gnumeric_ztest) : Ditto.
      	(gnumeric_counta) : Ditto.
      	(gnumeric_percentile) : Ditto.
      	(gnumeric_quartile) : Ditto.
      	(gnumeric_prob) : DO NOT IGNORE BLANKS.
      	(gnumeric_ftest) : Ditto.
      	(gnumeric_ttest) : Ditto.
      	(gnumeric_frequency) : Ditto.
      
      	* src/functions/fn-logical.c (gnumeric_and) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_or) : Ditto.
      	* src/functions/fn-math.c (gnumeric_lcm) : Ditto.
      	(gnumeric_multinomial) : Ditto.
      	(gnumeric_seriessum) : Ditto.
      
      	* src/functions/fn-financial.c (gnumeric_mirr) : Use the old
      	  behavior of ignoring blanks.
      	(gnumeric_irr) : Ditto.
      	(gnumeric_npv) : Ditto.
      
      	* src/functions/fn-eng.c (gnumeric_improduct) : Handle
      	  changes to function_iterate_argument_values.
      	(gnumeric_imsum) : Ditto.
      
      	* src/func.c (function_iterate_argument_values) : Add ignore_blank
      	  flag.
      
      	* src/collect.c (callback_function_collect) : Support new collect flag
      	  COLLECT_IGNORE_BLANKS.
      	(collect_floats) : change to function_iterate_argument_values.
      	(float_range_function2) : Use COLLECT_IGNORE_BLANKS.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (fill_item_new) : It is legal to have 'D' and 'M'
      	  for day or month fields.
      
      2000-08-01  Jody Goldberg <jgoldberg@home.com>
      	For : John N S Gill <bmrg@gofree.indigo.ie>
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Implement support
      	  for double click on autofill button.
      c644804f
  34. 18 Jul, 2000 1 commit