generate standalone 'C' functions for marshall/demarshall