Displaying 1 result from an estimated 1 matches for "atomlen".
Did you mean:
  atom_end
  
2020 Jun 01
1
[PATCH] erlang: Port to libei for Erlang 23
...ree (buf);
 }
 
 /* Note that all published Erlang code/examples etc uses strncmp in
  * a buggy way.  This is the right way to do it.
  */
 int
-atom_equals (ETERM *atom, const char *name)
+atom_equals (const char *atom, const char *name)
 {
   const size_t namelen = strlen (name);
-  const size_t atomlen = ERL_ATOM_SIZE (atom);
+  const size_t atomlen = strlen (atom);
   if (namelen != atomlen) return 0;
-  return strncmp (ERL_ATOM_PTR (atom), name, atomlen) == 0;
+  return strncmp (atom, name, atomlen) == 0;
 }
 
-ETERM *
-make_error (const char *funname)
+int
+make_error (ei_x_buff *buff, const c...