Skip to content
Snippets Groups Projects
Select Git revision
  • 71664f2d329f86a05e9371825803ae0a9a0fb985
  • master default
  • labcomm2014_tc31
  • labcomm2014
  • js
  • java_dyn_msg_dec
  • anders.blomdell
  • typeref
  • pragma
  • compiler-refactoring
  • labcomm2013
  • v2014.1
  • v2014.0
  • v2013.0
14 results

labcomm_fd_writer.c

Blame
  • Forked from Anders Blomdell / LabComm
    Source project has a limited visibility.
    simple.lc 566 B
    typedef struct {
      int a;
      int b;
    } TwoInts;
    
    sample TwoInts theTwoInts;
    sample TwoInts anotherTwoInts;
    
    sample struct {
      int x;
      string s;
    } IntString;
    
    sample struct {
      double x;
      double y;
    } TwoDoubles;
    
    sample struct {
      int fixed[2];
      int variable[2,_];
    } TwoArrays;
    
    sample struct {
      int a[2];
      int b[2,3];
    } TwoFixedArrays;
    
    typedef void avoid;
    
    sample avoid doavoid;
    
    // examples of errors: void may not be used
    // in structs or arrays
    //
    // sample struct {
    //  int a;
    //  avoid error;
    //} foo;
    //
    //sample void error2[2] ;
    //sample avoid error3[_];