From: Peep P. <so...@us...> - 2004-06-08 20:32:06
|
Update of /cvsroot/agd/server/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13516 Modified Files: dfdecl.in Log Message: Removed the c-name stuff. Index: dfdecl.in =================================================================== RCS file: /cvsroot/agd/server/src/dfdecl.in,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- dfdecl.in 7 Jun 2004 15:39:16 -0000 1.12 +++ dfdecl.in 8 Jun 2004 20:31:29 -0000 1.13 @@ -1,18 +1,13 @@ -# driver function declarations +# Driver function declarations # -# syntax: -# return-type dfun-name(type|type2|typeN|*, type|type2|typeN|*, ...) optional-c-name +# Syntax: +# return-type dfun-name(type1, type2, typeN) # # dfun-name is the name as known by the LPC parser -# c-name is the name of the dfun in dfuns.c. if c-name isn't supplied, it will be dfun-name with -# a prefix (if it has arguments, the prefix is "df_", if it doesn't, the prefix is "do_") -# For example, "int foo(void)" would have it's c-name set to 'do_foo', since it doesn't have -# arguments; while "int foo(string)"'s c-name would be "df_foo". (df_ is a dfun hook, do_ -# is the dfun definition itself) - -# if dfun doesn't return anything, return-type should be `void'. -# -# type is one of string, int, object +# Possible types are string, int, object - both for return-type +# and argument types. +# +# return-type can also be 'void' if it doesn't return anything. # Expect lots of nasty error messages if you mess up here. |