These are chat archives for gwydirsam/DickGrayson

26th
Apr 2015
Sam Gwydir
@gwydirsam
Apr 26 2015 17:49
@Towerism yo fix those asserts
@Towerism coverage tanked to 33% after your changes
Also I get these warnings:
          ^
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/embedding_agent.cc:79:26: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
      bits.push_back(bit && 0x1);
                         ^  ~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/embedding_agent.cc:79:26: note: use '&' for a bitwise operation
      bits.push_back(bit && 0x1);
                         ^~
                         &
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/embedding_agent.cc:79:26: note: remove constant to silence this warning
      bits.push_back(bit && 0x1);
                        ~^~~~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/extracting_agent.cc:49:24: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
    bits.push_back(bit && 0x1);
                       ^  ~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/extracting_agent.cc:49:24: note: use '&' for a bitwise operation
    bits.push_back(bit && 0x1);
                       ^~
                       &
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/extracting_agent.cc:49:24: note: remove constant to silence this warning
    bits.push_back(bit && 0x1);
                      ~^~~~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/extracting_agent.cc:46:21: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for (int i = 0; i < num_bits; ++i) {
                  ~ ^ ~~~~~~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/extracting_agent.cc:59:34: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
  for (int i = start; i>= 0 && i > start - 8; --i) {
                               ~ ^ ~~~~~~~~~
/Users/sam/Code/C++/CSCE315/Project4/DickGrayson/lib/stego-crypt-lib/stego-crypt-util.cc:134:11: warning: enumeration values 'UNKNOWN_ARG', 'UNKNOWN_TYPE', and 'MISSING_ARG' not handled in switch [-Wswitch]
  switch (err_code) {
          ^
Martin Fracker, Jr.
@Towerism
Apr 26 2015 18:54
Oh no wonder.
Sam Gwydir
@gwydirsam
Apr 26 2015 18:55
@Towerism hey while you're here...in what way was firefox the cause of the slow internet?
Martin Fracker, Jr.
@Towerism
Apr 26 2015 19:05
Web pages just take forever on a white screen and a grey spinning circle before the spinning circle turns blue and finally starts loading the stupid page
Sam Gwydir
@gwydirsam
Apr 26 2015 19:05
hmmm
weird. check the proxy settings? who knows.
Martin Fracker, Jr.
@Towerism
Apr 26 2015 19:06
I'm just using chrome
do you use cpp-utils?
Whoops I mean cpputils-cmake?
Sam Gwydir
@gwydirsam
Apr 26 2015 19:06
yeah
chrome!? RMS would be very upset
Martin Fracker, Jr.
@Towerism
Apr 26 2015 19:06
I have it but emacs still can't find some of my headers?
lol
like stego-crypt-lib/stego-crypt-lib.hh for example
Sam Gwydir
@gwydirsam
Apr 26 2015 19:07
hmm
there's a lot of things to question between here and there
Martin Fracker, Jr.
@Towerism
Apr 26 2015 19:08
The only thing I've done to enable it is add it to my dotspacemacs confif layers
Sam Gwydir
@gwydirsam
Apr 26 2015 19:08
what version of emacs, are you using spacemacs?
ah ok
;;; packages.el --- sam-c++ Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3

(setq sam-c++-packages '(cpputils-cmake))


(defun sam-c++/init-cpputils-cmake ()
  (use-package cpputils-cmake
    :defer t
    :commands
    (cppcm-get-exe-path-current-buffer  cppcm-reload-all)
    :init
    (progn
      (add-hook 'c-mode-common-hook
                (lambda ()
                  (if (derived-mode-p 'c-mode 'c++-mode)
                      (if (not (or (string-match "^/usr/local/include/.*"
                                                 buffer-file-name)))
                          (cppcm-reload-all))
                    ))))
    :config
    (progn
      (setq cppcm-write-flymake-makefile nil)

      ;; ;; OPTIONAL, avoid typing full path when starting gdb
      ;; (global-set-key (kbd "C-c C-g")
      ;;                 '(lambda ()(interactive) (gud-gdb (concat "gdb --fullname " (cppcm-get-exe-path-current-buffer)))))

      ;; OPTIONAL, some users need specify extra flags forwarded to compiler
                                        ;(setq cppcm-extra-preprocss-flags-from-user '("-Iinclude/"))

      (setq cppcm-get-executable-full-path-callback
            (lambda (path type tgt-name)
              ;; path is the supposed-to-be target's full path
              ;; type is either add_executabe or add_library
              ;; tgt-name is the target to built. The target's file extension is stripped
              (message "cppcm-get-executable-full-path-callback called => %s %s %s" path type tgt-name)
              (let ((dir (file-name-directory path))
                    (file (file-name-nondirectory path)))
                (cond
                 ((string= type "add_executable")
                  (setq path (concat dir "bin/" file)))
                 ;; for add_library
                 (t (setq path (concat dir "lib/" file)))
                 ))
              ;; return the new path
              (message "cppcm-get-executable-full-path-callback called => path=%s" path)
              path))

      ;; (setq cppcm-debug t)
      )
    ))

;; (defun sam-cedet/init-stickyfunc-enhance ()
;;   (use-package stickyfunc-enhance)
;;   )
that's my layer
also you'll need the c-c++ layer
switching to private chat