From: stephan b. <sg...@us...> - 2004-12-28 17:31:29
|
Update of /cvsroot/pclasses/pclasses2/src/s11n/proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27984/src/s11n/proxy Modified Files: createRegSerTraits.sh Log Message: syntax error fix. Index: createRegSerTraits.sh =================================================================== RCS file: /cvsroot/pclasses/pclasses2/src/s11n/proxy/createRegSerTraits.sh,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- createRegSerTraits.sh 28 Dec 2004 15:51:17 -0000 1.3 +++ createRegSerTraits.sh 28 Dec 2004 17:31:20 -0000 1.4 @@ -27,7 +27,7 @@ -n SerializableClassName [${o_clname}] Default is that from -c. - -r <inc/registration_header.h> [${o_reg_h}] + -r <inc/registration_header.h> [${o_reg_h}] -p SerializableProxyClass [${o_proxy}] Sets the s11n proxy class. SerializableClass @@ -37,14 +37,6 @@ operator()(NodeType) overloads, as described in the libs11n manual. - -ns namespace_of_s11n [${o_sns}] - An obscure option to help me port code between - pclasses.com::s11n and s11n.net::s11n. - If used, this option needs to be as early - in the args list as possible (BUG: must come - before any options which rely on the namespace). - e.g.: -ns P::s11n - -list SerializableClass is compatible with the std::list proxy, and should use it. @@ -63,8 +55,23 @@ must be i/ostreamable. -ios - Like -list, but installs a proxy which works using - the i/ostream operators of SerializableClass. + Like -list, but installs a proxy which works using + the i/ostream operators of SerializableClass. + + ************************************************** + Options intended for use by the s11n maintainer: + ************************************************** + + -macro-prefix XXX [${o_macro_prefix}] + Prepends XXX to the start of the reg macros. + + -ns namespace_of_s11n [${o_sns}] + An obscure option to help me port code between + pclasses.com::s11n and s11n.net::s11n. + If used, this option needs to be as early + in the args list as possible (BUG: must come + before any options which rely on the namespace). + e.g.: -ns P::s11n EOF } # show_help() @@ -76,6 +83,7 @@ i_proxy_map='${o_sns}::map::map_serializable_proxy' i_proxy_map_s='${o_sns}::map::streamable_map_serializable_proxy' i_proxy_s='${o_sns}::streamable_type_serialization_proxy' +o_macro_prefix=P # prefix for registration macros. Use 'P' for P::s11n ############################## args parsing... while test x != "x$1"; do @@ -135,6 +143,11 @@ : ${o_proxy="$(eval echo ${i_proxy_map_s})"} continue ;; + -macro-prefix) + o_macro_prefix=$1 + shift; + continue; + ;; -?|--help|-h) o_show_help=1 # We collect all the args before showing help @@ -155,7 +168,6 @@ : ${o_base=${o_class}} : ${o_reg_h="<pclasses/s11n/reg_serializable_traits.h>"} : ${o_show_help=0} -: ${o_macro_prefix=P} # prefix for registration macros. Use 'P' for P::s11n |