home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / coven / coven-utils-1.1.tgz / coven-utils-1.1.tar / utils / coven-module-parser / example.txt < prev    next >
Text File  |  2003-01-23  |  830b  |  50 lines

  1. /* this example may not be up to date, try looking in the module repository
  2.  * for a better one */
  3.  
  4. /* TODO: make this a real example */
  5.  
  6. #include <stdio.h>
  7. #include <whatever.h>
  8.  
  9. int boring_int;
  10.  
  11. #if 1
  12.     int another_boring_int;
  13. #endif
  14.  
  15. Coven_Module some_module
  16.   (
  17.    const int a,
  18.    const int b,
  19.    const float c,
  20.    input buffer foo bar,
  21.    output buffer YOGI bear[b*a],
  22.    output buffer BOOBOO bear2[bear[10]*100],
  23.    input buffer JABBA the_hut[full_me_up],
  24.    input unsigned int d,
  25.    static output buffer int blah[d],
  26.    output float * blahblah,
  27.    input char etc83458345,
  28.    input unsigned char etcetc,
  29.    inout unsigned short * usrusr,
  30.    inout unsigned short * usrusr2
  31.   )
  32. {
  33.     bunch
  34.     of
  35.     C
  36.     code
  37. }
  38.  
  39. int blah(aksdf sadfkjajsdfsdkasfd)
  40. {
  41. asdakjsd
  42.     kjasdfkjasdf
  43.     ewkrqerlwer;
  44. }
  45.  
  46. void * kljdsfkjasf() {
  47.   if(asdfasdfa) {
  48.   }
  49. }
  50.