X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftv%2Fstrcalc.h;h=a2e94287109cf7f0b86ffdd242af9b1a3c1a6af7;hb=bd019d8cd785c1a433c19dee44bf3f9e82397286;hp=b22ac04b0f47fec5f814b079c3f9564f8e5012a9;hpb=56a161cbcf6478f5eaf9713811aa670067b35b3f;p=libfirm diff --git a/ir/tv/strcalc.h b/ir/tv/strcalc.h index b22ac04b0..a2e942871 100644 --- a/ir/tv/strcalc.h +++ b/ir/tv/strcalc.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -22,7 +22,6 @@ * @brief Provides basic mathematical operations on values represented as strings. * @date 2003 * @author Mathias Heil - * @version $Id$ * @brief * * The module uses a string to represent values, and provides operations @@ -191,8 +190,12 @@ int sc_get_buffer_length(void); void sign_extend(void *buffer, ir_mode *mode); -/** create an value form a string representation */ -void sc_val_from_str(const char *str, unsigned int len, void *buffer, ir_mode *mode); +/** + * create an value form a string representation + * @return 1 if ok, 0 in case of parse error + */ +int sc_val_from_str(char sign, unsigned base, const char *str, + size_t len, void *buffer); /** create a value from a long */ void sc_val_from_long(long l, void *buffer);