Forum

    Discussion regarding the Eiffel programming language and various supporting tools.
  • Sep 29
    RE: [eiffel-users] printing and saving from EV_RICH_TEXT
    I've looked around for anything having to do with printers and it seems that, apart from the model and figure world elements, there aren't any suitable. There is EV_PRINTER, but that's a friend only to a model or figure projector, and it takes a WEL_PRINTER_DC as argument (in the Windows
  • Sep 29
    Re: [eiffel-users] inline c function to return two values
    Whereas the text says that one argument is an integer and the other is a pointer to an integer, the code assigns to both arguments `x` and `y`. Arguments in C (as well as in Eiffel, and most other languages) are passed by value. In other words, passing an integer does not allow changing the
  • Sep 29
    Re: [eiffel-users] EiffelStudio c-compilation output
    Wow, 30 years with EiffelStudio, and I never saw that. Thanks, jjj >
  • Sep 29
    Re: [eiffel-users] EiffelStudio c-compilation output
    Switch to "External" [image: image.png]
  • Sep 29
    EiffelStudio c-compilation output
    Anyone know how to show in EiffelStudio the output of the last C compilation? I see warning during compile, but if the compile succeeds, the [console?] output is replaced by the "Eiffel Compilation Succeeded" message and I can't get back to the C warnings. (I can get to errors.) jjj
  • Sep 29
    Re: [eiffel-users] printing and saving from EV_RICH_TEXT
    I am going from memory from years ago, and I never got it working. If I recall you have to use a PROJECTOR and related files to project the output to the printer. It became so cumbersome that I never got around to it in the project. Maybe that could give you a rabbit to chase. Sorry, I don't
  • Sep 29
    inline c function to return two values
    Sorry for the same-ish question again...but I can't find what I need, so... I want to call an inline c-function that returns two values, a result and modify a basic type. Even better, return two intergers, which in the C function is an int and the other is an int*. Having trouble with where to
  • Sep 27
    RE: [eiffel-users] printing and saving from EV_RICH_TEXT
    Hi Again I haven't heard anything from my initial question yet, but .. the first issue, of saving to an RTF file, has been solved (years ago, as it happens). To save the contents of an EV_RICH_TEXT widget, use .save_to_named_path (). I guess that might have been obvious to some -
  • Sep 27
    Re: Re[2]: [eiffel-users] compile errors on C external
    I'd like to concur on the suggestion for external C/C++ examples other than just integers. We really need to see how Eiffel interfaces with all the various data types of C and C++ so we have a guide and can quit taking up bandwidth of the user community to answer these questions as one-offs.
  • Sep 27
    Re: Re[2]: [eiffel-users] compile errors on C external
    Thanks Alexander. So, now to the "return statement"... Okay, I got it working. I had to look back at some of my older code, because I could not remember how to pass a string out of a C function. Might be nice if https://www.eiffel.org/doc/solutions/Interfacing_with_C_and_C had examples for
  • Sep 27
    Re[2]: [eiffel-users] compile errors on C external
    On the Eiffel side the feature is declared as a function, whereas on the C side — as a procedure. Alexander Kogtenkov jjj : Appreciate the correction. But I still don't understand where the compiler is picking up code that I have long ago torn out and burned. (i.e. there
  • Sep 27
    Re[2]: [eiffel-users] Same arrays indexed differently are not equal
    The postcondition of `rebase` is lower_set: lower = a_lower upper_set: upper = a_lower + old count - 1 The postcondition of `count` is consistent_with_bounds: Result = upper - lower + 1 With that, `upper_set` can be rewritten as upper_set:
  • Sep 27
    Re: [eiffel-users] compile errors on C external
    Appreciate the correction. But I still don't understand where the compiler is picking up code that I have long ago torn out and burned. (i.e. there is no line "return (EIF_REFERENCE) ... in my code. ???? On Saturday, September 26, 2020 at 6:55:31 PM UTC-6, GMS wrote: > > Your external C code
  • Sep 27
    RE: [eiffel-users] compile errors on C external
    Your external C code is incorrect. You can not set “char s[30]” to a string. Instead, you would use strncpy(s, “RASBERRY_PI.c_hardware \n", sizeof (s));. Note, for your particular code you would not use this, since it is unnecessary. Instead, the true fix is just to use: Char* s =
  • Sep 26
    compile errors on C external
    Preparing C compilation Compiling C code in C1 Compiling C code in E1 In file included from big_file_C1_c.c:3: ./ra960.c:37:31: error: expected ')' return (EIF_REFERENCE) (char s[30] = "RASBERRY_PI.c_hardware \n"; ^ ./ra960.c:37:25: note: to match this
  • Sep 26
    Re: [eiffel-users] Same arrays indexed differently are not equal
    Regarding indexing... Does calling `rebase (0)' on an ARRAY just index the same items starting from zero, or does the array lose the last item from the old array and put a default value at index zero? Is `count' the same? jjj > >
  • Sep 26
    Re: [eiffel-users] Same arrays indexed differently are not equal
    Array comparison does take boundaries into account. I guess, one would expect the following to be correct code: if a ~ b and then a.valid_index (i) then check b.valid_index (i) end end BTW, arrays are instances of TABLE, and I would expect rows to be located at the same keys
  • Sep 26
    Same arrays indexed differently are not equal
    Hi, The following code: f local array1: ARRAY[STRING] array2: ARRAY[STRING] s: STRING do create s.make_from_string(“foo”) create array1.make_filled (s,0,0) create array2.mak
  • Sep 26
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    note: from my experience pi 3B is (from memory brain not ram) arm 7 and arm8 for rpi4. The exe is not compatible and estudio either not the same. Donno about the zero which cpu arch they put on it. Sorry for the noise if this info is useless Philippe -- ****************************************
  • Sep 26
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    Hi Larry, Yes, you can directly compile on the RPi-Zero. But it is important to specify that the Zero is less powerful than the 4B. Know that, I am not sure for the 4B, but the binary compiled for the RPi 3B is compatible with the Zero. I think that it is the case for the 4B too. So, you can
  • Sep 24
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    what do you mean by connecting? x server, graphical interface, ssh? could you be more specific on what you mean by `I connect by way of a Remote from Windows` On Thu, Sep 24, 2020 at 6:26 PM Larry Rix wrote: > Hey Louis! > > Do you have to use the cross-compiler?
  • Sep 24
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    Hey Louis! Do you have to use the cross-compiler? On my RaspberryPi 4B, I connect by way of a Remote from Windows and access the Raspian OS directly. Does anyone know—is this possible on a RPi-Zero as well? I would like to know because our ultimate Rotary Garden designs may in fact use
  • Sep 24
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    Thank you very much Louis for your prompt response, it is much appreciated. I've read your working notes, it's great to share them. Needless to say, it will greatly help and save hours of trial and error ! Thanks again. Le mer. 23 sept. 2020 à 22:55, 'Louis M' via Eiffel Users < eiffel...@google
  • Sep 23
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    I on raspberry pi 3B+ and 4, nothing more On Wed, Sep 23, 2020 at 5:37 PM Philippe P wrote: > Hello, > > Has anyone have experienced Eiffel applications development for Rapsberry > Pi Zero (running the Rapsberry Pi OS Lite) with cross compiling from a > Linux PC ? > > Any
  • Sep 23
    Re: [eiffel-users] Cross compilation for Rapsberry Pi Zero
    Hi Philippe, I did run some application on the Raspberry Pi Zero and everything runs smoothly. You can see the notes I took to create the Cross-Compilere there: https://github.com/tioui/Eiffel_Spec/tree/master/raspbian-spec . Just code normally (for Linux or Windows), when you want to test the
  • See more ...