stage3/print_datatypes_error.cc
changeset 428 42d02558ebd9
parent 427 eb9bc99944d9
child 430 d7a6221f64d7
equal deleted inserted replaced
427:eb9bc99944d9 428:42d02558ebd9
    60   public:
    60   public:
    61     static const char * to_string(symbol_c *symbol) {
    61     static const char * to_string(symbol_c *symbol) {
    62       if (NULL == singleton)    singleton = new elementary_type_c;
    62       if (NULL == singleton)    singleton = new elementary_type_c;
    63       if (NULL == singleton)    ERROR;
    63       if (NULL == singleton)    ERROR;
    64       const char *res           = (const char *)symbol->accept(*singleton);
    64       const char *res           = (const char *)symbol->accept(*singleton);
    65       if (NULL == res)          ERROR;
       
    66       if (NULL == res)          ERROR;
    65       if (NULL == res)          ERROR;
    67       return res;
    66       return res;
    68     }
    67     }
    69     
    68     
    70     /***********************************/
    69     /***********************************/