Hello,

Let me first say that this is a very interesting program: I was
looking for something like this some weeks ago.  If I may make
a suggestion: also consider supporting BNF diagrams...

The reason why I post however, is to mention that on HP 10.20, it
is not possible to compile the program, because dlopen etc. are not
supported: HP 10.20 supports shl_load etc. instead (in the library
libdld.sl).

But this emulation may be quite usable, instead of just including
dlfcn.h:

#ifdef SHL
#include <dl.h>
#define DL_T shl_t
DL_T dlopen(char* path, int mode) {
  return shl_load(path, BIND_IMMEDIATE, 0L);
}

void* dlsym(DL_T handle, char* sym) {
  void* value;
  int result;
  result = shl_findsym(&handle, sym, TYPE_PROCEDURE, (void*)&value);
  if (result == 0)
    return value;
  else
    return NULL;
}
#else
#include <dlfcn.h>
#define DL_T void*
#endif

The only thing is then that the result of dlopen has to be 
stored in a variable of DL_T instead of void*.

The Makefile should define SHL if shl_load is available, but
I'm not very good in configure scripts (yet), so I'll leave that
to someone else...  (I still have to download some libraries to
get the dependencies straight also.)

What do you think of this ?

Best regards,
Peter.
-- 
____________________________________________________________________
Peter Verthez                        mailto:[EMAIL PROTECTED]
Software Engineer Network Mgt.     Tel: (+32 3) 451 28 14 | Alcanet:
Alcatel Telecom, dept. XE60        Fax: (+32 3) 451 28 03 | (6)2681
Not speaking for my company !
____________________________________________________________________
Heisenberg may have been here.

Reply via email to