[Glass] CHeader and CPreprocessor paths as arguments

bruno buzzi brassesco smalltalk at adinet.com.uy
Fri Jun 26 05:03:38 PDT 2020


James,

Sorry for the long file.
This is a much shorter version of the original and has the same error.

regards,
bruno

On 26/6/2020 01:44, Smalltalk at JGFoster.net wrote:
> Thanks. I’ll work through removing some of the unnecessary lines and see if I can come up with a simple test case.
>
> James
>
>> On Jun 25, 2020, at 2:14 PM, bruno buzzi brassesco <smalltalk at adinet.com.uy> wrote:
>>
>> James,
>>
>> See the attached GS file it reproduce the same error i have (#include sentences removed).
>>
>> See all and evaluate... (executed on GS 3.5.1)
>>
>> regards,
>> bruno
>>
>> On 25/6/2020 17:48, Smalltalk at JGFoster.net wrote:
>>> The best way to confirm that is to create a single file (with no include directives)
>> <gs-c-bug.gs>
-------------- next part --------------
CHeader string: '
#ifndef _LIBSSH_H
#define _LIBSSH_H
enum ssh_server_known_e {
	SSH_SERVER_ERROR=-1,
	SSH_SERVER_NOT_KNOWN=0,
	SSH_SERVER_KNOWN_OK,
	SSH_SERVER_KNOWN_CHANGED,
	SSH_SERVER_FOUND_OTHER,
	SSH_SERVER_FILE_NOT_FOUND
};
#if defined _WIN32 || defined __CYGWIN__
  #ifdef LIBSSH_STATIC
    #define LIBSSH_API
  #else
    #ifdef LIBSSH_EXPORTS
      #ifdef __GNUC__
        #define LIBSSH_API __attribute__((dllexport))
      #else
        #define LIBSSH_API __declspec(dllexport)
      #endif
    #else
      #ifdef __GNUC__
        #define LIBSSH_API __attribute__((dllimport))
      #else
        #define LIBSSH_API __declspec(dllimport)
      #endif
    #endif
  #endif
#else
  #if __GNUC__ >= 4 && !defined(__OS2__)
    #define LIBSSH_API __attribute__((visibility("default")))
  #else
    #define LIBSSH_API
  #endif
#endif
typedef struct ssh_session_struct* ssh_session;
LIBSSH_API int ssh_known_hosts_parse_line(const char *host,
                                          const char *line,
                                          struct ssh_knownhosts_entry **entry);
LIBSSH_API enum ssh_known_hosts_e ssh_session_has_known_hosts_entry(ssh_session session);

LIBSSH_API int ssh_session_export_known_hosts_entry(ssh_session session,
                                                    char **pentry_string);
LIBSSH_API int ssh_session_update_known_hosts(ssh_session session);

LIBSSH_API enum ssh_known_hosts_e ssh_session_get_known_hosts_entry(ssh_session session,
        struct ssh_knownhosts_entry **pentry);
LIBSSH_API enum ssh_known_hosts_e ssh_session_is_known_server(ssh_session session);
#endif
'.


More information about the Glass mailing list