KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Any tools to convert C code into Java code? I am interested in converting this code into Java: ***************************************************************************/ /* ** UNECM - Decoder for ECM (Error Code Modeler) format. ** Version 1.0 ** Copyright (C) 2002 Neill Corlett ** ** This program is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License ** as published by the Free Software Foundation; either version 2 ** of the License, or (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /***************************************************************************/ /* ** Portability notes: ** ** - Assumes a 32-bit or higher integer size ** - No assumptions about byte order ** - No assumptions about struct packing ** - No unaligned memory access */ /***************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <string.h> /***************************************************************************/ void banner(void) { fprintf(stderr, "UNECM - Decoder for Error Code Modeler format v1.0\n" "Copyright (C) 2002 Neill Corlett\n\n" ); } /***************************************************************************/ /* Data types */ #define ecc_uint8 unsigned char #define ecc_uint16 unsigned short #define ecc_uint32 unsigned /* LUTs used for computing ECC/EDC */ static ecc_uint8 ecc_f_lut[256]; static ecc_uint8 ecc_b_lut[256]; static ecc_uint32 edc_lut[256]; /*
Tags (comma-separated)
Save Edits
Cancel